On Wed, 20 Oct 2004 11:39:31 +0200, Zygmunt Wereszczynski wrote: > This may be done in many different ways. You may use following macros in > forward message template to extract these parts of bounced message > (including multiline fields): > > %SetPattRegExp="(?ism)(^From:.*?\s*.*?\n)\w"%RegexpMatch(%Text)%- > %SetPattRegExp="(?ism)(^To:.*?\s*.*?\n)\w"%RegexpMatch(%Text)%- > %SetPattRegExp="(?ism)(^Subject:.*?\s*.*?\n)\w"%RegexpMatch(%Text)%- > > %SetPattRegExp="(?ism)\n\n(.*)\w"%RegexpMatch(%Text)%- > > That's all! All above macros should be inserted into template including > empty line before last one. Three first lines extract header fields, and > the last one extract message body.
Holy Jehosophat! Zygmunt! That works perfectly. A million thanks. -- Avi Yashar Windows XP Pro SP2 and TB Pro 3.0.1.33 ________________________________________________________ Current beta is 3.0.2.1 Beta/1 | 'Using TBBETA' information: http://www.silverstones.com/thebat/TBUDLInfo.html IMPORTANT: To register as a Beta tester, use this link first - http://www.ritlabs.com/en/partners/testers/