Re: Stupid problem with quoted names

2003-03-03 Thread Miguel A. Urech
Hello Carsten,

 Maybe this one helps you. Its actual purpose is to add list names to
 the To-address when replying. The first %IF checks for the existence
 of characters in From-name that make quoting neccessary.

Thanks a lot, it certainly does the trick :-)

-- 
Best regards,

Miguel A. Urech (El Escorial - Spain)
Using The Bat! v1.62i



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


Re: Stupid problem with quoted names

2003-03-02 Thread Carsten Thönges
* Miguel A. Urech writes:
 Hello Marck,

 There's your problem. Do this instead.

 Hello %OFROMFNAME,%-
 %TO=''%TO='%OFROMNAME [EMAIL PROTECTED]'%-
 %REPLYTO=''%REPLYTO='Some Mail List [EMAIL PROTECTED]'

 The %OFROMNAME macro excludes the double quotes (and should).

 I've tried that, but then every Name in the To field will appear in
 between quotes. I know that is no problem, but I thought I could avoid
 it.

Maybe this one helps you. Its actual purpose is to add list names to
the To-address when replying. The first %IF checks for the existence
of characters in From-name that make quoting neccessary.

,
| %IF:%-
| %SETPATTREGEXP='[\.\@,;;\\\(\)\[\]]'%REGEXPMATCH='%OFromName'=%-
| :#%-
| %TO=''%-
| %TO=_%CAPITAL='%OFROMNAME' on %-
| %ABoreplyHANDLE='%ABoreplyNAME'%-
|  %OREPLYADDR_#%-
| :#%-
| %TO=''%-
| %TO=_%CAPITAL='%OFROMNAME' on %-
| %ABoreplyHANDLE='%ABoreplyNAME'%-
|  %OREPLYADDR_%-
| #%-
`

(listname is stored in handle field of the address book)

-- 
HTH + best regards, Carsten



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


Re: Stupid problem with quoted names

2003-03-01 Thread Miguel A. Urech
Hello Miguel,

 ,- [  ]
 | I receive a message with:
 |   From: Joe Blow, Jr [EMAIL PROTECTED]
 | When I reply to it, TB includes this address in the To field but
 | without the quotes:
 |   To: Joe Blow, Jr [EMAIL PROTECTED]
 `-

Well, that was the generic case. It actually is:

 I receive a message from the list with:
   From: Joe Blow, Jr [EMAIL PROTECTED]
 When I reply to it using my template, TB includes this _name_ in the
 To field but without the quotes:
   To: Joe Blow, Jr [EMAIL PROTECTED]

I said I'm a bit thick this week %-)
   
-- 
Best regards,

Miguel A. Urech (El Escorial - Spain)
Using The Bat! v1.62i



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


Re: Stupid problem with quoted names

2003-03-01 Thread Marck D Pearlstone
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Miguel,

@1-Mar-2003, 11:36 +0100 (10:36 UK time) Miguel A. Urech [MAU] in
mid:[EMAIL PROTECTED] said:

 Generally, TB does what it is told to in the templates.

MAU Yeap, I know. And that is my problem with the reply template I have
 ... snip

MAU If I reply, I always want to do so to the list but with the name of
MAU the sender. So, in my Reply template I included:

MAU Hello %OFROMFNAME,%-
MAU %TO=%TO=%OFROMNAME [EMAIL PROTECTED]%-
MAU %REPLYTO=%REPLYTO=Some Mail List [EMAIL PROTECTED]

There's your problem. Do this instead.

Hello %OFROMFNAME,%-
%TO=''%TO='%OFROMNAME [EMAIL PROTECTED]'%-
%REPLYTO=''%REPLYTO='Some Mail List [EMAIL PROTECTED]'

The %OFROMNAME macro excludes the double quotes (and should).

- --
Cheers -- .\\arck D Pearlstone -- List moderator
TB! v1.63 Beta/7 on Windows 2000 5.0.2195 Service Pack 2
'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1rc1-nr1 (Windows 2000)

