![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Every time one (or more) e-mails arrive I need to be able to check the name
of an attachment and if it contains certain words, we'll just use example as the word for this, I want to mark it as read and move it to a folder. I can use either a rule or vba. The problem I'm having with the rule is that I don't see one that will read the attachment name as new mail arrives. With vba the only possible way I can see to check attachments is to loop through each and every e-mail in the Inbox instead of just unread mail. This isn't quite possible as the user I am creating this for has about 65,000 e-mails in his inbox over 7 years and would be quite adverse to changing his system. I can fire the newmail or newmailex event, but I can't find a way to filter attachments from only Unread mail. Any suggestions? I could probably even use a .find .findnext loop but can't locate the syntax for unread mail. -- When you lose your mind, you free your life. |
Ads |
#2
|
|||
|
|||
![]() Anyway, so after a couple more hours of searching I discovered the simple fact that I can set outlook to run a script from a rule, so now I just have it running my attachment checking script on each new e-mail as it arrives. "ben" wrote: Every time one (or more) e-mails arrive I need to be able to check the name of an attachment and if it contains certain words, we'll just use example as the word for this, I want to mark it as read and move it to a folder. I can use either a rule or vba. The problem I'm having with the rule is that I don't see one that will read the attachment name as new mail arrives. With vba the only possible way I can see to check attachments is to loop through each and every e-mail in the Inbox instead of just unread mail. This isn't quite possible as the user I am creating this for has about 65,000 e-mails in his inbox over 7 years and would be quite adverse to changing his system. I can fire the newmail or newmailex event, but I can't find a way to filter attachments from only Unread mail. Any suggestions? I could probably even use a .find .findnext loop but can't locate the syntax for unread mail. -- When you lose your mind, you free your life. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Some emails arrive, others don't | Rob graham | Outlook - General Queries | 6 | June 19th 08 06:48 PM |
e-mails never arrive | william | Outlook - General Queries | 5 | March 26th 08 06:38 PM |
Attachments dont arrive to the addressee and the and when I get attach files they go to the body message. | Joao[_2_] | Outlook - General Queries | 1 | October 8th 07 08:46 PM |
Attachments will not open for the recipient. They arrive in code. | einekleinejazz | Outlook - Installation | 1 | March 14th 07 05:42 PM |
Attachments arrive renamed to ATT####.### | Jerry | Outlook - General Queries | 5 | February 2nd 07 01:04 PM |