Re: Regexp filtering on sender
On Monday, February 02, 2004, Carsten Thönges wrote... >>>>[EMAIL PROTECTED] >>> Wouldn't it be better to anchor the start of the address with a >>> word boundary \b instead of a start of string anchor? I'm honestly >>> asking since I only use trivial regexps in filters. >> So your filter would look like this then? >> [EMAIL PROTECTED] > No, it'll look like [EMAIL PROTECTED] As I said, I'm not very good at regex, I always get something backwards... Did I get the theory somewhere close? -- Jonathan Angliss ([EMAIL PROTECTED]) Op'ti-mism n. 1. A Yugo with a trailer hitch pgp0.pgp Description: PGP signature http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Regexp filtering on sender
On Sunday, February 01, 2004, Januk Aggarwal wrote... >> You have to make sure that the sender's address really _starts_ >> with an a, b, c etc. You could try this: >>[EMAIL PROTECTED] > Wouldn't it be better to anchor the start of the address with a word > boundary \b instead of a start of string anchor? I'm honestly asking > since I only use trivial regexps in filters. So your filter would look like this then? [EMAIL PROTECTED] Or something to that affect right? Would it match this? [EMAIL PROTECTED] The a is still in the word boundry, just not at the beginning. I think Carsten's solution is more likely to have the desired effect, but I'm not that good at regex. -- Jonathan Angliss ([EMAIL PROTECTED]) Welcome to Hell. Here's your copy of Windows. pgp0.pgp Description: PGP signature http://www.silverstones.com/thebat/TBUDLInfo.html
Re: POPFile plugin
On Monday, December 15, 2003, daniel hahler wrote... CT>> [ Do we need a POPFile plugin? ] CT>> I'd say: no. Because ... CT>> ... you can simply double click the X-POPFile-Link when displayed in CT>> the header pane. > You're right. > But I wish this URL would be more accessible. Can you use a keyboard > Shortcut for this? It would have to search for the URL in the header > and send it to the browser.. > IIRC I've seen sth like this before.. You could write a filter, with a little regex... check out the SpamCop filter, or at least the second stage part. Assign it to run on a key event, then you should be able to build upon that. -- Jonathan Angliss ([EMAIL PROTECTED]) The four snack groups: cakes, crunchies, frozen and sweets. pgp0.pgp Description: PGP signature http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Formatting kludges
On Thursday, October 23, 2003, Andrew Perevodchik wrote... > I'm a bit confused... Could anyone tell if the following message > headers formatting is legal (this is from bugreport about MyGate > that I received): > X-Mailer: The Bat! (v2.01.3) Business > . > In-Reply-To: <[EMAIL PROTECTED]> > References: > > <[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL PROTECTED]><[EMAIL > PROTECTED]><[EMAIL PROTECTED]> > <[EMAIL PROTECTED]> > <[EMAIL PROTECTED]> > <[EMAIL PROTECTED]> > MIME-Version: 1.0 > "References:" is immediately followed by CR LF SP. I've looked through > RFC822 and found this: Take a look at the section in RFC2822 (the one that replaces RFC822) about the section on folding headers, that'll detail all the information about it. The only thing I'm not sure about is the length of that first line, it seems very long, I cannot remember the length, but I think it's supposed to only be up to 78 characters for header lines, I'd have to double check. -- Jonathan Angliss ([EMAIL PROTECTED]) In Stereo where available. .eldaliava erehw oeretS nI pgp0.pgp Description: PGP signature http://www.silverstones.com/thebat/TBUDLInfo.html
Re: New Plugin Spec...
On Tuesday, August 05, 2003, Leif Gregory wrote... > sourceforge.net I *STRONGLY* suggest not using them. Their services are awful and have been for the last 6 months. I develop SquirrelMail, and we have several outages a week, cvs is constantly playing up, web hosting is up and down, mailing lists are lagging... and they won't seem to do anything about it. However if it's requested, I don't mind hosting projects, I run cvs, mailing lists, websites etc. -- Jonathan Angliss ([EMAIL PROTECTED]) Bureaucrats cut red tape--lengthwise. pgp0.pgp Description: PGP signature http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Baesyan filter - the bug fixed
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wednesday, April 02, 2003, Alexey N. Vinogradov wrote... > O'k. To be correctly installed the filter must has file > с:\baesyan\regard.rbd which every user must generate for himself by > dictionary generating engine. (this path is absolute, it can't be > changed now).If this file doesn't exist or if it is impossible to > open it then the filter will report the error you show in > attachment. Wasn't there a discussion a little while ago about forcing paths? I'm sure it was a general consensus that the path should be as dynamic as possible, even if forced to live in TB!'s mail folder under a sub, at least that way, the user could change the location in regards to the mail folder. Although I dare say, if you have the ability to perform configuration options, you could probably write that stuff yourself, into the registry or something, and allow the folder to be completely dynamic... just an idea :) - -- Jonathan Angliss ([EMAIL PROTECTED]) -BEGIN PGP SIGNATURE- Comment: Fingerprint: 676A 1701 665B E343 E393 B8D2 2B83 E814 F8FD 1F73 iQA/AwUBPou+kCuD6BT4/R9zEQLSNgCfQvo4nNPlko/I8nbUB3b+DmPEUKAAn04/ 0l+dSBSPcQToA4uj26PBQ8hj =279P -END PGP SIGNATURE- Current version is 1.62 | "Using TBDEV" information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: vampirex plugin naw ruz edition avalaible to download
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wednesday, March 26, 2003, NetVicious wrote... > I only said this component make this, I'm sure it exits functions on > the web to decode uuencode easily. I know... and I wrote one... and posted it here too ;) - -- Jonathan Angliss ([EMAIL PROTECTED]) -BEGIN PGP SIGNATURE- iQA/AwUBPoIvsCuD6BT4/R9zEQImgACfatEvo6r8/HflolKpwmrGy2MIV9oAoNfK +v0OwI9O0YILNtlFfsK+aeuO =aD7a -END PGP SIGNATURE- Current version is 1.62 | "Using TBDEV" information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: vampirex plugin naw ruz edition avalaible to download
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wednesday, March 26, 2003, NetVicious wrote... >>> http://W%57%57.%42%49%4cET%49%4b.G%49S%49S.R%55 instead of real >>> URL? >> url decode :) I'll write some code, and post it shortly. > On Delphi you could use TNMUrl component to decode these urls I know... just means you have to include another library with your plugin, and/or runtime libraries, increasing the size of your code. The code I wrote isn't long ;) - -- Jonathan Angliss ([EMAIL PROTECTED]) -BEGIN PGP SIGNATURE- iQA/AwUBPoHIfyuD6BT4/R9zEQL3eACfXFvTh42+INPTPyFIYkaQsgyF2qEAoJdt mqSeYffKoKRRJW0hkNwJ4Of0 =sZh4 -END PGP SIGNATURE- Current version is 1.62 | "Using TBDEV" information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: vampirex plugin naw ruz edition avalaible to download
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sunday, March 23, 2003, Jonathan Angliss wrote... >> http://W%57%57.%42%49%4cET%49%4b.G%49S%49S.R%55 instead of real URL? > url decode :) I'll write some code, and post it shortly. Find attached a URL decode routine. Not sure how perfect it is, haven't given it a full blown road run yet, but tested it on a few encoded strings that I have, including this one. Format for usage is: str = URLDecode( EncodedString ); For example: str = URLDecode( 'http://W%57%57.%42%49%4cET%49%4b.G%49S%49S.R%55'); Str will then return http://WWW.BILETIK.GISIS.RU Hope that helps. - -- Jonathan Angliss ([EMAIL PROTECTED]) -BEGIN PGP SIGNATURE- Comment: Fingerprint: 676A 1701 665B E343 E393 B8D2 2B83 E814 F8FD 1F73 iQA/AwUBPn51mSuD6BT4/R9zEQK3fgCeNTgzYcR9D38ozkZlyMNSI4kNa2oAoP3U aIlCy2djV/bdfbCy3lj2HQ7o =PkyT -END PGP SIGNATURE- decode.pas Description: Binary data Current version is 1.62 | "Using TBDEV" information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: vampirex plugin naw ruz edition avalaible to download
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sunday, March 23, 2003, Alexey N. Vinogradov wrote... > If spammer include a comment inside HTML - as > PORNOGRAPHY, or I've seen a lot of this recently. If you're using the right languages, you can simple use a regular expression to ignore that, I'm not sure on the syntax, but a general idea would be something like: $str = replace( '\<\!--\d+--\>' , '' , $str ); Of course... I'm probably off, but it probably gives you an idea. I doubt the delphi's replace function takes regexp, but there is some regexp handling in there somewhere. > http://W%57%57.%42%49%4cET%49%4b.G%49S%49S.R%55 instead of real URL? url decode :) I'll write some code, and post it shortly. - -- Jonathan Angliss ([EMAIL PROTECTED]) -BEGIN PGP SIGNATURE- Comment: Fingerprint: 676A 1701 665B E343 E393 B8D2 2B83 E814 F8FD 1F73 iQA/AwUBPn5vCyuD6BT4/R9zEQJDqgCgikfVnoTLGZQg185TMcgZ0zKUU9IAn0hn tMlnCvZzcIuIFYqiUIRAqDGh =WTtG -END PGP SIGNATURE- Current version is 1.62 | "Using TBDEV" information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: help with regular expressions
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > b. in silence convert the expresions and mail texts to uppercase. > - did you like see a regex's filter in vampire? I'm not any good at regex, but I do not think you can do that, for example \d isn't the same as \D. Making the regex all uppercase will result in some very unusual results. Just as a second point, I think using regex, you can pretty much ignore case if done right... but you'd have to see what the more experienced people say. If you take a look at the TBUDL footer (and this list too?), there is a link to the TBUDL info pages. On that page is a good documentation on regexp. It might be work a read (the 4 "books") before you start playing with this. - -- Jonathan Angliss ([EMAIL PROTECTED]) -BEGIN PGP SIGNATURE- Comment: Fingerprint: 676A 1701 665B E343 E393 B8D2 2B83 E814 F8FD 1F73 iQA/AwUBPlchoCuD6BT4/R9zEQIvXwCfe1CfPo7OkGaNOAHd42HDyHuqE8YAoJS8 8UruP1ozHzTSN4McS6p9SpDA =GYj5 -END PGP SIGNATURE- Current version is 1.62 | "Using TBDEV" information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Hmmm, any ideas on this one?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sunday, February 16, 2003, Task Control wrote... > i don'k know. maybe the problem is the size of the string, i use the > tbtest model get the raw text ans it is puted in a string. ¿what is > the maximun length of this string? in delphi i don't know. In Delphi, a string (declared as just string) is 256 characters long. You can define a string in delphi as a widestring, shortstring, string, longstring, and I cannot remember if there was any more. The lengths depend on the type you picked. - -- Jonathan Angliss ([EMAIL PROTECTED]) -BEGIN PGP SIGNATURE- Comment: Fingerprint: 676A 1701 665B E343 E393 B8D2 2B83 E814 F8FD 1F73 iQA/AwUBPlB3liuD6BT4/R9zEQIwagCgqQki3vCgEk1gRgf4GUF8JvdK2bYAn1nm lP6/P4LJUn8mEZ58FzcK4CUR =fEe4 -END PGP SIGNATURE- Current version is 1.62 | "Using TBDEV" information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: spam plug-in created by NetVicious
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday, January 27, 2003, Marck D Pearlstone wrote... JA>> There should be a text box that allows you to add your own JA>> headers there. > That's not it. It puts header text into the message body rather than > into the message headers. Headers as in the opposite of footers. At > least, that's what it did last time I used it :-). Any more ideas? That is rather frustrating. I guess there are then two options that I can see... 1) Modify the perl scripts that mailman uses to add the new headers 2) Create a procmail filter to add the extra header line when mail comes into the server (more efficient that way, and mailman shouldn't strip them off then). Apart from that, I cannot think of anything else. - -- Jonathan Angliss ([EMAIL PROTECTED]) -BEGIN PGP SIGNATURE- Comment: Fingerprint: 676A 1701 665B E343 E393 B8D2 2B83 E814 F8FD 1F73 iQA/AwUBPjYMnSuD6BT4/R9zEQLisQCdG3y6v5ga+5sUBCi/PyLneaiASdMAoPql AoHO8S9O1VDhcokydWiPEzIb =E/di -END PGP SIGNATURE- Current version is 1.62 | "Using TBDEV" information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: spam plug-in created by NetVicious
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday, January 27, 2003, Marck D Pearlstone wrote... JA>> Moderators might want to put that header line in, same with the JA>> other lists... the archives header line is missing. > Anyone know how to do that? Go into the list administration options (this is likely to be something like http://stromgrade.its-toasted.org/mailman/admin/tbdev for example), and click on the link: Regular-member (non-digest) Options There should be a text box that allows you to add your own headers there. At that point, you can pick the Archives header that the old list software used, and put that in, such as this: List-archive: <http://www.mail-archive.com/tbdev@thebat.dutaint.com/> That will mean that the Specials - Mailling list - Archives will work again too. You can then repeat the same thing on the Digest options as well, and repeat on all lists. Let me know if you get any problems :) - -- Jonathan Angliss ([EMAIL PROTECTED]) -BEGIN PGP SIGNATURE- Comment: Fingerprint: 676A 1701 665B E343 E393 B8D2 2B83 E814 F8FD 1F73 iQA/AwUBPjXy7CuD6BT4/R9zEQII4ACeK7pZY1x3UEUrkD1YkoTNTd5VircAoOLv 1CTzIDK+XuWokbue7LHmq4lM =P4GE -END PGP SIGNATURE- Current version is 1.62 | "Using TBDEV" information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: spam plug-in created by NetVicious
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday, January 27, 2003, NetVicious wrote... > Hello Luc, > Well, looking on the headers on all of the mails of the list I see > that any archive exists. As a point, this list doesn't have such a header, although I believe the archive does exist. Moderators might want to put that header line in, same with the other lists... the archives header line is missing. TBDEV: http://www.mail-archive.com/tbdev@thebat.dutaint.com/ - -- Jonathan Angliss ([EMAIL PROTECTED]) -BEGIN PGP SIGNATURE- Comment: Fingerprint: 676A 1701 665B E343 E393 B8D2 2B83 E814 F8FD 1F73 iQA/AwUBPjXimSuD6BT4/R9zEQLgOwCg4c4R44cE2/vrGpn7c8r4anxEUxcAoNeB TCaewbF4AgV8bqnfi8fknUwB =nO8p -END PGP SIGNATURE- Current version is 1.62 | "Using TBDEV" information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: RFC: plugins macros
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday, January 27, 2003, Stefan Tanurkov wrote... PP>> Every plugin (no matter of what kind, AV or AntiSpam etc.) could PP>> register an array of macros that would be added to the TB! PP>> standard set of macros. > This is the same idea I've got too. It just needs some time to > provide all those possibilities. It just takes some time to > implement the "slots" :-) If I'm understand thing correctly, the theory behind the plugins would be the same as how we've got it setup on the SquirrelMail project I work on. A number of "predefined hooks" in specific locations. We then provide a single function that fetches the plugins for that "hook". An example is the login page, there are three hooks, login_before_form, login_form, and login_after_form (I think). On loading of a page, a single function is called [do_hook($hook_name)] that runs through an array of plugins and fetches all those that affect that plugin. Inside the plugins core file (setup.php), is a setup function that provides the necessary details in the format: $squirrelmail_plugin['name']['hook'] = 'function to call'; name is obviously the name, while hook is where it works from. Am I right in assuming that this would be 'roughly' how you are planning on doing things? > Meanwhile, we would like to hear suggestions about implementation, > places, etc. > Here is what is already planned (just to avoid repetition): > - Macros > - Menu commands/Toolbar buttons I can see a use for this... certainly > - Filtering: >- additional conditions >- actions >- complete filters I can see a partial need for these, such as allowing a filter to do RBL lookups if you wanted. > - Message loading processors > - Attachment handlers (is this needed?) Possibly, allow extensions as per explorer, such as send to zip, send to..., maybe a virus scanner per file (if not done already?), maybe allow for the overriding of the default windows handlers for attachments (open with... and such). > - Editor extensions > To all: what do you feel about this? :-) They sound good to me. - -- Jonathan Angliss ([EMAIL PROTECTED]) -BEGIN PGP SIGNATURE- iQA/AwUBPjWWVSuD6BT4/R9zEQKW0wCfa5v4L1mDOiHpi0iQ5jz0tGJCDscAoKYd 5H1nW5Vtz2oLxQBPseaxundz =aquE -END PGP SIGNATURE- Current version is 1.62 | "Using TBDEV" information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: What are TBP_GetStatus, TBP_NeedConfig, TBP_NeedCOM, TBP_Setupfunctions
> N> Someonehave discovered what TBP_GetStatus, TBP_NeedConfig, > N> TBP_NeedCOM, TBP_Setup functions does. > > TBPGetStatus() > para ahora... > return(0); // todo bien > en el futuro, sera posible utilizar otros codigos. [..] Is there any documentation anywhere in English? :) Or are we left to guess most of the workins? I asked the other day if there was any available, but didn't get an answer, so I'm guessing that we just have to guess... or am I wrong? -- Jonathan Angliss ([EMAIL PROTECTED]) Current version is 1.62 | "Using TBDEV" information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Documentation and Info Request
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wednesday, January 22, 2003, NetVicious wrote... >> How is that "junk folder" defined? In the plugin configuration >> itself, or is it an internal thing that RitLabs are setting? > The plugin gets information from the mail and returns a number, if > this number it's major than one of the two posible configurations on > the plugin the mail will be moved to the Junk Mail folder. I'd worked this out. What I meant was who defined the "junk" folder? I guess it is RitLabs. I just didn't see any method of setting up your own junk folder, such as a common folder called "Spam". - -- Jonathan Angliss ([EMAIL PROTECTED]) -BEGIN PGP SIGNATURE- iQA/AwUBPi7SNyuD6BT4/R9zEQLtBQCgkOBML2ok6pgYk0gndEHljfMyoLkAnjXX RzYoqhQCtyJ8cHdTOe/boCp0 =nptB -END PGP SIGNATURE- Current version is 1.62 | "Using TBDEV" information: http://www.silverstones.com/thebat/TBUDLInfo.html
Documentation and Info Request
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi All, I've been following the threads with interest, being a delphi programmer myself, was going to look into the programming of plugins. Could somebody point me in the direction of some documentation that explains the "hooks" and "requirements" for a plugin. The only things that has partially made any sense to me was the sample .dpr project that was posted the other day, and even bits of that have me lost at points. Also what are the intended scopes for the plugins? I mean are there going to be plugins for other areas, or is it just limited to spam filtering and virus scanning? If the plugins are being moved to other areas too, what areas are planned? Another question related to the spam plugins... there is an option that says "move to junk folder" when the score is over a certain level. How is that "junk folder" defined? In the plugin configuration itself, or is it an internal thing that RitLabs are setting? Thanks in advance. - -- Jonathan Angliss ([EMAIL PROTECTED]) -BEGIN PGP SIGNATURE- iQA/AwUBPi2u9CuD6BT4/R9zEQIeFwCgiIKPiYKkvfCsq9egCIBJC1nENLUAniir R72C+ZWivLEY4fmkaRINSsUJ =ZMUr -END PGP SIGNATURE- Current version is 1.62 | "Using TBDEV" information: http://www.silverstones.com/thebat/TBUDLInfo.html