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="dddd, mmmm d, yyyy ""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]

Reply via email to