iD8DBQE+YJMqOeQkq5KdzaARArIKAKCBUwF4iXYYV1gZRbHSO4pvUeNeogCfYCpI
ALjMILSfNlavv9QvTIop414=
=rDWj
-END PGP SIGNATURE-




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


Re: Stupid problem with quoted names

2003-03-01 Thread Miguel A. Urech
Hello Marck,

 There's your problem. Do this instead.

 Hello %OFROMFNAME,%-
 %TO=''%TO='%OFROMNAME [EMAIL PROTECTED]'%-
 %REPLYTO=''%REPLYTO='Some Mail List [EMAIL PROTECTED]'

 The %OFROMNAME macro excludes the double quotes (and should).

I've tried that, but then every Name in the To field will appear in
between quotes. I know that is no problem, but I thought I could avoid
it.

-- 
Best regards,

Miguel A. Urech (El Escorial - Spain)
Using The Bat! v1.62i



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


Re: Stupid problem with quoted names

2003-03-01 Thread Marck D Pearlstone
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Miguel,

@1-Mar-2003, 12:16 +0100 (11:16 UK time) Miguel A. Urech [MAU] in
mid:[EMAIL PROTECTED] said:

 Hello %OFROMFNAME,%-
 %TO=''%TO='%OFROMNAME [EMAIL PROTECTED]'%-
 %REPLYTO=''%REPLYTO='Some Mail List [EMAIL PROTECTED]'

 The %OFROMNAME macro excludes the double quotes (and should).

MAU I've tried that, but then every Name in the To field will
MAU appear in between quotes. I know that is no problem, but I
MAU thought I could avoid it.

Well, the only way to avoid that is to use a RegEx to decide whether
the name contains any special characters and deal with it
accordingly. I'd say this is a TBTECH issue though, since double
quoting a name every time is no problem and is what I do anyway.

It's a cake and eat it thing. Either you let TB default the TO
field content and carry the original quote formatting over or you
want to extract name parts and reconstruct the addressing yourself,
in which case it's up to you to program it as required.

- --
Cheers -- .\\arck D Pearlstone -- List moderator
TB! v1.63 Beta/7 on Windows 2000 5.0.2195 Service Pack 2
'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1rc1-nr1 (Windows 2000)

iD8DBQE+YKb9OeQkq5KdzaARAtz1AJ9q3y1Dk5mcy1eJ9346+brpa6HouwCgnyeP
yFrX7vjJ3KilmcrTYppDU90=
=rB1J
-END PGP SIGNATURE-




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


Re: Stupid problem with quoted names

2003-03-01 Thread Miguel A. Urech
Hello Marck,

 Well, the only way to avoid that is to use a RegEx to decide whether
 the name contains any special characters and deal with it
 accordingly. I'd say this is a TBTECH issue though, since double
 quoting a name every time is no problem and is what I do anyway.

You are right, TBTECH would be the place to go. But no, I'll take the
easy path and use the template quoting every name.

Thanks.

-- 
Best regards,

Miguel A. Urech (El Escorial - Spain)
Using The Bat! v1.62i



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


Re: Stupid problem with quoted names

2003-02-28 Thread Luc
 Good evening Marck,
  
It was foretold that on 28-2-2003 @ 23:22:26 GMT+ (which was
0:22:26 where I live) Marck D Pearlstone would mumble:
  
snipped a bit

MDP %REM=+
MDP  Name Plucker by Marck

I'm not familiar with Regex but am i correct in assuming this one
only works with entries from the AB?

-- 
Best regards,
 Luc
---
Powered by The Bat! version 1.63 Beta/7 with Windows 2000 (build
2195), version 5.0 Service Pack 3 and using the best browser: Opera.

The years that a woman can shed are not lost. They are added to the
age of others.




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


Re: Stupid problem with quoted names

2003-02-28 Thread Marck D Pearlstone
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Luc,

@28-Feb-2003, 21:04 +0100 (20:04 UK time) Luc [L] in
mid:[EMAIL PROTECTED] said:

L snipped a bit

MDP %REM=+
MDP  Name Plucker by Marck

L I'm not familiar with Regex but am i correct in assuming this one
L only works with entries from the AB?

