Hi George,

@24-Oct-2003, 19:14 -0700 (01-Nov 02:14 UK time) George Mitchell
said to TBUDL:

... <snip>
> %SETPATTREGEXP="(?i)[EMAIL PROTECTED]"%-
> %_TO_ADDR=%REGEXPMATCH="'%OTOLIST, %OCCLIST'"%-
> %IF:%_TO_ADDR<>"":"%FROM=''%FROM='%_TO_ADDR'":""%-

... <snip>

The quote matching looks a bit dubious to me here. Particularly in
the IF statement where (CMIIW) the quoting for the clauses needs to
be established in the conditions and in the REGEXPMATCH where there
are literal single quotes being included in the string - although
they will just be ignored for matching purposes. It could all be
affecting the logic of the macros though. The '-' in the character
class must be escaped. Here's what it should really be.

%SETPATTREGEXP="(?i)[EMAIL PROTECTED]"%-
%_TO_ADDR='%REGEXPMATCH="%OTOLIST, %OCCLIST"'%-
%IF:"%_TO_ADDR"<>"":"%FROM=''%FROM='%_TO_ADDR'":""%-

> It appears that the recipient list of the reply is being
> calculated before the From address change. For example, assume the
> account's default address is "[EMAIL PROTECTED]" and I get an
> email:

> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> CC: [EMAIL PROTECTED]

> If I do a reply to all, the From field of the reply will be
> correctly set to "[EMAIL PROTECTED]" instead of
> "[EMAIL PROTECTED]". However, the CC field will also contain
> "[EMAIL PROTECTED]".

I don't believe that you can avoid that. TB doesn't know you didn't
want that address in there. You may have to rebuild the CCLIST in a
recursive macro of your own and exclude the new "from" address that
way.

> Had the default address been in the CC field, it would have been
> stripped from the reply.

Yes, it would.

> My questions are:

> Is there a way I can have TB! automatically remove the new
> contents of the From field instead of the default?

Only with a recursive macro. That may need some TBTECH input to get
it right.

> Is there a better/easier way to go about this?

I don't think so ... unless you start fiddling with alternate
accounts, moving messages between them and allowing the default
behaviour for the accounts to make it easier for you.

-- 
Cheers -- .\\arck D Pearlstone -- List moderator
TB! v2.01.20 on Windows XP 5.1.2600 Service Pack 1
'

Attachment: pgp00000.pgp
Description: PGP signature

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

Reply via email to