Hello Greg,

On Friday, July 19, 2002 at 3:10:11 AM you [GS] wrote (at least in
part):

PP>> | %TO="[EMAIL PROTECTED]
PP>> |                        ^^^
PP>> | %CC=""

GS> Actually it worked with or without the closing " but thanks for the
GS> correction.

Correct. It set 'To' to '

,-----= [  ] =-----
| [EMAIL PROTECTED]
| 
| %CC=
`-----=

With '%CC=' expanded to <nothing>. Therefore it _seemed_ to work :-)

PP>> %CC="%ToList"%-
PP>> %To=""%To="[EMAIL PROTECTED]"

GS> I wanted to "CC" the original sender. Your macro doesn't work. For
GS> example a reply to this message would send "TO" TBUDL and "CC" me at
GS> [EMAIL PROTECTED] When I use your suggested macro,
GS> %CC="%ToList"%-, and highlight the text I want in the reply and hit
GS> F4, the "CC" field is blank. I tried it changing the order (i.e. "CC"
GS> after "TO"), and woreked while TB! "CC" the list. This is not desired.
GS> However, knowing order is important. <g>

Maybe you made a little mistake when when copying the macro? Or your
surrounding macros are syntactically incorrect (number of quote
signs)? This macro works _very well_, I'm using it for months on that
one list and for months before on several Debian lists :-)

GS> What header does "%ToList" pull from in the original message?  I
GS> suspect "List-Id:".

'%ToList' is the _complete_ content of 'To:' in the current mail. If
you reply this is _all_ The Bat! thinks the mail should be addressed
to.
To get the 'List-Id:' from original mail you'll have to extract it
using regular expressions from '%Header' :-)

PP>>     %CC="%SETPATTREGEXP='^From:\s*(\S+)'%REGEXPMATCH='%Headers'"

GS> This pulls 1st word after the "From: " header.

May fault. forget to mention this is still incomplete.
For the whole line after 'From: ' you'll need:

%CC="%SETPATTREGEXP='^From:\s*(.+)$'%REGEXPMATCH='%Headers'"

PP>>     %CC="%From"

GS> I thought I used this, and it didn't work. I must of done something
GS> wrong. Well I tried it a 2nd time. It does NOT work. Result is blank
GS> "CC" field.

Because it should have been '%OFrom' ... *slapping my forehead*
Seems it was to late for me :-)

GS> What I found does work is "%CC="%OFROMFNAME %OFROMLNAME <%OFROMADDR>"".

Dangerous. Use it this way:

%CC='"%OFROMFNAME %OFROMLNAME" <%OFROMADDR>'

If '%OFromFName' or '%OFromLName' contains any character that's
defined as 'special' in RFC-(2)822 your way will result in a RFC
violating header, or in two mails sent out. Depends on how smart the
MTA is. Embracing the whole name in quote characters make it RFC
conform.

GS> I never 'Reply to all' with a mail list. I can't think why one would
GS> because the purpose of mail list so ALL can see it.

Some times this function can be useful. Trust me :-)
Several Debian lists for example are set up anybody can post, even w/o
being subscribed. This way you can request help, write in your mail
you'll need private response as you're not subscribed, but the mail
can go for archiving reasons to the list nevertheless. :-)

PP>> Similar if somebody already set a 'Reply-To' address, which would be
PP>> _silently_ discarded too.

GS> Well I suppose this could happen since my incoming filter is on
GS> kludges with filtering string equal to email mail list address when
GS> someone send message directly to me with CC to list.  I wouldn't care
GS> because the central focus would be the list on my reply.

No. Vice versa :-) Somebody sends to the list with REply-To set to him
... call it malconfigured MUA :-) Or the explicit wish you responding
_to him_, maybe because it's getting to OT if you respond on list?!
:-) There're various reasons why this might be set :-)

GS> Maybe I'm missing something here. If I use your macro with change of
GS> order of "TO" & "CC" <g>, then most messages replied would be sent
GS> twice to the list.

Quite normal.

If you first set 'To' to the list and _then_ tell 'CC' to be set to
'what is in To' it will result in CC = To :-)
That's why _first_ setting CC to 'old To' (the original sender or a
Reply-To that was entered) and then setting To to the intended value
is the correct order :-)

GS> BTW, thanks for the detailed response.  It helped a lot!

You're welcome.
-- 
Regards
Peter Palmreuther                            mailto:[EMAIL PROTECTED]
(The Bat! v1.61 on Windows 2000 5.0 Build 2195 Service Pack 1)

The best way to accelerate Windows is at escape velocity.


________________________________________________________
Current Ver: 1.61
FAQ        : http://faq.thebat.dutaint.com 
Unsubscribe: mailto:[EMAIL PROTECTED]
Archives   : http://tbudl.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
TBTech List: mailto:[EMAIL PROTECTED]
Bug Reports: https://www.ritlabs.com/bt/

Reply via email to