Hello tbudl,

I'm not good at regex. In fact, I don't understand them, but I have
copied a few from the library and they work fine. What I now need is a
rather simple one.

I check several accounts and move the messages to folders in the main
account. However, I want to colour-code them based on an X-Received-By
header, which the sysad promised he will set up in Merak tomorrow.

So the incoming mails will have a header:

X-Received-By: [EMAIL PROTECTED]

Task 1: Common incoming filters should recognise this header and
trigger an Action (colour-coding) based on this, so I can easily see
which account the mail originally arrived in. Actually, I would prefer
to set a memo (so it shows in the message list, IMHO better than a
colour code), but I cannot find this as a filter action.

The filters need to do this:

IF X-Received-By = [EMAIL PROTECTED]
  DO action
CONTINUE WITH OTHER FILTERS.

I believe this must be something like Header - match - RegEx. this is
the first regex I'm looking for.

(Other common filters processed afterwards will move the messages, that
is no problem, I have already tested this.)

Task 2: The reply template in the main account (where all messages
reside) should use the address indicated by the X-Received-By header
as the From address. No need for an %Account= macro, the %From= will
do, as the server will accept any From address from our domain as long
as I am connected to the server from within the LAN.

%FROM="the email address in the X-Received-By header"

This is the second regex I'm looking for.

-- 
TIA,

Thomas.


________________________________________________
Current version is 3.0.1.33 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to