A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Checking attachments as they arrive



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 23rd 09, 03:03 PM posted to microsoft.public.outlook.program_vba
ben
external usenet poster
 
Posts: 4
Default Checking attachments as they arrive

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  
Old June 23rd 09, 04:21 PM posted to microsoft.public.outlook.program_vba
ben
external usenet poster
 
Posts: 4
Default Checking attachments as they arrive


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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 11:09 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.