Hello List,
On Friday, July 29, 2005 at 7:07:44 PM technical [tdn] wrote:
tdn>>> I have several domain and, all message are coming in
tdn>>> one mailbox. When I retrieve them, I would like to reply
tdn>>> with, say, a webmaster account depending of the domain where the
tdn>>> message was sent.
>> - Set up filters for incoming mail and store messages in separate
>> folders; one for each "intended sender address".
>> - Set the folders "Identity" (as part of "Folder Properties") to the
>> intended sender address
>> - Be happy ;-)
tdn> Thank you for you reply.
tdn> Anyway there is more than 300 domains... My idea was to use
tdn> computers to save time :)
tdn> Maybe I wasn't enough clear, I would like more something
tdn> like a macro that re-inject in the From field when I reply
tdn> "webmaster@" and domain extraction?
If there's only one recipient in To: header of original mail this one
should work:
%_OToMail="%SetPattRegExp='.*@(.*)'%RegExpMatch='%OToAddr'"%-
%SetHeader("From", "<[EMAIL PROTECTED]>")%-
if you use a recent version of The Bat! (I don't remember when
'%_'-syntax was introduced). Save this to a quick template and use it
via %QInclude macro, or paste it into your reply template directly.
Be aware: if you've received the mail as CC or BCC this one *will*
fail for sure, if you've received the mail as one of multiple
recipients in To: it most probably will fail.
I more sophisticated version could be written using %Headers macro, if
one would have a sample set of headers of mails you're intending to
answer "this way". One might parse (regexp) e.g. 'Delivered-To:'
headers, or maybe any other field that helps to identify whom this
mail was directed to.
--
Regards
Peter Palmreuther
(The Bat! v3.51.10 on Windows XP 5.1 Build 2600 Service Pack 2)
"This isn't right. This isn't even wrong." [Wolfgang Pauli].
________________________________________________
Current version is 3.51.10 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html