logger.l1("[+] owner point account created");
logger.l1(String.format("\n\tFTN: %s\n\tAka: %s\n\tPassword: %s\n",
owner.getLinkAddress(), owner.getLinkName(),
owner.getPaketPassword()));
long nice = 1;
Rewrite rw = new Rewrite();
rw.setType(Type.NETMAIL);
rw.setLast(true);
rw.setNice(nice++);
rw.setOrig_from_addr("^"
+ ownAddr.replace(".", "\\.").replace("/", "\\/") + "$");
rw.setNew_from_addr(FtnTools.getPrimaryFtnAddress().toString());
ORMManager.get(Rewrite.class).save(rw);
for (FtnAddress address : info.getAddressList()) {
Rewrite rw2 = new Rewrite();
rw2.setType(Type.NETMAIL);
rw2.setLast(true);
rw2.setNice(nice++);
rw2.setOrig_to_addr("^"
+ address.toString().replace(".", "\\.")
.replace("/", "\\/") + "$");
rw2.setNew_to_addr(ownAddr);
ORMManager.get(Rewrite.class).save(rw2);
}
logger.l1("[+] Basic rewrites for owner's point created!");
}