Re: Attribution Line in Replies and Forwarded Messages etc.
Hello Chris, It was foretold that on Saturday, July 13, 2002 at 21:18 GMT +0100, Chris Weaven [CW] would type: >>QT-Attribution CW> %wrapped=#On %QINCLUDE="Date" %QINCLUDE="Time" your local time, CW> %QINCLUDE="TimeZoneCheck" %QINCLUDE='InitSelect' wrote; CW> %QINCLUDE="QuotesInit"# To get the "our time" part, you'd need to change "your" to %QINCLUDE="MyTimeZone" [Begin MyTimeZone] %IF:'%QINCLUDE="Time"'<>'%ODATE="hh:nn"':'your':'our'%- [ End MyTimeZone] >>QT-OtherDate CW> %IF:'%SETPATTREGEXP="(?im-s)^Date\:.*?\,\s*(\d*)"%- CW> %REGEXPMATCH="%HEADERS"%-'='%ODATE="d"':'%- CW> %ODATE= hh:nn':'%- CW> %ODATE=", d, ""at"" hh:nn"%- ^^ I think this one is the problem. It's missing few things. Try: [Begin OtherDate] %IF:'%SETPATTREGEXP="(?im-s)^Date\:.*?\,\s*(\d*)"%- %REGEXPMATCH="%HEADERS"'='%ODATE="d"':'%- %ODATE="hh:nn"':'%- %ODATE=", d, ""at"" hh:nn"'%- [ End OtherDate] CW> Phew, quite a bit of copying and pasting there! Indeed. Let's hope this fixes it. CW> I assume all that above makes sense to you! Sadly, it does. ;-) It certainly helps that I wrote the hard parts. CW> If you can streamline it, it would be appreciated, It would become a jumbled mess if we try to collapse it. This really is the best way. -- Thanks for writing, Januk Aggarwal I simply wasn't cool enough for them (whomever they were) to offer drugs to me. Drugs were everywhere, that's what the TV said. I could get offered drugs at any time. Yeah, right. -- J. Sullivan __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re: wrapped boxquoting
Hello Sudip, On Saturday, July 13, 2002 at 14:45 GMT +0530, Sudip Pokhrel [SP] heard voices say: SP> This works except for one problem, please see my examples below: SP> | The empty space increases proportionally with the number of paragraphs I can't really reproduce the problem. All I get is 1 extra empty line from wrap2, but that is taken care of by the template I gave you previously. So I'm not sure where the problem is being introduced in your template system. I imagine it must be from wrap2, so you could try the following template. However, I would check first if you haven't miscopied the wrap2 template I referred to previously. [Begin wrap2] %IF:'%- %SETPATTREGEXP="(?is-m)[^\n]+"%- %REGEXPMATCH="%COMMENT"'<>'':'%- %- %WRAPPED=_%SETPATTREGEXP="(?is-m)^(.*?)(\n((\w{0,5}(\>\s*)+)?\n){1,}(.*)$|\z)"%- %-%-%-%-%-%REGEXPBLINDMATCH="%COMMENT"%- %-%-%-%-%-%SUBPATT="1"_ %- %COMMENT=_%SETPATTREGEXP="(?is-m)^.*?(\n((\w{0,5}(\>\s*)+)?\n){1,}(.*)\s*$|\z)"%- %-%-%-%-%-%REGEXPBLINDMATCH="%COMMENT"%- %-%-%-%-%-%SUBPATT="5"_ %- %QINCLUDE="wrap2"' [ End wrap2] -- Thanks for writing, Januk Aggarwal Is it OK to use the AM radio after noon? __ 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: attached files in replies
Fri, 12 Jul 2002 19:51:12[GMT -0300] (6:51 PM EDST) you wrote: > Can I make to include de original attached files in replies ??? While in Edit Mail Message Utilities | Attach files | MIME Coded Using The Bat! v1.60q/Post3 on Windows 95 4.0 Build B -- Daniel A. Grunberg Kensington, Maryland, USA homepage: www.nyx.net/~dgrunber/ __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re: wrapped boxquoting
Hi Januk, On Sat, 13 Jul 2002 01:25:09 -0700 GMT (Jul 13, 13:55 my time), you [JA] wrote: JA> [Begin QT] JA> ,- [ Begin %CURSOR] - JA> %COMMENT='%clipboard'%- JA> %COMMENT='%- JA> %-%-%SETPATTREGEXP="(?is-m)^(.*)\n$"%- JA> %-%-%REGEXPMATCH="%- JA> %-%-%-%-%QINCLUDE=#wrap2#"'%- JA> %QINCLUDE="bq2" JA> `- [ End ] - JA> [End QT] JA> Where "wrap2" and "bq2" are the wrap recursive engine and the JA> boxquoting recursive engines respectively. This works except for one problem, please see my examples below: ,- [ Begin ] - | There is only one paragraph here: notice the empty space |< |< `- [ End ] - ,- [ Begin ] - | There are two paragraphs in this example, this one | | and this one: please notice bigger empty space at the end | < | < | < `- [ End ] - ,- [ Begin ] - | Here we have copied three paragraphs. | | The empty space at the end of the paragraph is getting bigger. | | The empty space increases proportionally with the number of paragraphs | < | < | < | < `- [ End ] - -- Cheers, Sudip For PM:- mailto:[EMAIL PROTECTED] Sudip Pokhrel Kathmandu-NP PGP Key ID: 0xD93F5185 http://pgpkeys.mit.edu -- Sys Info -- Using The Bat! v1.60q on Windows 98 4.10 (Build A ) H/W: Pentium IV 1.4 Ghz|256MB RAM|40GB HDD [IE 5.0, Opera 6.03 (default)] __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re: wrapped boxquoting
Hello Sudip, On Saturday, July 13, 2002 at 00:33 GMT +0530, electricians were shocked that Sudip Pokhrel [SP] potentially scribbled: JA>> You want to use Carsten's boxquoting template in conjunction with JA>> the wrap macro? Use: [Begin QT] ,- [ Begin %CURSOR] - %COMMENT='%clipboard'%- %COMMENT='%- %-%-%SETPATTREGEXP="(?is-m)^(.*)\n$"%- %-%-%REGEXPMATCH="%- %-%-%-%-%QINCLUDE=#wrap2#"'%- %QINCLUDE="bq2" `- [ End ] - [End QT] Where "wrap2" and "bq2" are the wrap recursive engine and the boxquoting recursive engines respectively. -- Thanks for writing, Januk Aggarwal Have you ever imagined a world without hypothetical situations? __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]