faqts : Computers : Internet : Mail Servers : qmail

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

3 of 4 people (75%) answered Yes
Recently 3 of 4 people (75%) answered Yes

Entry

How can I modify the contents of an email from my .qmail file while it's being delivered?

Aug 7th, 2005 08:07
Catalin Constantin, Fred Flintstone,


You can use a script which you can execute from .qmail (|/path to my 
script) which does:
1) reads from stdin (the raw content of the mail)
2) alters the content
3) WRITES the new RAW content to the appropriate Maildir folder/file
4) returns the 99 exit code (if all was ok) which means: succes and 
abort .qmail