Re[2]: Is there a way to set up a Reply to automatically use a specific Account based on the Subject?

2006-07-20 Thread z5worg

Wednesday, July 19, 2006, Chris W. [EMAIL PROTECTED] wrote:

 [EMAIL PROTECTED] @ 2006-7-19 6:47:27 PM
 Is there a way to set up a Reply to automatically use a specific
 Account based on the Subject? mid:[EMAIL PROTECTED]

 %If:%subject=[FCNYC]:%-
 %account='Account3':%-
 %account='Zworg'

 The Subject heading would be something like [FCNYC] AA
 OR Re: [FCNYC] AA

 When I Reply to either of the above message, I want it to use Account
 Account3; but it is using Zworg.

 Am I putting the macro in the wrong place?  Or something else?

 You are performing a literal match. I.e., the subject must match
 [FCNYC] EXACTLY (no more, no less). What you want to do it perform a
 substring match (i.e., if [FCNYC] exists in the subject, then do
 something). For this, take a look at regular expressions.

I looked at Regular Expressions in online help; and it is all greek to
me.

Would appreciate if someone would provide me with the exact syntax.

-- 
Thanks in advance
JM


Using The Bat! 2.12.04
Under Windows XP 5.1 Build 2600 Service Pack 1





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


Re[2]: Is there a way to set up a Reply to automatically use a specific Account based on the Subject?

2006-07-20 Thread z5worg

Thursday, July 20, 2006, Chris W. [EMAIL PROTECTED] wrote:

 [EMAIL PROTECTED] @ 2006-7-20 1:59:06 AM
 Is there a way to set up a Reply to automatically use a specific
 Account based on the Subject?
 mid:[EMAIL PROTECTED]

 For this, take a look at regular expressions.

 I looked at Regular Expressions in online help; and it is all greek
 to me. Would appreciate if someone would provide me with the exact
 syntax.

 I'm only a regular expression novice, so this (UNTESTED) solution
 probably could be improved:

 %SETPATTREGEXP='.*(\[FCNYC\]).*'%-
 %IF:'%REGEXPMATCH=%OSUBJECT''':'%ACCOUNT=Account3':'%ACCOUNT=Zworg'%-

 The %SETPATTREGEXP line tells The Bat! to look for [FCNYC] anywhere
 in a string and capture it. Then, %REGEXPMATCH is called with the old
 subject. If [FCNYC] is in the old subject, the result of
 %REGEXPMATCH is [FCNYC], otherwise the result is the empty string,
 . Therefore, the %IF tests to make sure that %REGEXPMATCH did not
 result in the empty string. If the result was non-empty, Account3 is
 used, otherwise Zworg is used.

Thanks, Chris, it works.


-- 
Thanks in advance
JM


Using The Bat! 2.12.04
Under Windows XP 5.1 Build 2600 Service Pack 1





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


Re[2]: Is there a way to set up a Reply to automatically use a specific Account based on the Subject?

2006-07-18 Thread z5worg

Tuesday, July 18, 2006, Robin Anson [EMAIL PROTECTED] wrote:

 On Tue, 18 Jul 2006 at 00:50:18 -0400, Z5worg wrote:

 Can one write a conditional filter for the Outgoing message to use
 Account XYZ if the Subject is ABC?  If yes, please specify the exact
 macro(?).

 Sure. Put the following in an appropriate message template or quick
 template:

 %If:%subject=ABC:%-
 %account='XYZ':%-
 %account='LMN'


Thanks.  Works like a charm.

-- 
Thanks in advance
JM


Using The Bat! 2.12.04
Under Windows XP 5.1 Build 2600 Service Pack 1





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


Re[2]: Is there a way to set up a Reply to automatically use a specific Account based on the Subject?

2006-07-17 Thread z5worg

Monday, July 17, 2006, Alexander S. Kunz [EMAIL PROTECTED] wrote:

 Hello [EMAIL PROTECTED]  everyone else,

 on 17-Jul-2006 at 05:30 you ([EMAIL PROTECTED]) wrote:

 I subscribe to a mailing list which is set up so that a Reply would
 automatically go the email address of the message's author (instead of
 to the list's address). But the List is identified in the Subject.

 We are discussing this very topic since yesterday, in the messages
 starting with msgid:[EMAIL PROTECTED] which you
 might want to read first to avoid the redundancy.

How do I get to that topic?

I tried the archive at
http://www.mail-archive.com/tbudl@thebat.dutaint.com/ and there are no
message ids attached to the messages.

If you are referring to the topic Lists that don't overwrite the
Reply-To header, my question is different.

I filter two similar announcement Lists to the same folder; and each
List is identified with the List name in the Subject. When I reply to
the author of the message, I would like to to send the reply from
different Accounts -- depending on which List.

Can one write a conditional filter for the Outgoing message to use
Account XYZ if the Subject is ABC?  If yes, please specify the exact
macro(?).

If no, any other way to accomplish that?

-- 
Thanks in advance
JM


Using The Bat! 2.12.04
Under Windows XP 5.1 Build 2600 Service Pack 1





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