~Michelle ElhipilitliJun 6, 2017, 1:13 PM103 PostsNope...You cannot use agents to interrupt mail flow in the mail.box. You will need to use the API Extension Manager events to run your logic when a new note is created in the mail.box. Your choices are the C API or the Domino OSGI Tasklet Service. https://www.ibm.com/developerworks/lotus/library/capi-nd/index.html http://www-12.lotus.com/ldd/doc/domino_notes/9.0/api90ug.nsf/85255d56004d2bfd85255b1800631684/06fd173414dcdad9852560eb0077ca42?OpenDocument https://www.openntf.org/Projects%5Cpmt.nsf/0/193023866DE8B6F98625787F00224BC9/%24file/readme.pdf
~Sean EljumigonJun 6, 2017, 2:03 PM326 PostsMail RuleCreate a mail rule that moves the email into a notes db. You then can write code to do whatever you want and at the end just create a doc into the mail.box with a flag that the criteria for the mail rule will ignore
~Yoshi OpboositexingsJul 3, 2017, 1:27 AM40 PostsI'm sure it doesn't need to be said, but...Be sure to watch out for what can happen with out of office or auto-forwarding sorts of things. I say this because I once had a user who knew enough to be dangerous. A piece of the business was getting spun off, and during the transition period they had their old IDs here and new ones there. This guy set up his old mail to auto-forward to his new one. Only problem - he had a typo in the new address. It forwarded to an invalid address, which bounced back with a message that it couldn't deliver, which it then forwarded to the bad address, which .... I was a Notes programmer (not an admin person) involved in the transition, but I got called by our server people when the endless loop of messages crashed the mail server at our end. My contribution was figuring out what this guy had done. This was 20+ years ago so maybe situations like that are caught better now, but it's certainly stuck in my mind over the years. :-)