No. It is enhanced by entries in the AB but works using the current
TO field contents. The actual version is:

%REM=+
 Name Plucker by Marck
 +%-
%IF:%ABToLastName=list:%TOFNAME:%-
%ABToNamePrefix='%ABToFirstName=#%ABofromFIRSTNAME=.%TOFNAME.#'%-
%TO=%TO='%ABofromCompany=_%ABofromNAME=/%OFROMNAME/_ %TOADDR'

This is called in my reply template just after the Hi  bit and
supplies the correct first name for the recipient as well as sorting
out the to field content.

- --
Cheers -- .\\arck D Pearlstone -- List moderator
TB! v1.63 Beta/7 on Windows 2000 5.0.2195 Service Pack 2
'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1rc1-nr1 (Windows 2000)

iD8DBQE+X9OpOeQkq5KdzaARAjPbAJwK4rjcEJXq4+43gkA+UB+D282i2ACfTeEr
/2Dzir1rnTYw/lxzRg7MvAo=
=mIES
-END PGP SIGNATURE-




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


Re: Stupid problem with quoted names

2003-02-28 Thread Luc
 Hello Marck,
  
It was foretold that on 28-2-2003 @ 21:24:56 GMT+ (which was
22:24:56 where I live) Marck D Pearlstone would mumble:
  
snipped a bit
MDP No. It is enhanced by entries in the AB but works using the current
MDP TO field contents. The actual version is:
  
 :-) Thank you Marck. Have to try that one.
 
-- 
Best regards,
 Luc
---
Powered by The Bat! version 1.63 Beta/7 with Windows 2000 (build
2195), version 5.0 Service Pack 3 and using the best browser: Opera.

He who is always his own counsellor will often have a fool for his
client.




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


Stupid problem with quoted names

2003-02-27 Thread Miguel A. Urech
Hello all,

I receive a message with:

  From: Joe Blow, Jr [EMAIL PROTECTED]

When I reply to it, TB includes this address in the To field but
without the quotes:

  To: Joe Blow, Jr [EMAIL PROTECTED]

And if I click send I get the following error:

---
Message has not been sent.
Server reply - Invalid RFC821 mailbox specification.
---

Obviously, if I manually include the quotes, the message is sent just
fine.

Does anybody know why TB strips the quotes when replying. Does this
happen in higher TB versions? I'm still on 1.61.

TIA.

-- 
Best regards,

Miguel A. Urech (El Escorial - Spain)
Using The Bat! v1.61



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


Re: Stupid problem with quoted names

2003-02-27 Thread Luc
 Good evening Miguel,
  
It was foretold that on 27-2-2003 @ 21:53:44 GMT+0100 (which was
21:53:44 where I live) Miguel A. Urech would mumble:
  
snipped a bit
MAU Obviously,  if I manually include the quotes, the message is sent
MAU just  fine.  Does  anybody  know  why  TB  strips the quotes when
MAU replying.  Does  this  happen in higher TB versions? I'm still on
MAU 1.61.
  
I don't know if this is of any assistance for you Miguel, but i don't
receive From: Joe Blow, Jr [EMAIL PROTECTED]. I receive From: Joe Blow,
Jr [EMAIL PROTECTED] without quotes. However on replying, TB! inserts the
quotes and doesn't give any errors. I never had that problem in 1.61
either.
 
-- 
Best regards,
 Luc
---
Powered by The Bat! version 1.63 Beta/7 with Windows 2000 (build
2195), version 5.0 Service Pack 3 and using the best browser: Opera.

Inside every older person, there's a younger person wondering what
happened. Gloria Swanson (1897-1983).




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


Re: Stupid problem with quoted names

2003-02-27 Thread Sergey Kalabekov
Miguel A. Urech typed:

MAU I receive a message with:
MAU   From: Joe Blow, Jr [EMAIL PROTECTED]
MAU When I reply to it, TB includes this address in the To field but
MAU without the quotes:
MAU   To: Joe Blow, Jr [EMAIL PROTECTED]
 I think the problem with comma after Blow and when you put the name
 in quotation marks the program recognizes prefix Jr as a part of
 name. Otherwise prefix Jr seems like a part of the e-mail address.
 My thoughts.
 
