Deleting some lines from received messages 
Author Message
 Deleting some lines from received messages

I am on a listserve that has a banner on each of its plain
text messages.  I would like Outlook to delete the first 5
lines of each new E-mail from this "person".

Any suggestions on how I can do this with VB

Thanks for your help

Sincerely,

John



Mon, 15 Aug 2005 01:26:07 GMT  
 Deleting some lines from received messages
That could be tricky.  You could try saving the message to a temporary file,
and then use the FileSystemObject and TextStream objects from the Scripting
Runtime Library to parse the required number of lines (ReadLine method) from
the file.  Then take the text from those lines, use the Len function on it
to determine how many characters, and use that value in the Mid or Right
function on the message body, saving only the rest of the text back into the
Body property.

--
Eric Legault
gooeySoft Solutions
http://members.shaw.ca/gooeySoft
Programming, Consulting and Outlook Resources


Quote:
> I am on a listserve that has a banner on each of its plain
> text messages.  I would like Outlook to delete the first 5
> lines of each new E-mail from this "person".

> Any suggestions on how I can do this with VB

> Thanks for your help

> Sincerely,

> John



Tue, 23 Aug 2005 14:15:36 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Receiving notification on Send, Receive and Delete

2. reading mail message body line by line

3. delete email when receive new email

4. Send / Receive *wave files (sound) through Modem to phone line

5. How to send / receive *.wave files (sound) through modem to phone line

6. How send / receive *.wave files through modem to phone line

7. Send / Receive *wave files (sound) through modem to phone line

8. Sending and receiving parms from command line

9. How to send / receive *.wave files (sound) through modem to phone line

10. Receiving a command line argument in VB5

11. How to allow my program to receive parameters when run from command line

12. Can Access receive wmcopy message from Windows

 

 
Powered by phpBB® Forum Software