Re: Need to cut the recipient's name

2004-03-30 Thread Robin Anson
On Tue 30 March 2004, 22:34:01 +1000, Carsten Thönges wrote: <...snip...> > It's because the pattern doesn't need to match the whole subject. > > This regexp should work: "^(.*?)(?: - .*)?$" Thanks Carsten. It's obvious once you explain it and, of course, it's the detail that is so important.

Re: Need to cut the recipient's name

2004-03-30 Thread Carsten Thönges
* Robin Anson writes: > On Tue 30 March 2004, 2:54:02 +1000, Marck D Pearlstone wrote: > MDP>>> %IF:"%ABtoGender"="0":"Spett.le":"Egr." %- > MDP>>> %SETPATTREGEXP="(.*)( - .*)?"%- > MDP>>> %REGEXPBLINDMATCH="%ABTOLASTNAME='%TOLNAME'"%- > MDP>>> %SUBPATT(1) > JO>> Don't Know why the brackets in (

Re: Need to cut the recipient's name

2004-03-30 Thread Robin Anson
On Tue 30 March 2004, 2:54:02 +1000, Marck D Pearlstone wrote: MDP>>> %IF:"%ABtoGender"="0":"Spett.le":"Egr." %- MDP>>> %SETPATTREGEXP="(.*)( - .*)?"%- MDP>>> %REGEXPBLINDMATCH="%ABTOLASTNAME='%TOLNAME'"%- MDP>>> %SUBPATT(1) JO>> Don't Know why the brackets in ( - .*)? are useless, but it's runnin

Re: Need to cut the recipient's name

2004-03-29 Thread Marck D Pearlstone
Dear Jacopo, @29-Mar-2004, 18:49 +0200 (29-Mar 17:49 UK time) Jacopo Ognibene [JO] in mid:[EMAIL PROTECTED] said to Marck: MDP>> %IF:"%ABtoGender"="0":"Spett.le":"Egr." %- MDP>> %SETPATTREGEXP="(.*)( - .*)?"%- MDP>> %REGEXPBLINDMATCH="%ABTOLASTNAME='%TOLNAME'"%- MDP>> %SUBPATT(1) JO> Yes, finall

Re: Need to cut the recipient's name

2004-03-29 Thread Jacopo Ognibene
Dear Marck, on Mon, 29 Mar 2004, at 13:17:50 [GMT +0100] (which was 14.17 here in Italy) you wrote: MDP> Maybe my fault - you really want to do this: MDP> %IF:"%ABtoGender"="0":"Spett.le":"Egr." %- MDP> %SETPATTREGEXP="(.*)( - .*)?"%- MDP> %REGEXPBLINDMATCH="%ABTOLASTNAME='%TOLNAME'"%- MDP> %SUB

Re: Need to cut the recipient's name

2004-03-29 Thread Marck D Pearlstone
Dear Jacopo, @29-Mar-2004, 14:00 +0200 (29-Mar 13:00 UK time) Jacopo Ognibene [JO] in mid:[EMAIL PROTECTED] said to Marck: JO> Marck, on Mon, 29 Mar 2004, at 12:36:07 [GMT +0100] (which was 13.36 here in JO> Italy) you wrote: MDP>> %IF:"%ABtoGender"="2":"Cara":"Caro" %- MDP>> %SETPATTREGEXP="(.*

Re: Need to cut the recipient's name

2004-03-29 Thread Jacopo Ognibene
Marck, on Mon, 29 Mar 2004, at 12:36:07 [GMT +0100] (which was 13.36 here in Italy) you wrote: MDP> I thought the ' - work' bit was on the last name. No? MDP> If it's on the first name, then you can do this: MDP> %IF:"%ABtoGender"="2":"Cara":"Caro" %- MDP> %SETPATTREGEXP="(.*)( - .*)?"%- MDP> %

Re: Need to cut the recipient's name

2004-03-29 Thread Marck D Pearlstone
Dear Jacopo, @29-Mar-2004, 11:55 +0200 (29-Mar 10:55 UK time) Jacopo Ognibene [JO] in mid:[EMAIL PROTECTED] said to Robin: JO> Following is the mine: JO> %IF:"%ABtoGender"="2":"Cara":"Caro" %ABtoFIRSTName="%TOFNAME", JO> And this is the Mark's Solution for cutting the name: JO> JO> I got no

Re: Need to cut the recipient's name

2004-03-29 Thread Jacopo Ognibene
Robin, on Sun, 28 Mar 2004, at 08:46:55 [GMT +1000] (which was 0.46 here in Italy) you wrote: RA> Or set "Display name as: User-defined", set the first and last names RA> correctly and add " - work" to the display name. Thanks for your reply, I appreciate! But now I have more than 1.200 entr

Re: Need to cut the recipient's name

2004-03-27 Thread Robin Anson
On Sun 28 March 2004, 1:58:49 +1000, Marck D Pearlstone wrote: > The address book is stunningly versatile. You can do as you have > done and use a simple regexp to extract the name > %SETREGEXP="(.*) - .*"%REGEXPMATCH="%ABTOLASTNAME" > > Or you can use the middle name field. > > Or groups. Or se

Re: Need to cut the recipient's name

2004-03-27 Thread Marck D Pearlstone
Dear Jacopo, @27-Mar-2004, 16:52 +0100 (27-Mar 15:52 UK time) Jacopo Ognibene [JO] in mid:[EMAIL PROTECTED] said to Jacopo: JO>> I've setted the entries in my Address Book adding the category in the JO>> last name, after a " - " mark. JO>> E.g. first="Jacopo", last="Ognibene - Work" JO> It's

Re: Need to cut the recipient's name

2004-03-27 Thread Jacopo Ognibene
Jacopo, on Sat, 27 Mar 2004, at 16:33:38 [GMT +0100] has wrote: JO> I've setted the entries in my Address Book adding the category in the JO> last name, after a " - " mark. JO> E.g. first="Jacopo", last="Ognibene - Work" It's me. Do you think there is a better way to organize the entries in t

Need to cut the recipient's name

2004-03-27 Thread Jacopo Ognibene
Hi Bats! I've setted the entries in my Address Book adding the category in the last name, after a " - " mark. E.g. first="Jacopo", last="Ognibene - Work" Now, I use a template for automatic addressing to the recipient by: - the first name (for friends) e.g. "Hi John!" - the last name (f