Regards,
-- 
Sergey E. Kalabekov

Using The Bat! v1.62i on Windows XP 5.1 Build 2600 Service Pack 1



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


Re: Stupid problem with quoted names

2003-02-27 Thread Sergey Kalabekov
Miguel,

Correction to my last message: Jr is suffix.

Regards,
-- 
Sergey E. Kalabekov

Using The Bat! v1.62i on Windows XP 5.1 Build 2600 Service Pack 1



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


Re: Stupid problem with quoted names

2003-02-27 Thread Miguel A. Urech
Hello Sergey,

  I think the problem with comma after Blow and when you put the name
  in quotation marks the program recognizes prefix Jr as a part of
  name. Otherwise prefix Jr seems like a part of the e-mail address.
  My thoughts.

Yes, I know the problem comes because of the comma, but still I don't
understand why TB strips the quotation marks.

-- 
Best regards,

Miguel A. Urech (El Escorial - Spain)
Using The Bat! v1.61



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


Re: Stupid problem with quoted names

2003-02-27 Thread Miguel A. Urech
Hello Luc,

 I don't know if this is of any assistance for you Miguel, but i don't
 receive From: Joe Blow, Jr [EMAIL PROTECTED]. I receive From: Joe Blow,
 Jr [EMAIL PROTECTED] without quotes. However on replying, TB! inserts the
 quotes and doesn't give any errors. I never had that problem in 1.61
 either.

I guess TB does the right thing in your case to compensate what it
does wrong in mine :)

-- 
Best regards,

Miguel A. Urech (El Escorial - Spain)
Using The Bat! v1.61



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


Re: Stupid problem with quoted names

2003-02-27 Thread Sergey Kalabekov
Miguel A. Urech typed:

MAU Yes, I know the problem comes because of the comma, but still I don't
MAU understand why TB strips the quotation marks.
Might be your Reply template that strips quotes, not the program.

Sincerely,
-- 
Sergey E. Kalabekov

Using The Bat! v1.62i on Windows XP 5.1 Build 2600 Service Pack 1



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


Re: Stupid problem with quoted names

2003-02-27 Thread Miguel A. Urech
Hello Sergey,

 Might be your Reply template that strips quotes, not the program.

Hmmm, I didn't think of that. I will check it.

Thanks.

-- 
Best regards,

Miguel A. Urech (El Escorial - Spain)
Using The Bat! v1.61



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


Re: Stupid problem with quoted names

2003-02-27 Thread Marck D Pearlstone
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Miguel,

@27-Feb-2003, 23:13 +0100 (22:13 UK time) Miguel A. Urech [MAU] in
mid:[EMAIL PROTECTED] said:

MAU I guess TB does the right thing in your case to compensate what it
MAU does wrong in mine :)

Generally, TB does what it is told to in the templates. You can
compensate by using template macros. It's a long time since I relied
on the default behaviour anyway ;-).

Here's the one I use.

%REM=+
 Name Plucker by Marck
 +%-
%IF:%ABToLastName=list:%qinclude='listto':%-
%ABToNamePrefix='%ABToFirstName=#%ABofromFIRSTNAME=.%TOFNAME.#'%-
%TO=%TO='%ABofromCompany=_%ABofromNAME=/%OFROMNAME/_ %TOADDR'

Not only does it put the double quotes in, it also calls people by
name the name by which I usually refer to them, whatever they may
have called themselves in the original message (if I know them well
enough - i.e. they're in my address book).

- --
Cheers -- .\\arck D Pearlstone -- List moderator
TB! v1.63 Beta/7 on Windows 2000 5.0.2195 Service Pack 2
'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1rc1-nr1 (Windows 2000)

iD4DBQE+Xp21OeQkq5KdzaARAmFNAJdS6TnGcBaUyQ/cfdXsrbG2Y5GOAKCYk19R
vSc5alpROOzDpJRphGdtRQ==
=fI3c
-END PGP SIGNATURE-




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