Hello Peter,

Thursday, July 18, 2002, 4:23:51 PM, you wrote:

PP> IMHO yes.

This is what I thought, but wanted to confirm.

GS>> everything seems to be working except the "CC" address

PP> First: if you copied the template completely it might just be you
PP> forget the closing " when setting '%TO'

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

Actually it worked with or without the closing " but thanks for the
correction.  I need to learn the syntax. <g>

PP> Nevertheless you can try this one:

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

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

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

PP> This spares you the regular expression, which additionally can't work
PP> in this form:

PP> ,-----= [  ] =-----
PP> | %CC="%REGEXPTEXT="^From:\s\S.""
PP> `-----=

PP> 1.) CC would be set to '%REGEXPTEXT=' as this is what's embraced by
PP>     quotes. This macro will be expanded to nothing as there's no
PP>     pattern set.
PP> 2.) The pattern has to be set by
PP>     %SETPATTREGEXP
PP> 3.) You have to define what part of the result of regular expression
PP>     you are interested in. I'm sure you're not interested in 'From:\s'
PP>     part.

No, but what is after the "From: ".

PP>     Therefore the macro has to be:

PP>     %SETPATTREGEXP='^From:\s*(\S+)'
PP> 4.) You have to define on what text you want to apply the regular
PP>     expression:
PP>     %REGEXPMATCH='%Headers'

PP>     This would make up

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

This pulls 1st word after the "From: " header.  Want I would want to
pull is the balance of the line after the "From: ", so it would
include the <EmailAcct@AcctDomain>.
    
PP> 5.) You don't need to extract 'From' from original headers manually.
PP>     It's already present in '%OFrom'. Therefore it's better to use

PP>     %CC="%From"

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

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

PP> Now you'd be done ... until you use (seldom, I know *G*) 'Reply to
PP> all' in a mail in that folder. You template will discard all
PP> additional recipients TB! already figured out for you.

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

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

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

PP> That's why I'd suggest my already mentioned solution of setting 'CC'
PP> to '%ToList' and than set 'TO' to the lists address. This will result
PP> in the intended 'TO', but keep eventually set addresses coming form
PP> 'Reply-To' or a 'Reply to all' function in 'CC'.

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

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

-- 
Best regards,

Greg Strong                     
TB! v1.62/Beta1 on Windows 98  


________________________________________________________
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