Re[2]: Attribution Line in Replies and Forwarded Messages etc.
Hi Januk, On Sunday, July 14, 2002 13:27 your local time, which was 21:27 my local time, Januk Aggarwal [JA] wrote; JA Yes. Change these two. JA - [ Begin Attribution ] - JA %wrapped=#On %QINCLUDE=Date %QINCLUDE=Time JA %QINCLUDE=MyTimeZone local time, JA %QINCLUDE=TimeZoneCheck%QINCLUDE='InitSelect' wrote; JA %QINCLUDE=QuotesInit# JA - [ End Attribution ] - JA - [ Begin TimeZoneCheck ] - JA %IF:'%QINCLUDE=Time''%ODATE=hh:nn':'%- JA which was %QINCLUDE=OtherDate my local time, ':''%- JA - [ End TimeZoneCheck ] - Spot on! Everything now works like a dream! Thanks Januk! Chris. __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re[2]: Attribution Line in Replies and Forwarded Messages etc.
Hi Januk, On Saturday, July 13, 2002 17:35 your local time, which was Sunday, July 14, 2002 at 01:35 my local time, Januk Aggarwal [JA] wrote; JA To get the our time part, you'd need to change your to JA %QINCLUDE=MyTimeZone JA [Begin MyTimeZone] JA %IF:'%QINCLUDE=Time''%ODATE=hh:nn':'your':'our'%- JA [ End MyTimeZone] Excellent, works a treat JA [Begin OtherDate] JA %IF:'%SETPATTREGEXP=(?im-s)^Date\:.*?\,\s*(\d*)%- JA %REGEXPMATCH=%HEADERS'='%ODATE=d':'%- JA %ODATE=hh:nn':'%- JA %ODATE=, d, at hh:nn'%- JA [ End OtherDate] This also works, as if I ever doubted it :-) CW Phew, quite a bit of copying and pasting there! JA Indeed. Let's hope this fixes it. It does indeed! If I were to be picky, there is just one little thing, when I write back to someone in the same timezone, this bit 'my local time, Januk Aggarwal' seems to add an extra space between the comma and your first name. Do you know why? Much appreciated! This is my opinion is now a superb attribution line! Thanks for you help Januk! Chris. __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re: Attribution Line in Replies and Forwarded Messages etc.
On Sunday, July 14, 2002 at 1:21 PM, earthworms were entertained when Januk Aggarwal [JA] exposed: JA Yes. Er, sorry. Hit the wrong button by mistake. See my next message for the full response. -- Thanks for writing, Januk Aggarwal I tried relaxing, but...I don't know...I feel more comfortable tense. __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re: Attribution Line in Replies and Forwarded Messages etc.
Hello Chris, On Sunday, July 14, 2002 at 11:38 GMT +0100, Chris Weaven [CW] heard voices say: CW when I write back to someone in the same timezone, this bit 'my local CW time, Januk Aggarwal' seems to add an extra space between the comma and CW your first name. Do you know why? Yes. Change these two. - [ Begin Attribution ] - %wrapped=#On %QINCLUDE=Date %QINCLUDE=Time %QINCLUDE=MyTimeZone local time, %QINCLUDE=TimeZoneCheck%QINCLUDE='InitSelect' wrote; %QINCLUDE=QuotesInit# - [ End Attribution ] - - [ Begin TimeZoneCheck ] - %IF:'%QINCLUDE=Time''%ODATE=hh:nn':'%- which was %QINCLUDE=OtherDate my local time, ':''%- - [ End TimeZoneCheck ] - CW Thanks for you help Januk! You're welcome. -- Thanks for writing, Januk Aggarwal I have an imaginary friend who refuses to play with me. __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re[2]: Attribution Line in Replies and Forwarded Messages etc.
Hi Januk, On Thursday, July 11, 2002 20:01 your local time, which was Friday, July 12, 2002 at 04:01 my local time, Januk Aggarwal [JA] wrote; JA Ok, then I really don't know the problem. Please include *all* of the JA parts of your templates which affect the attribution line. Umm. Right, you asked for it, so here are all my templates in alphabetical order ;-) Reply Template %wrapped=#%qinclude=Attribution# QT-Attribution %wrapped=#On %QINCLUDE=Date %QINCLUDE=Time your local time, %QINCLUDE=TimeZoneCheck %QINCLUDE='InitSelect' wrote; %QINCLUDE=QuotesInit# QT-Date %REM=Do the translation of the weekday%- %Comment=%- %-%-%SETPATTREGEXP='(?im-s)^Date\:\s*(...)'%- %-%-%REGEXPMATCH='%Headers'%- %- %IF:%Comment=Sun:Sunday:%- %IF:%Comment=Mon:Monday:%- %IF:%Comment=Tue:Tuesday:%- %IF:%Comment=Wed:Wednesday:%- %IF:%Comment=Thu:Thursday:%- %IF:%Comment=Fri:Friday:%- %IF:%Comment=Sat:Saturday:, %- %- %REM=Do Month translation%- %Comment=%- %SETPATTREGEXP='(?im-s)^Date\:.*?\,[\s\d]*(\S*)'%- %REGEXPMATCH='%Headers'%- %- %IF:%Comment=Jan:January:%- %IF:%Comment=Feb:February:%- %IF:%Comment=Mar:March:%- %IF:%Comment=Apr:April:%- %IF:%Comment=May:May:%- %IF:%Comment=Jun:June:%- %IF:%Comment=Jul:July:%- %IF:%Comment=Aug:August:%- %IF:%Comment=Sep:September:%- %IF:%Comment=Oct:October:%- %IF:%Comment=Nov:November:%- %IF:%Comment=Dec:December: %- %- %REM=Include date%- %SETPATTREGEXP=(?im-s)^Date\:.*?\,\s*(\d*)%- %REGEXPMATCH=%Headers, %- %- %REM=Add in Year%- %SETPATTREGEXP=(?im-s)^Date\:.*?(\d{4})%- %REGEXPMATCH=%Headers%- %- %Comment=%- QT-Full Name %CAPITAL='%ABofromNAME=%QINCLUDE=Full Name - No AB Entry' QT-Full Name - No AB Entry %SETPATTREGEXP=^(?(?=.*?\@)(.*?)\@|(.*)$)%- %REGEXPBLINDMATCH=%OFROMNAME%- %SUBPATT=1%SUBPATT=2%- QT-Initials %SETPATTREGEXP=(?is)(\w).*?([-_=@\.\s]+(\w).*?)?([-_=@\.\s]+(\w).*?)?$%- %REGEXPBLINDMATCH=%QINCLUDE=Full Name%- %SUBPATT=1%SUBPATT=3%SUBPATT=5%- QT-InitSelect %OFROMFNAME %OFROMLNAME%- %IF:%- %SETPATTREGEXP=(?im-s)^X-Mailer\:.*(Bat!|Becky|Gnus|slrn).*$%- %REGEXPBLINDMATCH=%HEADERS%- %SUBPATT=1: [%QINCLUDE=Initials]: QT-OtherDate %IF:'%SETPATTREGEXP=(?im-s)^Date\:.*?\,\s*(\d*)%- %REGEXPMATCH=%HEADERS%-'='%ODATE=d':'%- %ODATE= hh:nn':'%- %ODATE=, d, at hh:nn%- QT-QuotesInit %QUOTESTYLE='%- %IF:%- %SETPATTREGEXP=(?im-s)^X-Mailer\:.*(Bat!|Becky|Gnus|slrn).*$%- %REGEXPBLINDMATCH=%HEADERS%- %SUBPATT=1:=%QINCLUDE=Initials:None' QT-Time %SETPATTREGEXP=(?im-s)^Date\:.*?([\d]{0,2}\:[\d]{0,2})\:[\d]{0,2}.*?([-+]\d{4})%- %REGEXPBLINDMATCH=%HEADERS%- %SUBPATT=1 QT-TimeZoneCheck %IF:'%QINCLUDE=Time''%ODATE=hh:nn':'%- which was %QINCLUDE=OtherDate my local time,%- ':''%- Phew, quite a bit of copying and pasting there! I assume all that above makes sense to you! If you can streamline it, it would be appreciated, because as you can see, there are a few and I suspect it could be cleaned!? :-) CW The only other thing I wanted to work on was, if they're in the same CW time zone, I wanted it to say in 'our' time zone, rather than in 'your' CW time zone. JA Ok, but that can be done as part of the streamlining of your current JA templates. Good luck! Much appreciated and looking forward to seeing what you come back with. Thanks, Chris. Ps. Sorry everyone! __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re[2]: Attribution Line in Replies and Forwarded Messages etc.
Hi Januk, On Friday, July 5, 2002 22:41 your local time, which was Saturday, July 6, 2002 at 06:41 my local time, Januk Aggarwal [JA] wrote; Sorry to bother you again, but I've been trying for nearly a week to fix my problem, but I can't get it! :-( It only seems to work when I write to you, or it could be the fact that it's a different date? JA Make sure you're using the QT you quoted. The original TimeZoneCheck JA QT I posted has an error in the delimiters that could cause the JA problem you're seeing. I am using the correct template. I've checked a couple of times now. When I write back to someone in a different time zone, it drops the 'my local time' section. When I write to someone in the same timezone, it puts an extra space in before they're name. The only other thing I wanted to work on was, if they're in the same time zone, I wanted it to say in 'our' time zone, rather than in 'your' time zone. Apologies for being thick still, but your help is really appreciated and I think once I've got this sorted, I'll be kept quiet for a bit!? Thanks, Chris. __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re: Attribution Line in Replies and Forwarded Messages etc.
Hello Chris, On Thursday, July 11, 2002 at 21:34 GMT +0100, Chris Weaven [CW] heard voices say: CW It only seems to work when I write to you, or it could be the fact CW that it's a different date? I'm not sure. There have been so many changes to your template, I can no longer make heads or tails of what you have. Can you please post the parts of your template system which are responsible for including the where I am part. CW I am using the correct template. I've checked a couple of times CW now. Ok, then I really don't know the problem. Please include *all* of the parts of your templates which affect the attribution line. CW The only other thing I wanted to work on was, if they're in the same CW time zone, I wanted it to say in 'our' time zone, rather than in 'your' CW time zone. Ok, but that can be done as part of the streamlining of your current templates. CW Apologies for being thick still, but your help is really CW appreciated No problem. CW and I think once I've got this sorted, I'll be kept quiet for a CW bit!? Why? Won't you want to use your new template system as much as possible? ;-) -- Thanks for writing, Januk Aggarwal If you've ever noticed, the average traffic cone queue stretches for miles, and the poor things often wait for hours without progressing anywhere. Traffic cones have rights, just like people. __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re[2]: Attribution Line in Replies and Forwarded Messages etc.
Hi Januk On Friday, July 5, 2002 09:54 your local time, which was 17:54Januk Aggarwal [JA] wrote; JA By the way Chris, I made a mistake in the TimeZoneCheck QT I posted. JA It should be: JA [QT TimeZoneCheck] JA %IF:'%QINCLUDE=Time''%ODATE=hh:nn':'%- JA which was %QINCLUDE=OtherDate where I am,%- JA ':''%- JA [End] As you can see from the above attribution line, things don't seem to have slotted in aswell as I hoped they would've. It's put in 'which was hh:mm', but has missed the bit that say's 'where I am' for some reason? Also, how do I wrap the attribution line when I get to 72 characters? Thanks, Chris. __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re[2]: Attribution Line in Replies and Forwarded Messages etc.
Hi Januk, On Tuesday, July 2, 2002 21:44, which was Wednesday, July 3, 2002 at 05:44 where I am, Januk Aggarwal [JA] wrote; CW This was almost what I wanted, but I worded it incorrectly. I CW wanted it to show the full date and time if the actual date was CW different rather than the time. Does that make sense? As you can CW see above, it's got a repeat of the date, whereas I only wanted it CW to show the date if it was different due to the different CW time-zones. JA Ah, that makes a little more sense. This is exactly what I requested, but... :-( Sorry, I keep moving the goalposts. After your name, it put's [JA]. This is fine, but when I reply to someone who doesn't support initials, it still comes up in the [ ], but doesn't appear down the side of their quoted text. Surely if it's shows in one place, it should be in the other and vice versa? I also need to re-phrase the sentence so it's more universal, but I'll work on that. CW You assistance and patience is greatly appreciated! JA You are welcome. Are you sure I'm still welcome although I keep moving the goalposts? Thanks again, Chris. __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re[2]: Attribution Line in Replies and Forwarded Messages etc.
Hi Januk, On Wednesday, July 3, 2002 01:14, which was 09:14 where I am, Januk Aggarwal JA wrote; JA So let's analyze QuotesInit and hopefully that will make it obvious JA what you need to change. Ummm, not obvious enough for me :-( JA There are five crucial parts to the construction used in QuotesInit. JA 1. %QUOTESTYLE JA 2. %IF JAa) Test Condition JAb) True Action JAc) False Action I follow that... JA %IF has the construction: JA %IF:string1string2:true template:false template JA or more symbolically JA %IF : condition : true : false I follow that also. JA I hope that gives you some clues on how to modify the above to do what JA you need. If not, plaese ask. But, I still can't get it. I've read through this mail a few times now, but to no avail. Sorry. I'm a bit stressed aswell, as we're about to move house and lots to do, so I'm not 100% focused :-( I really want to get my head around this, so I'll show you my templates again and if you would be so kind as to give me the answer, I'll piece it together. I sometimes find it easier working backwards from the result. One of the hardest things to get my head around is the delimiter, as it seems a bit random :-) Main Template On %QINCLUDE=Date %QINCLUDE=Time, which was %QINCLUDE=OtherDate' where I am, %OFROMFNAME %OFROMLNAME %QINCLUDE='Initials' wrote; %QINCLUDE=QuotesInit %QUOTES Initials %SETPATTREGEXP=(?is)(\w).*?([-_=@\.\s]+(\w).*?)?([-_=@\.\s]+(\w).*?)?$%- %REGEXPBLINDMATCH=%QINCLUDE=Full Name%- %SUBPATT=1%SUBPATT=3%SUBPATT=5%- QuotesInit %QUOTESTYLE='%- %IF:%- %SETPATTREGEXP=(?im-s)^X-Mailer\:.*(Bat!|Becky|Gnus|slrn).*$%- %REGEXPBLINDMATCH=%HEADERS%- %SUBPATT=1:=%QINCLUDE=Initials:None' Now here's the one I need to work on. Would I be correct in guessing that when I have a working QT, I'd replace %QINCLUDE='Initials' from the main template to %QINCLUDE='InitSelect'? InitSelect %QUOTESTYLE='%- %IF:%- %SETPATTREGEXP=(?im-s)^X-Mailer\:.*(Bat!|Becky|Gnus|slrn).*$%- %REGEXPBLINDMATCH=%HEADERS%- %SUBPATT=1:=%QINCLUDE=Initials:None' I've had a few plays, but I'm sorry, I must be testing your patience. I'm afraid to ask for assistance now and to just give up. I hope you can put me out of my misery and I'll try to work it out and explain it back to you to see if I've got the method right. Thanks, Chris. (Chris wanders of holding his head in disappointment and shame) __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re[2]: Attribution Line in Replies and Forwarded Messages etc.
Hi Januk, On Monday, July 1, 2002 17:04, which was Tuesday, July 2, 2002 at 01:04 where I am, Januk Aggarwal [JA] wrote; When I press the reply button, no text from your mail is carried over. Here is my template; On %QINCLUDE=Date %QINCLUDE=Time, which was %ODATE=, %- d, at hh:nn where I am, %OFROMFNAME %OFROMLNAME [%QINCLUDE='Initials'] wrote; %Quotestyle= %QINCLUDE=QuotesInit %QUOTES Here's Initials QT; %SETPATTREGEXP=(?is)(\w).*?([-_=@\.\s]+(\w).*?)?([-_=@\.\s]+(\w).*?)?$%- %REGEXPBLINDMATCH=%QINCLUDE=Full Name%- %SUBPATT=1%SUBPATT=3%SUBPATT=5%- Here's QuotesInit QT; %QUOTESTYLE='%- %IF:%- %SETPATTREGEXP=(?im-s)^X-Mailer\:.*(Bat!|Becky|Gnus|slrn).*$%- %REGEXPBLINDMATCH=%HEADERS%- %SUBPATT=1:=%QINCLUDE=Initials:None' What is wrong in the above? Also, I like the attribution line because the text was written on different days because of the time difference, but if there was no time difference, I'd like to line to only show the time for my bit rather than the whole day. I'm sure we'll need an if function in there somewhere!? You mean the Initials, Full Name and Full Name - No AB Entry QTs? That's fairly simple. The Initials routine needs a string from which it will extract the initials. That string is generated by the Full Name QT which looks in the address book. If there isn't an address book entry then the Full Name QT calls the Full Name - No AB Entry QT to make sure that the name of the person is returned. If %OFROMNAME macro returns an address, only the part before the '@' is returned. Yup. I carried them all over, but something still seems very wrong :-( CW I totally agree with you. Although I'm getting frustrated, I get a CW good sense of achievement on completion (should I ever get there!) You will, soon. Can I question that!? ;-p Thanks, A hair losing Chris. __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re: Attribution Line in Replies and Forwarded Messages etc.
Hello Chris, An archeological dig discovered that on Tuesday, July 2, 2002 at 08:29 GMT +0100, Chris Weaven [CW] typed the following: CW When I press the reply button, no text from your mail is carried CW over. Here is my template; CW On %QINCLUDE=Date %QINCLUDE=Time, which was %ODATE=, %- CW d, at hh:nn where I am, %OFROMFNAME %OFROMLNAME [%QINCLUDE='Initials'] wrote; CW %Quotestyle= %QINCLUDE=QuotesInit Delete this. You already have the %QUOTESTYLE macro in your QuotesInit QT. All you need in your main template is the %QInclude=... part. The technical problem is, you need to use a delimiter around the argument. In other words, it should be: %QuoteStyle='%QINCLUDE=QuotesInit' While it is true that this version allows you to use almost any character as a delimiter, spaces won't usually work simply because spaces at the end of a line will be stripped by the editor. When TB doesn't see that second space, it thinks the rest of your template is part of the argument to %QuoteStyle. In other words, it causes major confusion. CW Also, I like the attribution line because the text was written on CW different days because of the time difference, but if there was no CW time difference, I'd like to line to only show the time for my bit CW rather than the whole day. I'm sure we'll need an if function in CW there somewhere!? Yes. The easiest is to replace the whole %ODATE='...' bit with: %IF:'%QINCLUDE=Time'='%ODATE=hh:nn':'%- %ODATE=hh:nn':'%- %ODATE=, d, at hh:nn%- CW Yup. I carried them all over, but something still seems very wrong I don't follow, what is wrong? Your attribution line seemed to come up with the initials ok. -- Thanks for writing, Januk Aggarwal Was August Mobius so rigid that he could only see one side of a question? __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re[2]: Attribution Line in Replies and Forwarded Messages etc.
On Tuesday, July 2, 2002 01:52, which was Tuesday, July 2, 2002 at 09:52 where I am, Januk Aggarwal [JA] wrote; Hi Januk, Check it out! Look at my attribution line! It's very nearly there! Also, I've the quote initials! Wow :-) CW Also, I like the attribution line because the text was written on CW different days because of the time difference, but if there was no CW time difference, I'd like to line to only show the time for my bit CW rather than the whole day. I'm sure we'll need an if function in CW there somewhere!? JA Yes. The easiest is to replace the whole %ODATE='...' bit with: JA %IF:'%QINCLUDE=Time'='%ODATE=hh:nn':'%- JA %ODATE=hh:nn':'%- JA %ODATE=, d, at hh:nn%- This was almost what I wanted, but I worded it incorrectly. I wanted it to show the full date and time if the actual date was different rather than the time. Does that make sense? As you can see above, it's got a repeat of the date, whereas I only wanted it to show the date if it was different due to the different time-zones. I'm going to have a go at changing the 'if' function to make the change if the date is different rather than the time. I would appreciate if you could send me what to do, as by the time you read this, I'll have either broken it, or done it. You assistance and patience is greatly appreciated! Thanks, Chris. __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re: Attribution Line in Replies and Forwarded Messages etc.
Hello Chris, On Tuesday, July 2, 2002 at 19:07 GMT +0100, an infinite number of monkeys posting as Chris Weaven [CW] typed: CW This was almost what I wanted, but I worded it incorrectly. I CW wanted it to show the full date and time if the actual date was CW different rather than the time. Does that make sense? As you can CW see above, it's got a repeat of the date, whereas I only wanted it CW to show the date if it was different due to the different CW time-zones. Ah, that makes a little more sense. Try: %IF:'%SETPATTREGEXP=(?im-s)^Date\:.*?\,\s*(\d*)%- %REGEXPMATCH=%HEADERS%-'='%ODATE=d':'%- %ODATE=hh:nn':'%- %ODATE=, d, at hh:nn%- CW You assistance and patience is greatly appreciated! You are welcome. -- Thanks for writing, Januk Aggarwal There is no such place as the University of Wis-cosine, and if there was, the motto of their mathematics department would not be Secant ye shall find. __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re[2]: Attribution Line in Replies and Forwarded Messages etc.
Hi Januk, On Sunday, June 30, 2002 17:37, which was Monday, July 1, 2002 at 01:37 where I am, Januk Aggarwal wrote; On Sunday, June 30, 2002 at 12:01 GMT +0100, aliens probed Chris Weaven [CW] and found: %IF:%SETPATTREGEXP=(?im-s)^X-Mailer\:.*(Bat!|Becky|Gnus|slrn).*$%- REGEXPBLINDMATCH=%HEADERS%- %SUBPATT=1:[%QINCLUDE='Initials'] As you can see from above, it still doesn't seem to work for some reason. It's also taken out the initials I used to have present :-( My template is; On %QINCLUDE=Date %QINCLUDE=Time2, which was %ODATE=, %- d, at hh:nn where I am, %OFROMFNAME %OFROMLNAME %QINCLUDE='Initials' wrote; %Quotestyle= %QINCLUDE='Initials' %QUOTES Which give's me what I've got above. The quick template is; Initials %IF:%SETPATTREGEXP=(?im-s)^X-Mailer\:.*(Bat!|Becky|Gnus|slrn).*$%- REGEXPBLINDMATCH=%HEADERS%- %SUBPATT=1: What am I doing wrong now? I want it to look like yours! Thanks, Chris. __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re[2]: Attribution Line in Replies and Forwarded Messages etc.
Hi Januk, On Monday, July 1, 2002 01:28, which was Monday, July 1, 2002 at 09:28 where I am, Januk Aggarwal [JA] wrote; Ok, well the initials quick template should only generate the initials, it shouldn't do any decision making about when to use those initials. Do the decision making in a separate QT. I use 3 layers, my main template, a name template that decides how to display the name and if initials are appropriate, and and an initials template which generates the initials. As you can see by the above, I now have your initials present on the attribution line. Yippee But, I seem to have broken everything else :-( I copied over the template from your link, where you have a series of 3 QT's. Can you give me a hint of how they all link together as I had to copy and paste your mail to get this info across! :-( I am purposely being somewhat cryptic in my answers. The reason for that is you seem to be interested in cobbling together your own solution from fragments that are floating around. In the process you are probably learning a lot about templates and the macros. You are doing a good job and are almost there, so it would seem that I would ruin your well deserved sense of accomplishment if I just give you my solution. I totally agree with you. Although I'm getting frustrated, I get a good sense of achievement on completion (should I ever get there!) Having said that, if you would like to see a working template system (it is complex), I could give you my solution. It still won't be exactly what you want, but the necessary changes should be almost trivial for you. If you do want to see my full solution, you'll have to ask me off-list. Thanks for the offer, but I'm going to beat this! but can you help with the linking the 3 QT's? Thanks, Chris. __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re: Attribution Line in Replies and Forwarded Messages etc.
Hello Chris, An archeological dig discovered that on Monday, July 1, 2002 at 18:27 GMT +0100, Chris Weaven [CW] typed the following: CW On Monday, July 1, 2002 01:28, which was Monday, July 1, 2002 at CW 09:28 where I am, Januk Aggarwal [JA] wrote; snip CW As you can see by the above, I now have your initials present on CW the attribution line. Yippee Congrats. CW But, I seem to have broken everything else :-( I don't really see what is broken. If you mean that you don't have the initials in the quotes, then you can use a QuoteStyle macro like: %QUOTESTYLE='%- %IF:%- %SETPATTREGEXP=(?im-s)^X-Mailer\:.*(Bat!|Becky|Gnus|slrn).*$%- %REGEXPBLINDMATCH=%HEADERS%- %SUBPATT=1:=%QINCLUDE=Initials:None' Just remember to put this somewhere before your %QUOTES macro. CW I copied over the template from your link, where you have a series CW of 3 QT's. Can you give me a hint of how they all link together as CW I had to copy and paste your mail to get this info across! :-( You mean the Initials, Full Name and Full Name - No AB Entry QTs? That's fairly simple. The Initials routine needs a string from which it will extract the initials. That string is generated by the Full Name QT which looks in the address book. If there isn't an address book entry then the Full Name QT calls the Full Name - No AB Entry QT to make sure that the name of the person is returned. If %OFROMNAME macro returns an address, only the part before the '@' is returned. CW I totally agree with you. Although I'm getting frustrated, I get a CW good sense of achievement on completion (should I ever get there!) You will, soon. -- Thanks for writing, Januk Aggarwal Was August Mobius so rigid that he could only see one side of a question? __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re[2]: Attribution Line in Replies and Forwarded Messages etc.
Hi Januk, On Saturday, June 29, 2002 19:42, which was Sunday, June 30, 2002 at 03:42 where I am, Januk Aggarwal wrote; CW I'd like to remove the whole part about GMT +0100 to give me just CW the time for the writer. JA Delete everything after %SUBPATT=1. At the top you can see what it looks like now. Here is the template; On %QINCLUDE=Date %QINCLUDE=Time2, which was %ODATE=, %- d, at hh:nn where I am, %OFROMFNAME %OFROMLNAME %QINCLUDE=Qstyle wrote; I'd like to add in the initials of the writer after the name, but only if their client accepts it. Is this possible? For the initials in the mail I use; 'Qstyle'; %IF:%SETPATTREGEXP=(?im-s)^X-Mailer\:.*(Bat!|Becky|Gnus|slrn).*$%- %REGEXPBLINDMATCH=%HEADERS%- %SUBPATT=1=:NONE: As you can see, I already have it in the reply template, but it doesn't seem to work? Thanks, Chris. __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re: Attribution Line in Replies and Forwarded Messages etc.
Hello Chris, On Sunday, June 30, 2002 at 12:01 GMT +0100, aliens probed Chris Weaven [CW] and found: CW Hi Januk, On %QINCLUDE=Date %QINCLUDE=Time2, which was %ODATE=, %- d, at hh:nn where I am, %OFROMFNAME %OFROMLNAME %QINCLUDE=Qstyle wrote; CW I'd like to add in the initials of the writer after the name, but CW only if their client accepts it. Is this possible? Yes, use this fragment to give attribution line initials or nothing depending on the client: %IF:%SETPATTREGEXP=(?im-s)^X-Mailer\:.*(Bat!|Becky|Gnus|slrn).*$%- REGEXPBLINDMATCH=%HEADERS%- %SUBPATT=1:[%QINCLUDE='Initials'] Where Initials is the name of the initials generation template you use. There are two in current circulation with recent threads in both TBTECH and TBUDL giving reference to them. CW As you can see, I already have it in the reply template, but it CW doesn't seem to work? What you posted was a code fragment that was poorly formatted. If that's the way it was in your template, then it would cause problems. If the formatting was simply an error when copying and pasting, then we'd need to take a closer look at the templates. -- Thanks for writing, Januk Aggarwal OK, I'm weird! But I'm saving up to become eccentric. __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re: Attribution Line in Replies and Forwarded Messages etc.
Hello Chris, On Saturday, June 29, 2002 at 22:41 GMT +0100, an infinite number of monkeys posting as Chris Weaven [CW] typed: CW So, this is what I'd like (in an ideal world): It looks like you're pretty close. CW This is what I've so far (which I'm very proud of!); Congrats, it looks good. %SETPATTREGEXP=(?im-s)^Date\:.*?([\d]{0,2}\:[\d]{0,2})\:[\d]{0,2}.*?([-+]\d{4})%- %REGEXPBLINDMATCH=%HEADERS%- %SUBPATT=1 GMT %SUBPATT=2%- CW I'd like to remove the whole part about GMT +0100 to give me just CW the time for the writer. Delete everything after %SUBPATT=1. -- Thanks for writing, Januk Aggarwal Using The Bat! 1.60q under Windows 98 4.10 Build A Reality is merely an illusion, albeit a very persistent one. --Albert Einstein (1879-1955) __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]