Processing new mail

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In a nutshell: When mail arrives, I want to be able to process that particular piece of mail (run thru some filter's I've written etc). Right now I have written a routine that iterates through all items in the mailbox, looking for "new" or "unread" items

When new mail arrives, does it trigger the event "NewMail" with a "msgid" or "handle" of some sort, so I can say "process this message" - and will this happen as each piece of mail arrives

Please email any thoughts as well as replying here! :)
 
NewMail fires only at intervals and doesn't provide a link to whatever items
have come in. ItemAdd for the Items collection of the Inbox would be better
since it provides an Item object. See
http://www.outlookcode.com/d/code/zaphtml.htm#cw for an example of an
ItemAdd handler.




Marko said:
In a nutshell: When mail arrives, I want to be able to process that
particular piece of mail (run thru some filter's I've written etc). Right
now I have written a routine that iterates through all items in the mailbox,
looking for "new" or "unread" items.
When new mail arrives, does it trigger the event "NewMail" with a "msgid"
or "handle" of some sort, so I can say "process this message" - and will
this happen as each piece of mail arrives?
 
Back
Top