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

2006-07-20 Thread Chris W .

[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.

-- 
Chris

Using The Bat! v3.80.06 on Windows XP 5.1 Build 2600 Service Pack 2.
Accessing a POP3 mailbox.

A mushroom cloud has no silver lining.

pgpITgccM5RF1.pgp
Description: PGP signature

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

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

2006-07-20 Thread Alexander S. Kunz
Hello Stuart Cuddy  everyone else,

on 20-Jul-2006 at 14:47 you (Stuart Cuddy) wrote:

 It  would  be easier to just use Contains [FCNYC].

If this worked in a %IF macro clause, indeed. ;-)

-- 
Best regards,
 Alexander (http://www.neurowerx.de)

NP: Star Above Parvati (Bijli Mahadev mix) by Doof
(from the 1996 album Let's Turn On)



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


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

2006-07-19 Thread Chris W .

[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.

-- 
Chris

Using The Bat! v3.80.06 on Windows XP 5.1 Build 2600 Service Pack 2.
Accessing a POP3 mailbox.

Black holes are where God divided by zero.

pgpoAwBDfdXUv.pgp
Description: PGP signature

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

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

2006-07-18 Thread Robin Anson
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'

-- 
Robin

Using The Bat! v3.80.06
  Windows XP 5.1 Build 2600 Service Pack 2
  Popfile v0.22.4




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


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

2006-07-18 Thread Chris W .

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

 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?

IF you are using The Bat! and have that message downloaded, simply
clicking on the link will cause the message to open.

For example, try this:
mid:[EMAIL PROTECTED]
It should open your original message.

-- 
Chris

Using The Bat! v3.80.06 on Windows XP 5.1 Build 2600 Service Pack 2.
Accessing a POP3 mailbox.

To err is human, but to really foul up requires a computer.
-Dan Rather

pgpyL5Oz5YYlB.pgp
Description: PGP signature

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

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

2006-07-17 Thread Alexander S. Kunz
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.

-- 
Best regards,
 Alexander (http://www.neurowerx.de)

NP: Accountancy Shanty by Monthy Python
(from the 1989 album Monty Python Sings)



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