From lefcha at hellug.gr Sun Jan 5 14:22:01 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Sun Jan 5 14:22:01 2003 Subject: [imapfilter-devel]Is it possible to use several actions with one filter? In-Reply-To: References: Message-ID: <20030105121834.GA923@linux> On Thu, Dec 19, 2002 at 02:54:17PM +0100, Per Westerlund wrote: > I would like to manipulate flags as well as move messages with one filter > definition in stead of using at least two. I hate to duplicate configuration > information in several places. > > Is this possible? Yes, I will add this feature. It will be like the "list" action; you can actually request header(s) with all the other actions without having to define an explicit "list" filter. From lefcha at hellug.gr Sun Jan 5 14:22:16 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Sun Jan 5 14:22:16 2003 Subject: [imapfilter-devel]Macro facility needed? In-Reply-To: References: Message-ID: <20030105122144.GB923@linux> On Thu, Dec 19, 2002 at 04:37:01PM +0100, Per Westerlund wrote: > Problem: > > We sort incoming messages in a common mailbox to a set of folders: > > Day/backup > Day/spam > Day/mail errors > . > . > > We want to move old messages to an archive a while before we delete them: > > Day/backup -> Old/backup > Day/spam -> Old/spam > Day/mail errors -> Old/mail errors > . > . > > We can group mailboxes to an alias using the 'folder' command. We can use a > common filter to select messages older than a certain number of days. Using > 'job' we can associate the filter with the alias. There is unfortunately > only possible to have an explicit recipient mailbox with the 'action move' > command. This forces us to use one alias for every mailbox, one > filter/action for every mailbox, and one job statement for every mailbox. > > Is it possible to get the result I want with some minor modification of the > language? > > [...] Do you have any suggestions on how this could be accomplished conveniently, by modifying or adding to the language? From lefcha at hellug.gr Sat Jan 11 14:57:03 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Sat Jan 11 14:57:03 2003 Subject: [imapfilter-devel]Is it possible to use several actions with one filter? In-Reply-To: <20030105121834.GA923@linux> References: <20030105121834.GA923@linux> Message-ID: <20030111125748.GA1243@linux> On Sun, Jan 05, 2003 at 02:18:34PM +0200, Lefteris Chatzibarbas wrote: > On Thu, Dec 19, 2002 at 02:54:17PM +0100, Per Westerlund wrote: > > I would like to manipulate flags as well as move messages with one filter > > definition in stead of using at least two. I hate to duplicate configuration > > information in several places. > > > > Is this possible? > > Yes, I will add this feature. It will be like the "list" action; you > can actually request header(s) with all the other actions without having > to define an explicit "list" filter. An explanation... Do you want to manipulate the flags of the messages that are going to be copied/moved and then copy/move them, or copy/move the messages and change their flags in the destination mailbox (the mailbox that the messages where copied/moved to)? From randyperkins at randyperkins.com Thu Jan 23 08:58:01 2003 From: randyperkins at randyperkins.com (Randy Perkins) Date: Thu Jan 23 08:58:01 2003 Subject: [imapfilter-devel]imapfilter: parse error in config file at row 5 Message-ID: <1043305277.1476.10.camel@randy.randyperkins.com> hello i am using the latest version of imapfilter 0.8.4 according to the manpage for imapfilterrc "Empty lines and lines beginning with the number sign `#' character, which are considered comments, are ignored." however if i have a blank line in my .imapfilterrc file I recieve the following error 'imapfilter: parse error in config file at row 5' I am using RH8 when i first started using imapfilter, i dont recall having this problem, i believe it is when i upgraded to rh8, that this problem started, as my original 7.3 copy of the file still had the blank lines in it. if i remove the blank lines, everything works well any information would be appreciated thanks for the program :) thanks randy perkins -------------------------- my .imapfilterrc --------------------------------- set timeout = 120 subscribe = yes logfile = /home/rperkins/imapfilter.log warning = no account randyperkinscom justlittleme:canttellyouthisok at mail.randyperkins.com folder inbox INBOX filter security from root subject "fileserver.randyperkins.com" subject "system check" action move imap/security filter not_so_new older 7 action move imap/this_years_mail filter spam subject "*****SPAM*****" action move imap/spam job security inbox job spam inbox job not_so_new inbox -------------------------------------end ------------------------------------ -- Randy Perkins -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: smiley-3.png Type: image/png Size: 819 bytes Desc: not available URL: From lefcha at hellug.gr Thu Jan 23 16:52:01 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Thu Jan 23 16:52:01 2003 Subject: [imapfilter-devel]imapfilter: parse error in config file at row 5 In-Reply-To: <1043305277.1476.10.camel@randy.randyperkins.com> References: <1043305277.1476.10.camel@randy.randyperkins.com> Message-ID: <20030123145302.GA395@linux> On Thu, Jan 23, 2003 at 02:01:17AM -0500, Randy Perkins wrote: > [...] > > however if i have a blank line in my .imapfilterrc file > I recieve the following error > 'imapfilter: parse error in config file at row 5' > > I am using RH8 > when i first started using imapfilter, i dont recall having this > problem, > i believe it is when i upgraded to rh8, that this problem started, > as my original 7.3 copy of the file still had the blank lines in it. > if i remove the blank lines, everything works well > > [...] I think this is a bug in the version of glibc that RedHat 8 comes with. Apparently, RedHat 8 shipped with a snapshot of the development version of glibc, (that RedHat called 2.2.93). At that time, the stable version of glibc was 2.2.5 and currently it's 2.3.1. My Debian unstable has glibc 2.3.1 [0] and imapfilter works fine. So most definitely this isn't a bug of imapfilter. [0] The new version of glibc has a completely new regex implementation. From randyperkins at randyperkins.com Thu Jan 23 23:35:02 2003 From: randyperkins at randyperkins.com (Randy Perkins) Date: Thu Jan 23 23:35:02 2003 Subject: [imapfilter-devel]imapfilter: parse error in config file at row 5 In-Reply-To: <20030123145302.GA395@linux> References: <1043305277.1476.10.camel@randy.randyperkins.com> <20030123145302.GA395@linux> Message-ID: <1299.24.123.20.245.1043356747.squirrel@www.randyperkins.com> > On Thu, Jan 23, 2003 at 02:01:17AM -0500, Randy Perkins wrote: >> [...] >> >> however if i have a blank line in my .imapfilterrc file >> I recieve the following error >> 'imapfilter: parse error in config file at row 5' >> >> I am using RH8 >> if i >> remove the blank lines, everything works well >> >> [...] > > I think this is a bug in the version of glibc that RedHat 8 comes with. > Apparently, RedHat 8 shipped with a snapshot of the development version > of glibc, (that RedHat called 2.2.93). At that time, the stable version > of glibc was 2.2.5 and currently it's 2.3.1. My Debian unstable has > glibc 2.3.1 [0] and imapfilter works fine. > > So most definitely this isn't a bug of imapfilter. > > > [0] The new version of glibc has a completely new regex implementation. hello, Thanks for your response, i checked the version of glibc and you are right i have version glibc-2.2.93-5 the latest beta of rh has a glibc of glibc-2.3.1-36 what should i do now 1. is this a bug i need to inform someone else about? how should i go about it. 2. should i download the rpm for the latest beta of rh and install that on my system? 3. Should i do nothing and just wait for rh8.1 ? it isnt a big deal and i have imapfilter working, i am just trying to provide feedback to improve the linux experience thanks again randy From lefcha at hellug.gr Fri Jan 24 02:18:01 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Fri Jan 24 02:18:01 2003 Subject: [imapfilter-devel]imapfilter: parse error in config file at row 5 In-Reply-To: <1299.24.123.20.245.1043356747.squirrel@www.randyperkins.com> References: <1043305277.1476.10.camel@randy.randyperkins.com> <20030123145302.GA395@linux> <1299.24.123.20.245.1043356747.squirrel@www.randyperkins.com> Message-ID: <20030124001927.GA3524@linux> On Thu, Jan 23, 2003 at 04:19:07PM -0500, Randy Perkins wrote: > hello, > Thanks for your response, > i checked the version of glibc and you are right > i have version glibc-2.2.93-5 > > the latest beta of rh has a glibc of > glibc-2.3.1-36 > > what should i do now > 1. is this a bug i need to inform someone else about? > how should i go about it. > 2. should i download the rpm for the latest beta of rh and > install that on my system? > 3. Should i do nothing and just wait for rh8.1 ? You shouldn't report this bug to the glibc developers because it never existed in any of the glibc stable releases and especially the latest one. I can't really tell what you should with your system. That which I can suggest, concerning imapfilter, until this problem is resolved, is to use this statically linked binary (libc 2.3.1, libssl 0.9.7) of imapfilter 0.8.4, which you can get from here: http://imapfilter.hellug.gr/temp/imapfilter-static.gz From randyperkins at randyperkins.com Fri Jan 24 10:29:01 2003 From: randyperkins at randyperkins.com (Randy Perkins) Date: Fri Jan 24 10:29:01 2003 Subject: [imapfilter-devel]imapfilter: parse error in config file at row 5 In-Reply-To: <20030124001927.GA3524@linux> References: <1043305277.1476.10.camel@randy.randyperkins.com> <20030123145302.GA395@linux> <1299.24.123.20.245.1043356747.squirrel@www.randyperkins.com> <20030124001927.GA3524@linux> Message-ID: <1043396990.1643.4.camel@randy.randyperkins.com> I downloaded the statically linked binary and tested it and it allowed blank lines in the .imapfilterrc file i should have remembered my experiences with rh7.0, but i didnt thanks for everything randy On Thu, 2003-01-23 at 19:19, Lefteris Chatzibarbas wrote: > That which I can suggest, concerning imapfilter, until this problem is > resolved, is to use this statically linked binary (libc 2.3.1, libssl 0.9.7) > of imapfilter 0.8.4, which you can get from here: > > http://imapfilter.hellug.gr/temp/imapfilter-static.gz -- Randy Perkins From p at ulmcnett.com Mon Jan 27 00:09:01 2003 From: p at ulmcnett.com (Paul McNett) Date: Mon Jan 27 00:09:01 2003 Subject: [imapfilter-devel]Parse errors on blank lines and lines with comments Message-ID: <200301261418.29128.p@ulmcnett.com> Hi, I just downloaded and started using imapfilter, and it appears to meet my basic needs. However, if I have comments or blank line in my config file, I'll get a "Parse error on Row x in config file" error. Also, my IMAP server uses CRAM/MD5 passwords. Any support for that? Thanks -- Paul McNett - p at ulmcnett.com Hollister, California, USA From lefcha at hellug.gr Mon Jan 27 03:28:01 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Mon Jan 27 03:28:01 2003 Subject: [imapfilter-devel]Parse errors on blank lines and lines with comments In-Reply-To: <200301261418.29128.p@ulmcnett.com> References: <200301261418.29128.p@ulmcnett.com> Message-ID: <20030127012904.GA2932@linux> On Sun, Jan 26, 2003 at 02:18:29PM -0800, Paul McNett wrote: > However, if I have comments or blank line in my config file, I'll get a > "Parse error on Row x in config file" error. Do you encounter this problem in a RedHat 8.0 system? If yes, please, check this thread to find out what's causing the problem and a solution: http://lists.hellug.gr/pipermail/imapfilter-devel/2003/000394.html > Also, my IMAP server uses CRAM/MD5 passwords. Any support for that? No, but the next version (0.9) will use the Cyrus SASLv2 library [0], so many authentication mechanisms (including CRAM-MD5) will be available. [0] http://asg.web.cmu.edu/cyrus/download/sasl/doc/ From ferran at ostres.com Fri Jan 31 20:32:01 2003 From: ferran at ostres.com (Ferran Foz) Date: Fri Jan 31 20:32:01 2003 Subject: [imapfilter-devel]Working with Solaris 8 Message-ID: <005c01c2c957$2c6af520$870810ac@intranet.ap> hello, I've compiled imapfilter with Solaris 8, but i'm blocked now. I made some change to the config file to include the libraries related to sockets: libs="-lsocket -lnsl" and i disabled the password coding and SSL login. I had to change the sample.imapfilterrc so all the options start with the word "set". I think you should change this sample. Now the program is failing to list one mailbox. The problem is that i'm using Outlook Express and the folder hierarchy is not the one on the server. I think you could add a query tool at imapfilter that could help build a imapfilterrc from scratch and get the correct hierarchy from the server. Thanks for the program -------------- next part -------------- An HTML attachment was scrubbed... URL: From Gehel at ledcom.ch Fri Jan 31 21:45:02 2003 From: Gehel at ledcom.ch (Lederrey Guillaume) Date: Fri Jan 31 21:45:02 2003 Subject: [imapfilter-devel]problem with sub-folders Message-ID: <1044042390.2808.7.camel@debian> Hi ! I'm using imapfilter for a couple of weeks now. It really works great ! And that is the only programm I found that does that kind of work. The config file is really easy to understand. Really, great job, thanks a lot ! Now of course I have a problem : I'm using a folder hierarchy with sub-folders and I cant get imapfilter to send mail to sub-folders. I dont know if it is a limitation of imapfilter or if I just dont understand how to do it ... I'm using a courier-imap server. Imap filter and the server are running on the same host (Debian Woody). I hope somebody will be able to help me ... Thanks ! Guillaume From lefcha at hellug.gr Sat Feb 1 21:23:01 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Sat Feb 1 21:23:01 2003 Subject: [imapfilter-devel]Working with Solaris 8 In-Reply-To: <005c01c2c957$2c6af520$870810ac@intranet.ap> References: <005c01c2c957$2c6af520$870810ac@intranet.ap> Message-ID: <20030201185809.GA6388@linux> On Fri, Jan 31, 2003 at 07:32:55PM +0100, Ferran Foz wrote: > hello, > > I've compiled imapfilter with Solaris 8, but i'm blocked now. > > I made some change to the config file to include the libraries related to sockets: > libs="-lsocket -lnsl" > and i disabled the password coding and SSL login. Have a look at this mail for brief directions on how to build imapfilter on Solaris: http://lists.hellug.gr/pipermail/imapfilter-devel/2002/000387.html > > I had to change the sample.imapfilterrc so all the options start with the word "set". > I think you should change this sample. Imapfilter should be able to read the options with or without the "set" keyword. This behavior is strange and most of all imapfilter worked fine during my tests under a Solaris 8 box. It would be really helpful if you could compile and run imapfilter with DEBUG messages enabled [0] and send back the results, as well as the configuration file used. > > Now the program is failing to list one mailbox. > > The problem is that i'm using Outlook Express and the folder hierarchy is not the one on the > server. I think you could add a query tool at imapfilter that could help build a imapfilterrc > from scratch and get the correct hierarchy from the server. You can do this easily with the attached Perl script (requires the Mail::IMAPClient module [1]). Don't forget to change the $server, $user and $pass variables. [0] ./config -o debug=yes [1] http://search.cpan.org/author/DJKERNEN/Mail-IMAPClient-2.2.7/ -------------- next part -------------- A non-text attachment was scrubbed... Name: imapfolders.pl Type: application/x-perl Size: 423 bytes Desc: not available URL: From lefcha at hellug.gr Sat Feb 1 21:24:01 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Sat Feb 1 21:24:01 2003 Subject: [imapfilter-devel]problem with sub-folders In-Reply-To: <1044042390.2808.7.camel@debian> References: <1044042390.2808.7.camel@debian> Message-ID: <20030201192445.GB6388@linux> On Fri, Jan 31, 2003 at 08:46:30PM +0100, Lederrey Guillaume wrote: > [...] > > Now of course I have a problem : I'm using a folder hierarchy with > sub-folders and I cant get imapfilter to send mail to sub-folders. I > dont know if it is a limitation of imapfilter or if I just dont > understand how to do it ... I'm using a courier-imap server. Imap > filter and the server are running on the same host (Debian Woody). While defining folders or subfolders in imapfilter's config file, regardless the format used for mail storage in the server (mbox, maildir, etc.), one should still use the '/' character for delimiter and "" (ie. nothing) for the prefix of mailboxes, _if_ the "namespace" option is enabled. For example a folder "INBOX.foo.bar" in maildir format should be defined "foo/bar" in imapfilter's config file; imapfilter will inserts the "INBOX." prefix and replace the '/' characters with the '.' delimiter. When the "namespace" option is disabled one should define manually the correct folder hierarchy, according to the namespace that is used by the server. So the aforementioned mailbox should be defined as "INBOX.foo.bar" in imapfilter's config file. Actually, it's a bug of the documentation of imapfilter that this explanation isn't included in its manual pages... BTW, if you and anyone else is having problems with rcopy/rmove to maildir format mail servers (such as courier-imap) while having enabled the "namespace" option, he/she should apply the attached patch to v0.8.4 (possibly a v0.8.5 release will follow). -------------- next part -------------- diff -ruN imapfilter-0.8.4.orig/request.c imapfilter-0.8.4/request.c --- imapfilter-0.8.4.orig/request.c 2003-02-01 20:59:17.000000000 +0200 +++ imapfilter-0.8.4/request.c 2003-02-01 20:59:48.000000000 +0200 @@ -537,7 +537,7 @@ /* apply_namespace() returns a pointer to a static buffer. */ ndm = apply_namespace(destmbox, nspaux.prefix, nspaux.delim); - r = check_mailbox(&sockaux, ndm, &nspaux); + r = check_mailbox(&sockaux, destmbox, &nspaux); if (r == RESPONSE_OK) close_mailbox(&sockaux); From mailer at bsnguarantee.com Sat Feb 8 10:52:01 2003 From: mailer at bsnguarantee.com (mailer at bsnguarantee.com) Date: Sat Feb 8 10:52:01 2003 Subject: [imapfilter-devel]new collaboration offer Message-ID: <200302080851.h188oxS01868@tux.hellug.gr> An HTML attachment was scrubbed... URL: From dmd at 3e.org Thu Feb 13 19:55:02 2003 From: dmd at 3e.org (Daniel M. Drucker) Date: Thu Feb 13 19:55:02 2003 Subject: [imapfilter-devel]man page - interval in what units? Message-ID: <007501c2d389$3375e5a0$7e355b80@miso> In the manual page for imapfilter: -d interval Runs imapfilter at daemon mode and repeatedly polls at the speci- fied interval. This needs to specify units. Daniel Drucker dmd at 3e.org From suleshehu at latinmail.com Mon Feb 17 12:50:01 2003 From: suleshehu at latinmail.com (suleshehu at latinmail.com) Date: Mon Feb 17 12:50:01 2003 Subject: [imapfilter-devel]urgent business/investment Message-ID: FROM THE DESK OF: DR. SHEHU SULE. E-Mail: suleshehu at latinmail.com Date: 11/01/2003. ATTENTION: Dear Friend, REQUEST FOR URGENT BUSINESS RELATIONSHIP - STRICTLY CONFIDENTIAL First, I must solicit your strictest confidence in this transaction. This is by virtue of its nature as being utterly confidential and "TOP SECRET". We are top officials of the Federal Government Contract Review Panel who are interested in importation of goods into our country with funds, which are presently trapped in Nigeria. In order to commence this business we solicit your assistance to enable us transfer into your account the said-trapped funds. The source of this funds is as follows: During the past Military Regime's here in Nigeria, the Government Officials set up companies and awarded themselves contracts which were grossly over - invoiced in various ministries. The present Democratic Government set up a Contract Review Panel and we have identified a lot of inflated contract funds which are presently floating in the Central bank of Nigeria ready for payment. However, by virtue of our position as civil servants and members of this panel, we cannot acquire this money in our names, as we are prohibited by the Code of Conduct Bureau (Civil Servants Laws). I have therefore, been delegated as a matter of trust by my colleagues of the panel to look for an overseas partner into whose account we would transfer the sum of US$12,670,000.00 (Twelve Million, Six Hundred and Seventy Thousand U.S. Dollars) Hence we are sending you this e-mail. We have agreed to share the money thus: 1. 20% for the Account owner (you) 2. 70% for us (The officials) 3. 10% to be used in settling taxation and all local and foreign expenses. It is from the 70% that we wish to commence the importation business. Please, note that this transaction is 100% safe and risk-free, we hope to commence the transfer latest seven (7) Banking days from the date of the receipt of the following information by my direct e-mail : suleshehu at latinmail.com. Your Banker's name, company's name, address, Account number and fax number. The above information will enable us write letters of claim and job description respectively. This way we will use your company's name to apply for payment and re-award the contract in your company's name. We are looking forward to doing this business with you and solicit your confidentiality in this transaction. Please acknowledge the receipt of this letter using the above e-mail address. I will bring you into a complete picture of this pending project when I have heard from you. Yours Faithfully, DR. SHEHU SULE. NOTE: N.B. PLEASE BE INFORMED THAT THIS BUSINESS TRANSACTION IS 100% LEGAL AND COMPLETELY FREE FROM DRUG MONEY OR MONEY LAUNDERING. THIS IS A COMPLETE LEGITIMATE BUSINESS TRANSACTION. ALSO, PLEASE QUOTE THIS REFERENCE NUMBER IN ALL YOUR RESPONSES (NG/07/002). DISCLAIMER: This e-mail contains proprietary information some or all of which may be legally privileged. It is for the intended recipient only. If an addressing or transmission error has misdirected this e-mail, please notify the author by replying to this e-mail. If you are not the intended recipient you must not use, disclose, distribute, copy, print, or rely on this e-mail. From suleshehu at latinmail.com Wed Feb 19 22:38:01 2003 From: suleshehu at latinmail.com (suleshehu at latinmail.com) Date: Wed Feb 19 22:38:01 2003 Subject: [imapfilter-devel]urgent business/investment Message-ID: <200302192037.h1JKbtS13306@tux.hellug.gr> FROM THE DESK OF: DR. SHEHU SULE. E-Mail: suleshehu at latinmail.com Date: 11/01/2003. ATTENTION: Dear Friend, REQUEST FOR URGENT BUSINESS RELATIONSHIP - STRICTLY CONFIDENTIAL First, I must solicit your strictest confidence in this transaction. This is by virtue of its nature as being utterly confidential and "TOP SECRET". We are top officials of the Federal Government Contract Review Panel who are interested in importation of goods into our country with funds, which are presently trapped in Nigeria. In order to commence this business we solicit your assistance to enable us transfer into your account the said-trapped funds. The source of this funds is as follows: During the past Military Regime's here in Nigeria, the Government Officials set up companies and awarded themselves contracts which were grossly over - invoiced in various ministries. The present Democratic Government set up a Contract Review Panel and we have identified a lot of inflated contract funds which are presently floating in the Central bank of Nigeria ready for payment. However, by virtue of our position as civil servants and members of this panel, we cannot acquire this money in our names, as we are prohibited by the Code of Conduct Bureau (Civil Servants Laws). I have therefore, been delegated as a matter of trust by my colleagues of the panel to look for an overseas partner into whose account we would transfer the sum of US$12,670,000.00 (Twelve Million, Six Hundred and Seventy Thousand U.S. Dollars) Hence we are sending you this e-mail. We have agreed to share the money thus: 1. 20% for the Account owner (you) 2. 70% for us (The officials) 3. 10% to be used in settling taxation and all local and foreign expenses. It is from the 70% that we wish to commence the importation business. Please, note that this transaction is 100% safe and risk-free, we hope to commence the transfer latest seven (7) Banking days from the date of the receipt of the following information by my direct e-mail : suleshehu at latinmail.com. Your Banker's name, company's name, address, Account number and fax number. The above information will enable us write letters of claim and job description respectively. This way we will use your company's name to apply for payment and re-award the contract in your company's name. We are looking forward to doing this business with you and solicit your confidentiality in this transaction. Please acknowledge the receipt of this letter using the above e-mail address. I will bring you into a complete picture of this pending project when I have heard from you. Yours Faithfully, DR. SHEHU SULE. NOTE: N.B. PLEASE BE INFORMED THAT THIS BUSINESS TRANSACTION IS 100% LEGAL AND COMPLETELY FREE FROM DRUG MONEY OR MONEY LAUNDERING. THIS IS A COMPLETE LEGITIMATE BUSINESS TRANSACTION. ALSO, PLEASE QUOTE THIS REFERENCE NUMBER IN ALL YOUR RESPONSES (NG/07/002). From Gehel at ledcom.ch Fri Feb 21 21:07:02 2003 From: Gehel at ledcom.ch (Lederrey Guillaume) Date: Fri Feb 21 21:07:02 2003 Subject: [imapfilter-devel]problem with sub-folders In-Reply-To: <20030201192445.GB6388@linux> References: <1044042390.2808.7.camel@debian> <20030201192445.GB6388@linux> Message-ID: <1045854495.609.19.camel@debian> On Sat, 2003-02-01 at 20:24, Lefteris Chatzibarbas wrote: > While defining folders or subfolders in imapfilter's config file, regardless > the format used for mail storage in the server (mbox, maildir, etc.), one > should still use the '/' character for delimiter and "" (ie. nothing) for > the prefix of mailboxes, _if_ the "namespace" option is enabled. For > example a folder "INBOX.foo.bar" in maildir format should be defined > "foo/bar" in imapfilter's config file; imapfilter will inserts the "INBOX." > prefix and replace the '/' characters with the '.' delimiter. > > When the "namespace" option is disabled one should define manually the > correct folder hierarchy, according to the namespace that is used by the > server. So the aforementioned mailbox should be defined as "INBOX.foo.bar" > in imapfilter's config file. Thanks a lot for that answer ! I tried to fight with that for a moment, but I cant seem to get anywhere. When I use a simple "move" action, the messages dont end in a subfolder (that is INBOX.Folder.Subfolder ends up in INBOX.Subfolder). When I try to use rmove (if I understand well, that is what I should use) I get an error : "imapfilter: writing data; Connection reset by peer". I have upgraded to version 0.8.5 but it doesnt work any better ... If you need any other infos to understand my problem, just tell me ! Thanks for your help ! Guillaume From lefcha at hellug.gr Sat Feb 22 14:51:02 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Sat Feb 22 14:51:02 2003 Subject: [imapfilter-devel]problem with sub-folders In-Reply-To: <1045854495.609.19.camel@debian> References: <1044042390.2808.7.camel@debian> <20030201192445.GB6388@linux> <1045854495.609.19.camel@debian> Message-ID: <20030222125248.GA1134@bsd> On Fri, Feb 21, 2003 at 08:08:15PM +0100, Lederrey Guillaume wrote: > Thanks a lot for that answer ! I tried to fight with that for a > moment, but I cant seem to get anywhere. When I use a simple "move" > action, the messages dont end in a subfolder (that is > INBOX.Folder.Subfolder ends up in INBOX.Subfolder). Do you have the namespace option enabled? By default it is enabled. In this case you should define your filter like this: filter foo ... action move Folder/Subfolder If you have disabled the namespace option ("set namespace = no"), then your filter should look like this: filter qux ... action move INBOX.Folder.Subfolder Of cource it is assumed that your IMAP mail server uses the Maildir format for mailbox (folder) hierarchy. > When I try to use rmove (if I understand well, that is what I should use) I > get an error : "imapfilter: writing data; Connection reset by peer". No, the rmove/rcopy actions are used if you want to move/copy your mail to a different IMAP mail server that the one that it resides. For sorting of mail in the same mail server use copy/move. > If you need any other infos to understand my problem, just tell me ! If you still can't make it work, send the filter you declare in the config file. From Gehel at ledcom.ch Sat Feb 22 15:33:02 2003 From: Gehel at ledcom.ch (Lederrey Guillaume) Date: Sat Feb 22 15:33:02 2003 Subject: [imapfilter-devel]problem with sub-folders In-Reply-To: <20030222125248.GA1134@bsd> References: <1044042390.2808.7.camel@debian> <20030201192445.GB6388@linux> <1045854495.609.19.camel@debian> <20030222125248.GA1134@bsd> Message-ID: <1045920839.15294.3.camel@debian> On Sat, 2003-02-22 at 13:52, Lefteris Chatzibarbas wrote: > Do you have the namespace option enabled? By default it is enabled. In this > case you should define your filter like this: > > filter foo > ... > action move Folder/Subfolder I finally understood my error ! I'm just really dumb ... I was trying to use the folder alias as the destination for the move action, and not directly the folder name. Now it's working perfectly ! Thanks again for your patience ! Guillaume From martink-ml at gmx.net Mon Mar 3 03:08:01 2003 From: martink-ml at gmx.net (Martin Kaehmer) Date: Mon Mar 3 03:08:01 2003 Subject: [imapfilter-devel]archiving with imapfilter Message-ID: <43100000.1046653698@argon> Hi Lefteris, I'm using imapfilter for some time now and I'm quite happy with it. But I still miss some functionality. Have you ever thought about a real archiving function? I'd like to have a move action for something like "for all mail older then N days move to folder 'folder.archive.%y.%m'", where %y(ear), %m(onth), %w(eek) and %d(ay) are macros for the date of the current mail. Likewise the capital macros (%Y,%M..)for the date of today? What do you think? cheers, Martin From rnyman_imapfilter at afterburner.net Mon Mar 3 04:22:01 2003 From: rnyman_imapfilter at afterburner.net (rnyman_imapfilter at afterburner.net) Date: Mon Mar 3 04:22:01 2003 Subject: [imapfilter-devel]archiving with imapfilter In-Reply-To: <43100000.1046653698@argon> References: <43100000.1046653698@argon> Message-ID: <20030303022409.15656.qmail@mailshell.com> Here's a workaround for you: I have a script file that determines where to put the files: #!/bin/bash rm /home/user/storage/current touch /home/user/storage/`date +%Y%B` ln -s /home/user/storage/`date +%Y%B` /home/rick/storage/current And here's my .fetchmailrc: poll imap.whatever.com proto imap user username pass password folder storagefolder mda "cat >> /home/user/storage/current" fetchall Now I just run the script, followed by fetchmail, every morning. The only downfall is that it doesn't put the from header between messages so I can't read them with a regular mail program. I normally use tools like grep, sed, and less to search these archives though. Hope this helps, -R... Martin Kaehmer wrote: >Hi Lefteris, > >I'm using imapfilter for some time now and I'm quite happy with it. But I >still miss some functionality. Have you ever thought about a real archiving >function? I'd like to have a move action for something like "for all mail >older then N days move to folder 'folder.archive.%y.%m'", where %y(ear), >%m(onth), %w(eek) and %d(ay) are macros for the date of the current mail. >Likewise the capital macros (%Y,%M..)for the date of today? > >What do you think? > > >cheers, >Martin > > >_______________________________________________ >Imapfilter-devel mailing list >Imapfilter-devel at lists.hellug.gr >http://lists.hellug.gr/mailman/listinfo/imapfilter-devel > > From rnyman_imapfilter at afterburner.net Mon Mar 3 04:27:01 2003 From: rnyman_imapfilter at afterburner.net (rnyman_imapfilter at afterburner.net) Date: Mon Mar 3 04:27:01 2003 Subject: [imapfilter-devel]archiving with imapfilter In-Reply-To: <43100000.1046653698@argon> References: <43100000.1046653698@argon> Message-ID: <20030303022900.5030.qmail@mailshell.com> Forgot to mention - I use IMAPfilter to populate the "storagefolder" that is referenced in .fetchmailrc. IMAPfilter runs every hour - fetchmail runs every morning. -R... Here's a workaround for you: I have a script file that determines where to put the files: #!/bin/bash rm /home/user/storage/current touch /home/user/storage/`date +%Y%B` ln -s /home/user/storage/`date +%Y%B` /home/rick/storage/current And here's my .fetchmailrc: poll imap.whatever.com proto imap user username pass password folder storagefolder mda "cat >> /home/user/storage/current" fetchall Now I just run the script, followed by fetchmail, every morning. The only downfall is that it doesn't put the from header between messages so I can't read them with a regular mail program. I normally use tools like grep, sed, and less to search these archives though. Hope this helps, -R... Martin Kaehmer wrote: >Hi Lefteris, > >I'm using imapfilter for some time now and I'm quite happy with it. But I >still miss some functionality. Have you ever thought about a real archiving >function? I'd like to have a move action for something like "for all mail >older then N days move to folder 'folder.archive.%y.%m'", where %y(ear), >%m(onth), %w(eek) and %d(ay) are macros for the date of the current mail. >Likewise the capital macros (%Y,%M..)for the date of today? > >What do you think? > > >cheers, >Martin > > >_______________________________________________ >Imapfilter-devel mailing list >Imapfilter-devel at lists.hellug.gr >http://lists.hellug.gr/mailman/listinfo/imapfilter-devel > > From lefcha at hellug.gr Mon Mar 3 20:12:01 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Mon Mar 3 20:12:01 2003 Subject: [imapfilter-devel]archiving with imapfilter In-Reply-To: <43100000.1046653698@argon> References: <43100000.1046653698@argon> Message-ID: <20030303181319.GA648@linux> On Mon, Mar 03, 2003 at 02:08:18AM +0100, Martin Kaehmer wrote: > Hi Lefteris, > > I'm using imapfilter for some time now and I'm quite happy with it. But I > still miss some functionality. Have you ever thought about a real archiving > function? I'd like to have a move action for something like "for all mail > older then N days move to folder 'folder.archive.%y.%m'", where %y(ear), > %m(onth), %w(eek) and %d(ay) are macros for the date of the current mail. > Likewise the capital macros (%Y,%M..)for the date of today? > > What do you think? A part of the functionality you are describing, exists in the CVS version of imapfilter, for quite some time now. Basically, you can use all the date and time (useless?) conversion specifiers (%d, %m, %y, etc.) as described in strftime(3), when doing a (r)copy/(r)move. These specifiers are getting replaced according to the current system time. For example: filter foo from qux-mail-list at example.org move qux-%y_%m ... would append all matching messages to a mailbox "qux-2003_03" (during this month). On the other hand, imapfilter sends searching queries, it doesn't process each message exclusively, so it cannot sort messages to folders the way you describe (it is not impossible but difficult and inefficient, based on how the program exploits the IMAP4rev1 protocol's capabilities). I couldn't come up with a good way to accomplish something like this. Suggestions anyone? From martink-ml at gmx.net Mon Mar 3 21:43:01 2003 From: martink-ml at gmx.net (Martin Kaehmer) Date: Mon Mar 3 21:43:01 2003 Subject: [imapfilter-devel]archiving with imapfilter Message-ID: <37580000.1046720690@argon> Hi Lefteris, --On Montag, M?rz 03, 2003 20:13:19 +0200 Lefteris Chatzibarbas wrote: > A part of the functionality you are describing, exists in the CVS version > of imapfilter, for quite some time now. yes, saw it - after I started coding ;o) > On the other hand, imapfilter sends searching queries, it doesn't process > each message exclusively, so it cannot sort messages to folders the way > you describe (it is not impossible but difficult and inefficient, based > on how the program exploits the IMAP4rev1 protocol's capabilities). > > I couldn't come up with a good way to accomplish something like this. as you said, you have to process each message exclusively (at least I don't care about efficiency) Take the action_move as an example: if (destdir contains '$') { fetch for all messages BODY.PEEK[HEADER.FIELDS (DATE)] parse DATE substitute $d, $m and $y in destdir copy message to destdir } else { copy all messages to destdir } delete all messages from srcdir I have already started coding this function, cause I want to see whether it's feasible that way or not. Do you see anything why it shouldn't work ? cheers, Martin From loi33estrada at netscape.net Wed Mar 5 14:28:00 2003 From: loi33estrada at netscape.net (loi33estrada at netscape.net) Date: Wed Mar 5 14:28:00 2003 Subject: [imapfilter-devel]STRICTLY CONFIDENTIAL! Message-ID: Dear Sir My name is LOI C.ESTRADA,The wife of Mr. JOSEPH ESTRADA, the former President of Philippines located in the South East Asia. My husband was recently impeached from office by a backed uprising of mass demonstrators and the Senate. My husband is presently in jail and facing trial on charges of corruption, embezzlement, and the mysterious charge of plunder which might lead to death sentence. The present government is forcing my husband out of Manila to avoid demonstration by his supporter. During my husband's regime as president of Philippine, I realized some reasonable amount of money from various deals that I successfully executed. I have plans to invest this money for my children's future on real estate and industrial production. My husband is not aware of this because I wish to do it secretly for now. Before my husband was impeached, I secretly siphoned the sum of $30,000,000 million USD (Thirty million United states dollars) out of Philippines and deposited the money with a security firm that transports valuable goods and consignments through diplomatic means. I am contacting you because I want you to go to the security company and claim the money on my behalf since I have declared that the consignment belong to my foreign business partner. You shall also be required to assist me in investment in your country. I hope to trust you as a God fearing person who will not sit on this money when you claim it, rather assist me properly, I expect you to declare what percentage of the total money you will take for your assistance. When I receive your positive response I will let you know where the security company is and the payment pin code to claim the money which is very important. For now, let all our communication be by e-mail because my lines are right now connected to the Philippines Telecommunication Network services. Please also send me your telephone and fax number. I will ask my son to contact you to give you more details on, after I have received a responce from you. Thank you and God bless you and your family. MRS LOI C ESTRADA From martink-ml at gmx.net Wed Mar 5 19:08:01 2003 From: martink-ml at gmx.net (Martin Kaehmer) Date: Wed Mar 5 19:08:01 2003 Subject: [imapfilter-devel]filtering a huge amount of folders Message-ID: <41640000.1046882432@argon> Hi all, Imagine you have N mailing lists and want to filter them all in the same manner: list-n -> list-n.archive. Do you have to set up one filter rule for each list like that? filter Archive-list-n older x action move list-n.archive job Archive-list-n list-n With a lot of lists this is getting rather complex. Is there an easier way to achive that kind of filtering? I thought of something like: folder AllLists list-1,list-2,..,list-N filter ArchiveAllLists older x action move ${current folder}.archive job ArchiveAllLists AllLists ouh, seems that's exactly what Per Westerlund asked for, too. Lefteris, are you planning to implement anything like that? cheers, Martin From lefcha at hellug.gr Thu Mar 6 06:07:01 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Thu Mar 6 06:07:01 2003 Subject: [imapfilter-devel]filtering a huge amount of folders In-Reply-To: <41640000.1046882432@argon> References: <41640000.1046882432@argon> Message-ID: <20030306040720.GA443@linux> On Wed, Mar 05, 2003 at 05:40:32PM +0100, Martin Kaehmer wrote: > Hi all, > > [...] > > With a lot of lists this is getting rather complex. Is there an easier way > to achive that kind of filtering? I thought of something like: > > folder AllLists list-1,list-2,..,list-N > filter ArchiveAllLists > older x > action move ${current folder}.archive > job ArchiveAllLists AllLists > > ouh, seems that's exactly what Per Westerlund asked for, too. Lefteris, are > you planning to implement anything like that? Yes, I will add this feature. It will be very similar to the "default variable" $_ that Perl has. This could, also, be extended so a set of "special variables" will make it possible to use some information while defining actions, etc. From pauls at etext.org Tue Mar 25 21:28:04 2003 From: pauls at etext.org (Paul Southworth) Date: Tue Mar 25 21:28:04 2003 Subject: [imapfilter-devel](no subject) Message-ID: <20030325112758.M98919-100000@locust.etext.org> On Solaris 8, imapfilter 0.8.6 died with a bus error apparently when it handled a message with over 700 specified recipients on the To: line. Perhaps it got more data than expected? Please email if you need more details. Did not obtain a core dump, sorry. --Paul From m_k at bredband.net Fri Mar 28 12:11:03 2003 From: m_k at bredband.net (Martin Karlsson) Date: Fri Mar 28 12:11:03 2003 Subject: [imapfilter-devel]Bus error (core dumped) on FreeBSD-CURRENT Message-ID: <20030328101111.GA4686@c-6d3a70d5.bredbandsbolaget.se> Hi, imapfilter-0.8.6 on FreeBSD (CURRENT, from March 27) (i386) When I (save and) exit from imapfilter -p, it dumps core. The full error message is: Bus error (core dumped) I rebuilt it with the -g flag (and removed the "don't create a core dump" stuff from the sources), so I have a backtrace (attached). I don't know if it is of any help though, as my libraries have no debugging symbols. (And I am not a programmer, so I know very little of these matters.) I'll be happy to supply more info if needed. Best regards, -- Martin Karlsson -------------- next part -------------- Core was generated by `imapfilter'. Program terminated with signal 10, Bus error. Reading symbols from /usr/lib/libssl.so.3...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libssl.so.3 Reading symbols from /usr/lib/libcrypto.so.3...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libcrypto.so.3 Reading symbols from /usr/lib/libc.so.5...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libc.so.5 Reading symbols from /usr/libexec/ld-elf.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/libexec/ld-elf.so.1 #0 0x282335aa in memset () from /usr/lib/libc.so.5 (gdb) bt #0 0x282335aa in memset () from /usr/lib/libc.so.5 #1 0xd0d0d0d0 in ?? () #2 0x0804db51 in EVP_DecryptFinal () #3 0x0804ce7c in EVP_DecryptFinal () #4 0x0804a0f5 in EVP_DecryptFinal () From lefcha at hellug.gr Fri Mar 28 18:10:04 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Fri Mar 28 18:10:04 2003 Subject: [imapfilter-devel] Bus error if long headers (Was: no subject) In-Reply-To: <20030325112758.M98919-100000@locust.etext.org> References: <20030325112758.M98919-100000@locust.etext.org> Message-ID: <20030328161210.GA805@linux> On Tue, Mar 25, 2003 at 11:29:24AM -0800, Paul Southworth wrote: > > On Solaris 8, imapfilter 0.8.6 died with a bus error apparently when it > handled a message with over 700 specified recipients on the To: line. > Perhaps it got more data than expected? Please email if you need more > details. Did not obtain a core dump, sorry. Hello! Ok, I reproduced the bug and corrected it (appeared in action "list" when a message had long headers). Please, apply [0] the attached patch against 0.8.6 in order to correct this (I will, also, release 0.8.7 with this fix, soon). Thanks for reporting this problem [0] zcat imapfilter-0.8.6.tar.gz | tar -xvf - zcat patch-0.8.6-1.gz | patch -p0 ... and compile as usual. -------------- next part -------------- A non-text attachment was scrubbed... Name: patch-0.8.6-1.gz Type: application/octet-stream Size: 2697 bytes Desc: not available URL: From lefcha at hellug.gr Fri Mar 28 18:19:03 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Fri Mar 28 18:19:03 2003 Subject: [imapfilter-devel]Bus error (core dumped) on FreeBSD-CURRENT In-Reply-To: <20030328101111.GA4686@c-6d3a70d5.bredbandsbolaget.se> References: <20030328101111.GA4686@c-6d3a70d5.bredbandsbolaget.se> Message-ID: <20030328162054.GA1071@linux> On Fri, Mar 28, 2003 at 11:11:11AM +0100, Martin Karlsson wrote: > Hi, > > imapfilter-0.8.6 on FreeBSD (CURRENT, from March 27) (i386) > > When I (save and) exit from imapfilter -p, it dumps core. The full error > message is: Bus error (core dumped) > > I rebuilt it with the -g flag (and removed the "don't create a core > dump" stuff from the sources), so I have a backtrace (attached). > I don't know if it is of any help though, as my libraries have no > debugging symbols. (And I am not a programmer, so I know very little of > these matters.) > > [...] Is this the first time you had this problem (ie. did it work without problems in the past or at a different system (eg. FreeBSD 4.7 or 5.0))? Or is it the first time that you tried using encrypted passwords and it just crashed? Anyway, I will upgrade my FreeBSD CURRENT today and see if I can reproduce the problem. From m_k at bredband.net Fri Mar 28 21:01:04 2003 From: m_k at bredband.net (Martin Karlsson) Date: Fri Mar 28 21:01:04 2003 Subject: [imapfilter-devel]Bus error (core dumped) on FreeBSD-CURRENT In-Reply-To: <20030328162054.GA1071@linux> References: <20030328101111.GA4686@c-6d3a70d5.bredbandsbolaget.se> <20030328162054.GA1071@linux> Message-ID: <20030328190237.GA2750@ua-213-112-58-109.cust.bredbandsbolaget.se> * Lefteris Chatzibarbas [2003-03-28 18.20 +0200]: [...snip...] > Is this the first time you had this problem (ie. did it work without problems > in the past or at a different system (eg. FreeBSD 4.7 or 5.0))? Or is it the > first time that you tried using encrypted passwords and it just crashed? It's the first time I tried using encrypted passwords. [...snip...] -- Martin Karlsson From frank at webraska.com Sat Mar 29 13:37:03 2003 From: frank at webraska.com (Frank Schroeder) Date: Sat Mar 29 13:37:03 2003 Subject: [imapfilter-devel]Filter rules are not applied in the given order (0.8.6) Message-ID: <3E8585D2.8040906@webraska.com> All, I'm getting a lot of mails on internal mailing lists and people usually crosspost to several mailing lists. So I want to put a copy of a message into a mailing list specific folder. As a "catch all" rule I want to move all messages which don't have my own address in the TO or CC header out of my INBOX. This requires that the filter rules are applied in the same order as they are in the imapfilterrc file but that doesn't seem to be the case. I can see that my catch all rule is applied before other rules although it is the last one in the file. I've tried 0.8.4 and 0.8.6. I've defined my rules like this filter name ... action copy .... job name inbox ... ... filter not-for-me not to .. not cc .. action move job not-for-me inbox Is this the intendend behaviour? Am I missing something. Thanks P.S.: This tool is extremely useful. Thanks a lot. -- Frank Schroeder Senior Software Engineer/IS Architect Webraska Engineering Germany www.webraska.com From lefcha at hellug.gr Sat Mar 29 16:14:03 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Sat Mar 29 16:14:03 2003 Subject: [imapfilter-devel]Bus error (core dumped) on FreeBSD-CURRENT In-Reply-To: <20030328162054.GA1071@linux> References: <20030328101111.GA4686@c-6d3a70d5.bredbandsbolaget.se> <20030328162054.GA1071@linux> Message-ID: <20030329141527.GA602@linux> On Fri, Mar 28, 2003 at 06:20:54PM +0200, Lefteris Chatzibarbas wrote: > On Fri, Mar 28, 2003 at 11:11:11AM +0100, Martin Karlsson wrote: > > Hi, > > > > imapfilter-0.8.6 on FreeBSD (CURRENT, from March 27) (i386) > > > > When I (save and) exit from imapfilter -p, it dumps core. The full error > > message is: Bus error (core dumped) > > > > I rebuilt it with the -g flag (and removed the "don't create a core > > dump" stuff from the sources), so I have a backtrace (attached). > > I don't know if it is of any help though, as my libraries have no > > debugging symbols. (And I am not a programmer, so I know very little of > > these matters.) > > > > [...] > > Anyway, I will upgrade my FreeBSD CURRENT today and see if I can reproduce the > problem. Ok, I've been able to reproduce the problem. The attached patch (applied [0] against 0.8.6) fixes [1] the bug. Also, version 0.8.7 will be released soon. Thanks for reporting this [0] zcat imapfilter-0.8.6.tar.gz | tar -xvf - zcat patch-0.8.6-2.gz | patch -p0 ... and compile as usual. [1] Alternatively, you cat get the sources from the CVS "release-0_8-patches" branch (if you prefer latest release + patches). -------------- next part -------------- A non-text attachment was scrubbed... Name: patch-0.8.6-2.gz Type: application/octet-stream Size: 377 bytes Desc: not available URL: From lefcha at hellug.gr Sat Mar 29 18:11:04 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Sat Mar 29 18:11:04 2003 Subject: [imapfilter-devel]Filter rules are not applied in the given order (0.8.6) In-Reply-To: <3E8585D2.8040906@webraska.com> References: <3E8585D2.8040906@webraska.com> Message-ID: <20030329161250.GA3121@linux> On Sat, Mar 29, 2003 at 12:38:58PM +0100, Frank Schroeder wrote: > All, > > I'm getting a lot of mails on internal mailing lists and people usually > crosspost to several mailing lists. So I want to put a copy of a message > into a mailing list specific folder. > > As a "catch all" rule I want to move all messages which don't have my > own address in the TO or CC header out of my INBOX. > > This requires that the filter rules are applied in the same order as > they are in the imapfilterrc file but that doesn't seem to be the case. > > I can see that my catch all rule is applied before other rules although > it is the last one in the file. When you run imapfilter it reports that "X messages moved to mailbox M" and then "Y copied to mailbox N" (applying first "not-for-me" and then "name") or you do you find out, afterwards, that messages are in the wrong mailbox. > > I've tried 0.8.4 and 0.8.6. > > I've defined my rules like this > > filter name > ... > action copy .... > job name inbox > ... > ... > filter not-for-me > not to .. > not cc .. > action move > job not-for-me inbox > > Is this the intendend behaviour? Am I missing something. No, it should run filters in the order specified by the "job" command: job f1,f2 inbox and job f1 inbox job f2 inbox ... should apply first f1 and then f2 in mailbox inbox. Can you recompile and run imapfilter with DEBUG enabled [0]? Send relevant parts of the output [1] (don't forget to remove passwords, etc.). [0] ./config -o debug=yes [1] eg. ./imapfilter > LOG 2>&1 From frank at webraska.com Sun Mar 30 15:18:03 2003 From: frank at webraska.com (Frank Schroeder) Date: Sun Mar 30 15:18:03 2003 Subject: [imapfilter-devel]Filter rules are not applied in the given order (0.8.6) In-Reply-To: <20030329161250.GA3121@linux> References: <3E8585D2.8040906@webraska.com> <20030329161250.GA3121@linux> Message-ID: <3E86E0F0.3070002@webraska.com> Hi Lefteris, I've looked at the log output and the "not-for-me" rule is applied last. The problem is with the standard output which is showing a status on all the folders I have aliases defined for. This is listed AFTER the action status so that this confused me. I've tried this on 0.8.6. Here is the folder list account .... folder inbox INBOX folder not-for-me "Not for me" folder w-is "Mailing Lists/w-is" folder w-is-au "Mailing Lists/w-is/AU" folder w-is-de "Mailing Lists/w-is/DE" folder w-is-fr "Mailing Lists/w-is/FR" folder w-is-us "Mailing Lists/w-is/US" folder w-ops "Mailing Lists/w-ops" and here is the output 443 messages, 0 recent, 0 unseen, in mailbox "INBOX". 2 messages moved to mailbox "Mailing Lists/imapfilter-devel". 2 messages copied to mailbox "Mailing Lists/w-eng-euro". 34 messages, 0 recent, 22 unseen, in mailbox "Not for me". 707 messages, 0 recent, 0 unseen, in mailbox "Mailing Lists/w-is". No messages in mailbox "Mailing Lists/w-is/AU". 4 messages, 0 recent, 2 unseen, in mailbox "Mailing Lists/w-is/DE". No messages in mailbox "Mailing Lists/w-is/FR". No messages in mailbox "Mailing Lists/w-is/US". 1530 messages, 0 recent, 131 unseen, in mailbox "Mailing Lists/w-ops". It would be helpful to see from which folder messages have been moved or copied (e.g. 2 messages moved from INBOX to mailbox "Mailing Lists/imapfilter-devel" Thanks for your quick reply and for this great tool. P.S.: As a side question: Do you know if Mozilla stores the priority and or the label of a message on the server? If yes, is it possible to set this via imapfilter? -- Frank Schroeder Senior Software Engineer/IS Architect Webraska Engineering Germany www.webraska.com From lefcha at hellug.gr Sun Mar 30 18:07:03 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Sun Mar 30 18:07:03 2003 Subject: [imapfilter-devel]Filter rules are not applied in the given order (0.8.6) In-Reply-To: <3E86E0F0.3070002@webraska.com> References: <3E8585D2.8040906@webraska.com> <20030329161250.GA3121@linux> <3E86E0F0.3070002@webraska.com> Message-ID: <20030330150850.GA8490@linux> On Sun, Mar 30, 2003 at 02:20:00PM +0200, Frank Schroeder wrote: > [...] > > It would be helpful to see from which folder messages have been moved or > copied (e.g. 2 messages moved from INBOX to mailbox "Mailing > Lists/imapfilter-devel" Nice idea. This will go into the next major release (0.9). > P.S.: As a side question: Do you know if Mozilla stores the priority and > or the label of a message on the server? If yes, is it possible to set > this via imapfilter? AFAIK, the priority of a message is denoted by the "Priority:" header and the "label" is used internally by mozilla (so these cannot be changed but one can filter based on the priority header). Also, the "mark" action is used in mozilla to change the flags of a message (flags are saved in the server, imapfilter can filter based on these and/or change them). From Christian.Talmage at Sun.COM Thu Apr 3 12:18:01 2003 From: Christian.Talmage at Sun.COM (Christian Talmage - Sun IT Ops WWCS) Date: Thu Apr 3 12:18:01 2003 Subject: [imapfilter-devel]problem compiling on Solaris 9 Message-ID: <1049361590.18704.6.camel@epoch> All, I am having problems compiling on Solaris 9. I am using gcc version 3.2.2. I am getting the following output, can I anybody point in the right direction to solve it. Cheers Christian root[sh]@epoch# make gcc -g -c data.c data.c: In function `process_mboxgrp': data.c:224: warning: assignment makes pointer from integer without a cast data.c:229: warning: assignment makes pointer from integer without a cast data.c: In function `set_action': data.c:441: warning: assignment makes pointer from integer without a cast data.c:459: warning: assignment makes pointer from integer without a cast data.c: In function `set_job': data.c:660: warning: assignment makes pointer from integer without a cast data.c:670: warning: assignment makes pointer from integer without a cast data.c:677: warning: assignment makes pointer from integer without a cast data.c:680: warning: assignment makes pointer from integer without a cast gcc -g -c file.c gcc -g -c imap.c gcc -g -c imapfilter.c gcc -g -c lock.c gcc -g -c log.c gcc -g -c memory.c gcc -g -c misc.c gcc -g -c passwd.c gcc -g -c response.c gcc -g -c request.c request.c: In function `action_delete': request.c:435: warning: assignment makes pointer from integer without a cast request.c:440: warning: assignment makes pointer from integer without a cast request.c: In function `action_copy': request.c:464: warning: assignment makes pointer from integer without a cast request.c:476: warning: assignment makes pointer from integer without a cast request.c: In function `action_rcopy': request.c:550: warning: assignment makes pointer from integer without a cast request.c:581: warning: assignment makes pointer from integer without a cast request.c: In function `action_flag': request.c:647: warning: assignment makes pointer from integer without a cast request.c:651: warning: assignment makes pointer from integer without a cast request.c: In function `action_list': request.c:679: warning: assignment makes pointer from integer without a cast request.c:695: warning: assignment makes pointer from integer without a cast gcc -g -c socket.c gcc -g -c tty.c gcc -g -o imapfilter data.o file.o imap.o imapfilter.o lock.o log.o memory.o misc.o passwd.o response.o request.o socket.o tty.o Undefined first referenced symbol in file socket socket.o gethostbyname socket.o connect socket.o ld: fatal: Symbol referencing errors. No output written to imapfilter collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `imapfilter' -- Christian Talmage - Sun IT Ops WWCS Sun Microsystems Ltd - Work 01252 421724 From Christian.Talmage at Sun.COM Thu Apr 3 12:41:01 2003 From: Christian.Talmage at Sun.COM (Christian Talmage - Sun IT Ops WWCS) Date: Thu Apr 3 12:41:01 2003 Subject: [imapfilter-devel]Re: problem compiling on Solaris 9 In-Reply-To: <1049361590.18704.6.camel@epoch> References: <1049361590.18704.6.camel@epoch> Message-ID: <1049363008.18704.8.camel@epoch> Don't worry, should read a bit more on compiling and include the network service libraries ;0) Cheers Christian On Thu, 2003-04-03 at 10:19, Christian Talmage - Sun IT Ops WWCS wrote: > All, > > I am having problems compiling on Solaris 9. I am using gcc version > 3.2.2. I am getting the following output, can I anybody point in the > right direction to solve it. > > Cheers > > Christian > > root[sh]@epoch# make > gcc -g -c data.c > data.c: In function `process_mboxgrp': > data.c:224: warning: assignment makes pointer from integer without a > cast > data.c:229: warning: assignment makes pointer from integer without a > cast > data.c: In function `set_action': > data.c:441: warning: assignment makes pointer from integer without a > cast > data.c:459: warning: assignment makes pointer from integer without a > cast > data.c: In function `set_job': > data.c:660: warning: assignment makes pointer from integer without a > cast > data.c:670: warning: assignment makes pointer from integer without a > cast > data.c:677: warning: assignment makes pointer from integer without a > cast > data.c:680: warning: assignment makes pointer from integer without a > cast > gcc -g -c file.c > gcc -g -c imap.c > gcc -g -c imapfilter.c > gcc -g -c lock.c > gcc -g -c log.c > gcc -g -c memory.c > gcc -g -c misc.c > gcc -g -c passwd.c > gcc -g -c response.c > gcc -g -c request.c > request.c: In function `action_delete': > request.c:435: warning: assignment makes pointer from integer without a > cast > request.c:440: warning: assignment makes pointer from integer without a > cast > request.c: In function `action_copy': > request.c:464: warning: assignment makes pointer from integer without a > cast > request.c:476: warning: assignment makes pointer from integer without a > cast > request.c: In function `action_rcopy': > request.c:550: warning: assignment makes pointer from integer without a > cast > request.c:581: warning: assignment makes pointer from integer without a > cast > request.c: In function `action_flag': > request.c:647: warning: assignment makes pointer from integer without a > cast > request.c:651: warning: assignment makes pointer from integer without a > cast > request.c: In function `action_list': > request.c:679: warning: assignment makes pointer from integer without a > cast > request.c:695: warning: assignment makes pointer from integer without a > cast > gcc -g -c socket.c > gcc -g -c tty.c > gcc -g -o imapfilter data.o file.o imap.o imapfilter.o lock.o log.o > memory.o misc.o passwd.o response.o request.o socket.o tty.o > Undefined first referenced > symbol in file > socket socket.o > gethostbyname socket.o > connect socket.o > ld: fatal: Symbol referencing errors. No output written to imapfilter > collect2: ld returned 1 exit status > *** Error code 1 > make: Fatal error: Command failed for target `imapfilter' -- Christian Talmage - Sun IT Ops WWCS Sun Microsystems Ltd - Work 01252 421724 From 236260 at cpinternet.com Thu Apr 10 03:09:01 2003 From: 236260 at cpinternet.com (236260 at cpinternet.com) Date: Thu Apr 10 03:09:01 2003 Subject: [imapfilter-devel]Attn: PROTECT YOUR COMPUTER,YOU NEED SYSTEMWORKS! Message-ID: 652921403@mdb.magwien.gv.at An HTML attachment was scrubbed... URL: From vaughan at humnet.ucla.edu Thu Apr 10 19:57:01 2003 From: vaughan at humnet.ucla.edu (Joseph Vaughan) Date: Thu Apr 10 19:57:01 2003 Subject: [imapfilter-devel]large number of messages causes problems Message-ID: <3E95A2CC.1E2A624@humnet.ucla.edu> I've been using your excellent program to connect to an Exchange 5.5 server. I was getting this message: imapfilter: timeout period expired while waiting data (and, in verbose mode, the SEARCH command was failing) when I reduced the number of messages in the inbox from 509 to 10, things worked fine. I don't know if this is an issue with the server (which otherwise is working fine) or with imapfilter, so I thought I should report it. Thank you very much. -- Joseph Vaughan Asst Director UCLA Center for Digital Humanities (310) 267 4911 From 236285 at provobis.at Fri Apr 11 11:39:01 2003 From: 236285 at provobis.at (236285 at provobis.at) Date: Fri Apr 11 11:39:01 2003 Subject: [imapfilter-devel]Re: Message-ID: 236285@planetpeschel.com An HTML attachment was scrubbed... URL: From dick1962 at sohu.com Fri Apr 11 14:43:01 2003 From: dick1962 at sohu.com (Punching) Date: Fri Apr 11 14:43:01 2003 Subject: [imapfilter-devel]Re: Embroidery Punching Message-ID: <200304111145.h3BBj4On019044@iceberg.hellug.gr> Professional Embroidery Digitizing Price: 48 hours turn around, US$3.00/1,000 stitches. ( Min. US$10.00; Max. US$150.00 ) 24 hours turn around, US$4.00/1,000 stitches. ( Min. US$10.00; Max. US$200.00 ) Online payment acceptable. ( www.paypal.com ) Cheque acceptable in USA, CANADA and UK. dick1962 at sohu.com digitizing at fescomail.net Thanks, Paul From lefcha at hellug.gr Sat Apr 12 15:15:02 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Sat Apr 12 15:15:02 2003 Subject: [imapfilter-devel]large number of messages causes problems In-Reply-To: <3E95A2CC.1E2A624@humnet.ucla.edu> References: <3E95A2CC.1E2A624@humnet.ucla.edu> Message-ID: <20030412121706.GA551@bsd> On Thu, Apr 10, 2003 at 09:58:52AM -0700, Joseph Vaughan wrote: > I've been using your excellent program to connect to an Exchange 5.5 > server. I was getting this message: > > imapfilter: timeout period expired while waiting data > > (and, in verbose mode, the SEARCH command was failing) > > when I reduced the number of messages in the inbox from 509 to 10, > things worked fine. > > I don't know if this is an issue with the server (which otherwise is > working fine) or with imapfilter, so I thought I should report it. Probably the SEARCH query you are sending along with the number (500+) of messages in the mailbox, make it hard for the server to compute and respond. So you get a "timeout period expired"; imapfilter stops waiting for data from the server. Just for testing, don't set the "timeout" variable, to block indefinitely, and see when the server will respond. Try not keeping so many messages in your mailbox (maybe move them to another mailbox when they are older than a month/week/etc.), because it takes a lot of resources for the server to search them. From promo at netcrazy.net Sat Apr 26 00:22:01 2003 From: promo at netcrazy.net (New Car Quotes) Date: Sat Apr 26 00:22:01 2003 Subject: [imapfilter-devel]Get Free Price Quotes On All the 2003 New Cars with PriceWheels! Message-ID: Try it at No-Cost • Simple and Easy Process No obligation free car price quote form in just two minutes. • Low rate Financing available Lowest rates in years. Save hundreds of dollars now! • Largest Dealer Network in U.S. Our system will find you the best dealer to meet your needs. Don't delay, get your No-Cost price quote tody!Click Here. If you would like to be removed permanently from this promotional list, then put "REMOVE" in the subject of the email to: remove -------------- next part -------------- An HTML attachment was scrubbed... URL: From james at hello.com Thu May 1 19:14:01 2003 From: james at hello.com (james at hello.com) Date: Thu May 1 19:14:01 2003 Subject: [imapfilter-devel]Italian-crafted Rolex - only $65 - $140!! Free SHIPPING ! ! Message-ID: <200305011613.h41GDhG07546@tux.hellug.gr> An HTML attachment was scrubbed... URL: From res1m9b6 at verizon.net Sat May 3 07:10:01 2003 From: res1m9b6 at verizon.net (res1m9b6 at verizon.net) Date: Sat May 3 07:10:01 2003 Subject: [imapfilter-devel]Check out these grea Message-ID: <200305030412.h434CItj031509@igloo.linux.gr> Come check out the deals we have on electronics at Stoliker's Electronics Please visit the link below to check out are electronics store. http://stolikersstore.vstoreelectronics.com Stoliker Enterprises is hiring people to work from home processing orders through there home computer all you need is a computer with internet access and a quality printer if interested please visit the link below. http://www.workathometypist.com/cgi-bin/affiliates/click.pl?id=740 Or visit http://mysite.verizon.net/res1m9b6/index.html Check out our Sports store also http://stolikerssports.vstoresports.com/ http://affiliates.pillvalue.com/store/tiggerjjs Best prices on prescriptions http://www.workathometypist.com/cgi-bin/affiliates/click.pl?id=1578 work at home check it out Check out the best prices on the things you need and want http://www.JoelStoliker.myeweb.net Save on electroics things for the home and too many things to list at discount prices To be removed from this mailing list send blank email to res1m9b6 at verizon.net with remove in subject line From res1m9b6 at verizon.net Sat May 3 07:13:01 2003 From: res1m9b6 at verizon.net (res1m9b6 at verizon.net) Date: Sat May 3 07:13:01 2003 Subject: [imapfilter-devel]Check out these grea Message-ID: <200305030415.h434FQtj031756@igloo.linux.gr> Come check out the deals we have on electronics at Stoliker's Electronics Please visit the link below to check out are electronics store. http://stolikersstore.vstoreelectronics.com Stoliker Enterprises is hiring people to work from home processing orders through there home computer all you need is a computer with internet access and a quality printer if interested please visit the link below. http://www.workathometypist.com/cgi-bin/affiliates/click.pl?id=740 Or visit http://mysite.verizon.net/res1m9b6/index.html Check out our Sports store also http://stolikerssports.vstoresports.com/ http://affiliates.pillvalue.com/store/tiggerjjs Best prices on prescriptions http://www.workathometypist.com/cgi-bin/affiliates/click.pl?id=1578 work at home check it out Check out the best prices on the things you need and want http://www.JoelStoliker.myeweb.net Save on electroics things for the home and too many things to list at discount prices To be removed from this mailing list send blank email to res1m9b6 at verizon.net with remove in subject line From res1m9b6 at verizon.net Sat May 3 21:55:02 2003 From: res1m9b6 at verizon.net (res1m9b6 at verizon.net) Date: Sat May 3 21:55:02 2003 Subject: [imapfilter-devel]Check out these great deals Message-ID: <200305031857.h43IvCtj031748@igloo.linux.gr> Come check out the deals we have on electronics at Stoliker's Electronics Please visit the link below to check out are electronics store. http://stolikersstore.vstoreelectronics.com Stoliker Enterprises is hiring people to work from home processing orders through there home computer all you need is a computer with internet access and a quality printer if interested please visit the link below. http://www.workathometypist.com/cgi-bin/affiliates/click.pl?id=740 Or visit http://mysite.verizon.net/res1m9b6/index.html Check out our Sports store also http://stolikerssports.vstoresports.com/ http://affiliates.pillvalue.com/store/tiggerjjs Best prices on prescriptions http://www.workathometypist.com/cgi-bin/affiliates/click.pl?id=1578 work at home check it out Check out the best prices on the things you need and want http://www.JoelStoliker.myeweb.net Save on electronics things for the home and too many things to list at discount prices To be removed from this mailing list send blank email to res1m9b6 at verizon.net with remove in subject line From res1m9b6 at verizon.net Sun May 4 07:27:01 2003 From: res1m9b6 at verizon.net (res1m9b6 at verizon.net) Date: Sun May 4 07:27:01 2003 Subject: [imapfilter-devel]Check out these grea Message-ID: <200305040426.h444Q5G31547@tux.hellug.gr> Come check out the deals we have on electronics at Stoliker's Electronics Please visit the link below to check out are electronics store. http://stolikersstore.vstoreelectronics.com Stoliker Enterprises is hiring people to work from home processing orders through there home computer all you need is a computer with internet access and a quality printer if interested please visit the link below. http://www.workathometypist.com/cgi-bin/affiliates/click.pl?id=740 Or visit http://mysite.verizon.net/res1m9b6/index.html Check out our Sports store also http://stolikerssports.vstoresports.com/ http://affiliates.pillvalue.com/store/tiggerjjs Best prices on prescriptions http://www.workathometypist.com/cgi-bin/affiliates/click.pl?id=1578 work at home check it out Check out the best prices on the things you need and want http://www.JoelStoliker.myeweb.net Save on electronics things for the home and too many things to list at discount prices To be removed from this mailing list send blank email to res1m9b6 at verizon.net with remove in subject line From dmd at 3e.org Sun May 4 16:36:01 2003 From: dmd at 3e.org (Daniel M. Drucker) Date: Sun May 4 16:36:01 2003 Subject: [imapfilter-devel]Spam on this mailing list In-Reply-To: <200305040901.h4491fG00675@tux.hellug.gr> References: <200305040901.h4491fG00675@tux.hellug.gr> Message-ID: <1035.151.201.153.166.1052055491.squirrel@3e.org> Isn't there something we can do about the spam on this mailing list? From lefcha at hellug.gr Tue May 6 23:03:01 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Tue May 6 23:03:01 2003 Subject: [imapfilter-devel]Spam on this mailing list In-Reply-To: <1035.151.201.153.166.1052055491.squirrel@3e.org> References: <200305040901.h4491fG00675@tux.hellug.gr> <1035.151.201.153.166.1052055491.squirrel@3e.org> Message-ID: <20030506200506.GA565@bsd> On Sun, May 04, 2003 at 09:38:11AM -0400, Daniel M. Drucker wrote: > > Isn't there something we can do about the spam on this mailing list? Should I make the list "members posting only"? Any objections on that? From lefcha at hellug.gr Wed May 7 15:19:01 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Wed May 7 15:19:01 2003 Subject: [imapfilter-devel]List is now "members posting only" Message-ID: <20030507122117.GA926@bsd> Don't forget to only use the email address with which you subscribed to the list, in the "From" header. From cdevidal at yahoo.com Tue Jun 10 22:07:00 2003 From: cdevidal at yahoo.com (Chris de Vidal) Date: Tue Jun 10 22:07:00 2003 Subject: [imapfilter-devel] Not filtering Message-ID: <20030610190954.49642.qmail@web40505.mail.yahoo.com> Great program! I can't run procmail or some other shell script on our mail server so this will fit my needs nicely (when I get it working). In essense, the program shows no errors and nothing appears in the log but as far as I can tell rules are not being followed. imapfilter: 0.8.9 IMAP server: Lotus Notes I've only got one rule for testing right now. I copied+pasted the email address into my .imapfilterrc file but it doesn't delete the email. I get no errors and it shows I have the mail in my INBOX (not run in daemon mode): Connected to . 1 message, 0 recent, 0 unseen, in mailbox "INBOX". .imapfilterrc: ========================================== logfile = /home//.imapfilter.log set timeout = 120 expunge = yes subscribe = yes account account1 :@ folder INBOX INBOX filter filter1 from action delete job filter1 INBOX ================= The email remains in INBOX even though the email addresses match. Nothing shows up in the log file. So I changed the rule to this: ============== filter filter1 subject "Testing imapfilter" # This is the actual subject, cut and pasted action delete ============= The mail stubbornly sits in INBOX. I've heard Lotus Notes uses a backward slash "\" for folder delimiters. Perhaps this is the problem? But as you can see, I'm specifying INBOX with no slashes, so I not sure that's the problem. Here's a snippet of the strace output: write(5, "F00004 SEARCH SUBJECT \"Testing i"..., 44) = 44 fcntl64(5, F_SETFL, O_RDWR) = 0 fcntl64(5, F_GETFL) = 0x2 (flags O_RDWR) fcntl64(5, F_SETFL, O_RDWR|O_NONBLOCK) = 0 select(6, [5], NULL, NULL, {120, 0}) = 1 (in [5], left {119, 805000}) read(5, "F00004 NO SEARCH Database is not"..., 4096) = 52 fcntl64(5, F_SETFL, O_RDWR) = 0 fcntl64(5, F_GETFL) = 0x2 (flags O_RDWR) fcntl64(5, F_SETFL, O_RDWR|O_NONBLOCK) = 0 select(6, NULL, [5], NULL, {120, 0}) = 1 (out [5], left {120, 0}) write(5, "F00005 CLOSE\r\n", 14) = 14 Ideas? Want me to send the strace output? ===== /dev/idal "GNU/Linux is free freedom" --Me __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com From y0m at y0m.net Wed Jun 11 00:54:01 2003 From: y0m at y0m.net (y0m) Date: Wed Jun 11 00:54:01 2003 Subject: [imapfilter-devel] Not filtering In-Reply-To: <20030610190954.49642.qmail@web40505.mail.yahoo.com> References: <20030610190954.49642.qmail@web40505.mail.yahoo.com> Message-ID: <20030610215640.GA5465@baalberith.y0m.net> On Tue, Jun 10, 2003 at 12:09:54PM -0700, Chris de Vidal wrote: > filter filter1 > subject "Testing imapfilter" # This is the actual subject, cut and pasted > action delete Try this : filter filter1 mark subject "Testing imapfilter" action delete I know the 'mark' directive is optionnal, but maybe there's a bug ? :) PS : works very well on my serv, thanks ! From cdevidal at yahoo.com Wed Jun 11 01:08:01 2003 From: cdevidal at yahoo.com (Chris de Vidal) Date: Wed Jun 11 01:08:01 2003 Subject: [imapfilter-devel] Not filtering In-Reply-To: <20030610215640.GA5465@baalberith.y0m.net> Message-ID: <20030610221045.93719.qmail@web40501.mail.yahoo.com> --- y0m wrote: > On Tue, Jun 10, 2003 at 12:09:54PM -0700, Chris de Vidal wrote: > > filter filter1 > > subject "Testing imapfilter" # This is the actual subject, cut and > pasted > > action delete > > Try this : > > filter filter1 > mark subject "Testing imapfilter" > action delete > > I know the 'mark' directive is optionnal, but maybe there's a bug ? :) I get this: imapfilter: parse error in config file at row 12 This is the same line that mark subject is on. If I take out mark it works. > PS : works very well on my serv, thanks ! You're not using Lotus Notes server (: Thanks anyway. Anyone else? __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com From y0m at y0m.net Wed Jun 11 01:18:01 2003 From: y0m at y0m.net (y0m) Date: Wed Jun 11 01:18:01 2003 Subject: [imapfilter-devel] Not filtering In-Reply-To: <20030610221045.93719.qmail@web40501.mail.yahoo.com> References: <20030610215640.GA5465@baalberith.y0m.net> <20030610221045.93719.qmail@web40501.mail.yahoo.com> Message-ID: <20030610222015.GC5465@baalberith.y0m.net> On Tue, Jun 10, 2003 at 03:10:45PM -0700, Chris de Vidal wrote: > I get this: > imapfilter: parse error in config file at row 12 > This is the same line that mark subject is on. If I take out mark it works. Could you send a strace of it ? > > PS : works very well on my serv, thanks ! > You're not using Lotus Notes server (: Was a message for devs (: From lefcha at hellug.gr Wed Jun 11 02:38:01 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Wed Jun 11 02:38:01 2003 Subject: [imapfilter-devel] Not filtering In-Reply-To: <20030610190954.49642.qmail@web40505.mail.yahoo.com> References: <20030610190954.49642.qmail@web40505.mail.yahoo.com> Message-ID: <20030610234104.GA24290@linux> On Tue, Jun 10, 2003 at 12:09:54PM -0700, Chris de Vidal wrote: > Great program! I can't run procmail or some other shell script on our mail > server so this will fit my needs nicely (when I get it working). > > In essense, the program shows no errors and nothing appears in the log but as > far as I can tell rules are not being followed. > > imapfilter: 0.8.9 > IMAP server: Lotus Notes > > I've only got one rule for testing right now. I copied+pasted the email > address into my .imapfilterrc file but it doesn't delete the email. I get no > errors and it shows I have the mail in my INBOX (not run in daemon mode): > Connected to . > 1 message, 0 recent, 0 unseen, in mailbox "INBOX". > > .imapfilterrc: > ========================================== > logfile = /home//.imapfilter.log > set timeout = 120 > expunge = yes > subscribe = yes > > account account1 :@ > folder INBOX INBOX > > filter filter1 > from > action delete > > job filter1 INBOX > ================= > > The email remains in INBOX even though the email addresses match. Nothing > shows up in the log file. > > So I changed the rule to this: > ============== > filter filter1 > subject "Testing imapfilter" # This is the actual subject, cut and pasted > action delete > ============= > > The mail stubbornly sits in INBOX. > > I've heard Lotus Notes uses a backward slash "\" for folder delimiters. > Perhaps this is the problem? But as you can see, I'm specifying INBOX with no > slashes, so I not sure that's the problem. > > [...] Recompile imapfilter with DEBUG info enabled. You can do this with something like this: $ tar zxf imapfilter-0.8.9.tar.gz $ cd imapfilter-0.8.9 $ ./config -o debug=yes $ make Then run imapfilter and save its output to a file with something like: $ ./imapfilter 2>&1 | tee /tmp/imapfilter.out Send the relevant parts or the whole output file, and also, make sure to strip any sensitive information (such as passwords). From cdevidal at yahoo.com Wed Jun 11 18:42:01 2003 From: cdevidal at yahoo.com (Chris de Vidal) Date: Wed Jun 11 18:42:01 2003 Subject: [imapfilter-devel] Re: Not filtering In-Reply-To: <20030610234104.GA24290@linux> Message-ID: <20030611154404.89306.qmail@web40502.mail.yahoo.com> --- Lefteris Chatzibarbas wrote: > Recompile imapfilter with DEBUG info enabled. OK thanks for showing me how. I believe this is a problem with either Lotus Notes or this particular IMAP server (some server configuration, perhaps). As you can see, imapfilter sends the SEARCH SUBJECT command and the server replies "Database is not full-text indexed." Ideas on how I can work with this? Also, still nothing is seen in the log file. Perhaps if these server responses could appear there... I'd fix it for you but I'm an overworked sysadmin and a poor coder (: Here's imapfilter.out (and my new .imapfilterrc is at the bottom): debug: configuration file: '/home//.imapfilterrc' debug: ACCOUNT: 'account1' debug: USERNAME: '' debug: PASSWORD: '' debug: SERVER: '' debug: FOLDER: 'INBOX' debug: MBOX: 'INBOX' debug: FILTER: 'filter1' AND debug: MASK: 'SUBJECT "Testing imapfilter"' debug: ACTION: 1 '' '' 0 '' debug: JOB: 'filter1' 'INBOX' debug: deleting FOLDER: 'INBOX' debug: options: 0x000000da debug: logfile: '/home//.imapfilter.log' Connected to . * OK Domino IMAP4 Server Release 5.0.12 ready Wed, 11 Jun 2003 10:30:21 -0500 debug: sending command: F00000 CAPABILITY * CAPABILITY IMAP4rev1 AUTH=LOGIN AUTH-LOGIN LITERAL+ F00000 OK CAPABILITY completed debug: sending command: F00001 NOOP F00001 OK NOOP completed debug: sending command: F00002 LOGIN "" "" F00002 OK LOGIN completed debug: sending command: F00003 STATUS "INBOX" (MESSAGES RECENT UNSEEN) * STATUS INBOX (MESSAGES 4 RECENT 0 UNSEEN 4) F00003 OK STATUS completed 4 messages, 0 recent, 4 unseen, in mailbox "INBOX". debug: sending command: F00004 SELECT "INBOX" * 4 EXISTS * 0 RECENT * OK [UNSEEN 1] Message 1 is first unseen * OK [UIDVALIDITY 0] UIDs valid * FLAGS (\Flagged \Seen \Answered \Deleted \Draft) * OK [PERMANENTFLAGS (\Flagged \Seen \Answered \Deleted \Draft)] Permanent flags F00004 OK [READ-WRITE] SELECT completed debug: sending command: F00005 SEARCH SUBJECT "Testing imapfilter" F00005 NO SEARCH Database is not full-text indexed debug: sending command: F00006 CLOSE F00006 OK CLOSE completed debug: sending command: F00007 LOGOUT * BYE logging out F00007 OK LOGOUT completed Here's my current .imapfilterrc (made some changes): logfile = /home//.imapfilter.log set timeout = 120 expunge = yes subscribe = yes warning = no account account1 :@ folder INBOX INBOX filter filter1 subject "Testing imapfilter" action delete job filter1 INBOX __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com From lefcha at hellug.gr Thu Jun 12 02:28:01 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Thu Jun 12 02:28:01 2003 Subject: [imapfilter-devel] Re: Not filtering In-Reply-To: <20030611154404.89306.qmail@web40502.mail.yahoo.com> References: <20030610234104.GA24290@linux> <20030611154404.89306.qmail@web40502.mail.yahoo.com> Message-ID: <20030611231850.GA8778@bsd> On Wed, Jun 11, 2003 at 08:44:04AM -0700, Chris de Vidal wrote: > --- Lefteris Chatzibarbas wrote: > > Recompile imapfilter with DEBUG info enabled. > > OK thanks for showing me how. I believe this is a problem with either Lotus > Notes or this particular IMAP server (some server configuration, perhaps). As > you can see, imapfilter sends the SEARCH SUBJECT command and the server replies > "Database is not full-text indexed." Ideas on how I can work with this? Yes, this is an IMAP server problem. I am only speculating, but there should be a way to create a full-text index of the database, in order for the IMAP server to be able to handle SEARCH queries. If you are the admin of the IMAP server you should check it's documentation about full-text indexing, etc. Otherwise you should contact the mail server's admin about this problem. > Also, still nothing is seen in the log file. Perhaps if these server responses > could appear there... I'd fix it for you but I'm an overworked sysadmin and a > poor coder (: > > [...] Next major release (0.9) will print the client-server communication with the "-v" option (much more verbose messages than the current releases), which, hopefully, will make trouble-shooting, in some cases, a lot easier. From cdevidal at yahoo.com Thu Jun 12 14:54:01 2003 From: cdevidal at yahoo.com (Chris de Vidal) Date: Thu Jun 12 14:54:01 2003 Subject: [imapfilter-devel] Re: Not filtering In-Reply-To: <20030611231850.GA8778@bsd> Message-ID: <20030612115601.96334.qmail@web40511.mail.yahoo.com> --- Lefteris Chatzibarbas wrote: > > "Database is not full-text indexed." Ideas on how I can work with this? > > Yes, this is an IMAP server problem. > > I am only speculating, but there should be a way to create a full-text > index of the database, in order for the IMAP server to be able to handle > SEARCH queries. If you are the admin of the IMAP server you should > check it's documentation about full-text indexing, etc. Otherwise you > should contact the mail server's admin about this problem. I'll contact him. The server has thousands of users... perhaps he disabled indexing for performance. Mozilla can sort it but it's too slow for my taste (and I have a fast workstation). Also, I like mutt reasons other than performance so I won't change for just this... I can manually sort and delete if I must. There must be another way to sort IMAP mail if Mozilla can do it. Have you heard of any other mutt-compatible software which can filter IMAP mail? Or could you please provide an alternate way of sorting for non-indexed servers? ===== /dev/idal "GNU/Linux is free freedom" --Me __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com From lefcha at hellug.gr Fri Jun 13 23:23:01 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Fri Jun 13 23:23:01 2003 Subject: [imapfilter-devel] Re: Not filtering In-Reply-To: <20030612115601.96334.qmail@web40511.mail.yahoo.com> References: <20030611231850.GA8778@bsd> <20030612115601.96334.qmail@web40511.mail.yahoo.com> Message-ID: <20030613202511.GA12867@linux> On Thu, Jun 12, 2003 at 04:56:01AM -0700, Chris de Vidal wrote: > --- Lefteris Chatzibarbas wrote: > > > "Database is not full-text indexed." Ideas on how I can work with this? > > > > Yes, this is an IMAP server problem. > > > > I am only speculating, but there should be a way to create a full-text > > index of the database, in order for the IMAP server to be able to handle > > SEARCH queries. If you are the admin of the IMAP server you should > > check it's documentation about full-text indexing, etc. Otherwise you > > should contact the mail server's admin about this problem. > > I'll contact him. The server has thousands of users... perhaps he disabled > indexing for performance. This server, configured in a way that it cannot handle SEARCH queries, is not compliant to the IMAP4rev1 protocol and creates problems to IMAP mail clients (such as imapfilter). The admin of the mail server should configure the server properly and IMHO "performance reasons" is not a good excuse... > There must be another way to sort IMAP mail if Mozilla can do it. If the server can not handle SEARCH queries from clients, that means the mozilla mail client fetches some or all of the headers of the messages and checks them locally (or maybe configured to fetch the messages and also keep them on the server). This is much more slower if you tend keep a lot of messages in your remote IMAP mailboxes and don't have broadband connection. > Have you heard of any other mutt-compatible software which can filter IMAP > mail? I don't know any, but I can't tell I have searched. Maybe someone else has something in mind. > Or could you please provide an alternate way of sorting for non-indexed servers? I am thinking of adding the capability to use regular expressions to the filters of imapfilter (not for the next major release though), but this has the drawback that then some part of the messages have to be fetched in order to do the matching (because IMAP mail servers don't have the capability to do searching queries using RE). OTOH, this will solve problems like this, make filtering more powerful, and will also make it easy to implement things like the "delete duplicates" functionality... From cdevidal at yahoo.com Sat Jun 14 18:09:01 2003 From: cdevidal at yahoo.com (Chris de Vidal) Date: Sat Jun 14 18:09:01 2003 Subject: [imapfilter-devel] Re: Not filtering In-Reply-To: <20030613202511.GA12867@linux> Message-ID: <20030614151142.99290.qmail@web40505.mail.yahoo.com> --- Lefteris Chatzibarbas wrote: > The admin of the mail server should > configure the server properly and IMHO "performance reasons" is not a > good excuse... Well, I don't exactly know his reasons, he didn't talk back to me. I only suspect those are his reasons, or perhaps Lotus Notes (the bastard child of mail servers) doesn't support it. > > Or could you please provide an alternate way of sorting for non-indexed > servers? > > I am thinking of adding the capability to use regular expressions to the > filters of imapfilter (not for the next major release though), but this > has the drawback that then some part of the messages have to be fetched > in order to do the matching (because IMAP mail servers don't have the > capability to do searching queries using RE). OTOH, this will solve > problems like this, make filtering more powerful, and will also make it > easy to implement things like the "delete duplicates" functionality... How about a config file option and it's off by default? Just a thought... Anyway thanks for such a stellar piece of software, too bad I have no use for it. Anyway I'll share it with people in my Linux User Group. Thanks! __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com From frank at webraska.com Tue Jun 17 11:05:02 2003 From: frank at webraska.com (Frank Schroeder) Date: Tue Jun 17 11:05:02 2003 Subject: [imapfilter-devel] Re: Not filtering In-Reply-To: <20030613202511.GA12867@linux> References: <20030611231850.GA8778@bsd> <20030612115601.96334.qmail@web40511.mail.yahoo.com> <20030613202511.GA12867@linux> Message-ID: <3EEECC31.7070909@webraska.com> Mail servers can be at a remote site or next door - as in our case. We are using the Netscape Messaging Server which doesn't offer server side filtering but the amount of mails that we need to process requires filtering. Letting Mozilla do the work is not a solution as I would like to set something up which works like server-side filtering, i.e. with a client in the background. So fetching headers - or even the bodies - would be OK if it can be configured. Lefteris Chatzibarbas wrote: >On Thu, Jun 12, 2003 at 04:56:01AM -0700, Chris de Vidal wrote: > > >>--- Lefteris Chatzibarbas wrote: >> >> >>There must be another way to sort IMAP mail if Mozilla can do it. >> >> > >If the server can not handle SEARCH queries from clients, that means the >mozilla mail client fetches some or all of the headers of the messages >and checks them locally (or maybe configured to fetch the messages and >also keep them on the server). This is much more slower if you tend >keep a lot of messages in your remote IMAP mailboxes and don't have >broadband connection. > > -- Frank Schroeder Senior Software Engineer/IS Architect/DBA Webraska Engineering Germany www.webraska.com From prays at chel.surnet.ru Wed Jul 2 18:53:03 2003 From: prays at chel.surnet.ru (Igor Klingen) Date: Wed Jul 2 18:53:03 2003 Subject: [imapfilter-devel] filtering :((( Message-ID: <3EFFBDD1.9040104@chel.surnet.ru> Hi All! I have following difficulty. I use Courier Imap v1.7.1 and imapfilter v0.8.9. Post messages get in INBOX some box. All fields of messages coded on RFC 1522 will be transformed to a form =?UTF-8?Q?...? =. For a filtration I use a part of a field 'From' and a part of a field 'Subject'. ( Names of folders are written by russian, therefore Courier Imap creates them in coding UTF-7): ----- imapfilterrc --------------------------------------------------- ... filter sort-subscribe-ems-1c and mask from ems.ru mask subject "=D0=9D=D0=BE=D0=B2=D0=BE=D1=81=D1=82=D0=B8 EMS | 1C:" action move &BB8EPgQ0BD8EOARBBDoEMA-/EMS 1C ... ---------------------------------------------------------------------- In INBOX there is some letter with heading: ----- message in INBOX ----------------------------------------------- ... Subject: =?UTF-8?Q?19.06.2003| =D0=9D=D0=BE=D0=B2=D0=BE=D1=81=D1=82=D0=B8 EMS | 1C: =D0=90=D0=B2=D1=82=D0=BE=D0=BC=D0=B0=D1=82=D0=B8=D0=B7=D0=B0=D1=86=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=_71d770d162e31d25e4eff1f0601d99cc" From: webmaster at ems.ru ... ---------------------------------------------------------------------- The report of an output imapfilter: ----- imapfilter -v ... ---------------------------------------------- ... debug: FILTER: 'sort-subscribe-ems-1c' AND debug: MASK: 'FROM "ems.ru"' debug: MASK: 'SUBJECT "=D0=9D=D0=BE=D0=B2=D0=BE=D1=81=D1=82=D0=B8 EMS | 1C:"' debug: ACTION: 3 '' '&BB8EPgQ0BD8EOARBBDoEMA-/EMS' 0 '1C' ... Client request: SEARCH debug: sending command: F00006 SEARCH ALL FROM "ems.ru" SUBJECT "=D0=9D=D0=BE=D0=B2=D0=BE=D1=81=D1=82=D0=B8 EMS | 1C:" * SEARCH F00006 OK SEARCH done. Server response: OK SEARCH done. ... ---------------------------------------------------------------------- QUESTIONS: 1) Why the filter does not find the letter? 2) I am confused with the form of record of a name of a folder in UTF-7 in imapfilterrc. In file system this folder looks like '.&BB8EPgQ0BD8EOARBBDoEMA-.EMS 1C' (apostrophes mine). How correctly to write down such folder in imapfilterrc? -- Best regards, Igor Klingen From prays at chel.surnet.ru Thu Jul 3 07:35:12 2003 From: prays at chel.surnet.ru (Igor Klingen) Date: Thu Jul 3 07:35:12 2003 Subject: [imapfilter-devel] problem with parent subfolders Message-ID: <3F03B25C.2010105@chel.surnet.ru> Hi! I have faced the following problem. We allow there are such rules: ... action move PARENT/SUB1 ... action move PARENT/SUB2 ... But there are no rules using directly a folder 'PARENT'. We allow, also, that the folder 'PARENT' and her(it) subfolders ('.PARENT.SUB1', '.PARENT.SUB2') does not exist. Then at execution of above mentioned rules are created subfolders '.PARENT.SUB1' and '.PARENT.SUB2', but a folder '.PARENT' It is not created. It results in distribution of warning messages in MUA programs (for example OutlookExpress). About me: Linux 2.4.18 (a'la RH7.3), qmail, courier-imap 1.7.1, imapfilter 0.9.8. -- Best regards, Igor Klingen From lefcha at hellug.gr Thu Jul 3 22:01:11 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Thu Jul 3 22:01:11 2003 Subject: [imapfilter-devel] filtering :((( In-Reply-To: <3EFFBDD1.9040104@chel.surnet.ru> References: <3EFFBDD1.9040104@chel.surnet.ru> Message-ID: <20030703190051.GA643@linux> On Mon, Jun 30, 2003 at 10:34:25AM +0600, Igor Klingen wrote: > Hi All! > > I have following difficulty. > I use Courier Imap v1.7.1 and imapfilter v0.8.9. > Post messages get in INBOX some box. > All fields of messages coded on RFC 1522 will be > transformed to a form =?UTF-8?Q?...? =. > For a filtration I use a part of a field 'From' > and a part of a field 'Subject'. > ( Names of folders are written by russian, > therefore Courier Imap creates them in coding UTF-7): > > ----- imapfilterrc --------------------------------------------------- > ... > filter sort-subscribe-ems-1c and > mask from ems.ru > mask subject "=D0=9D=D0=BE=D0=B2=D0=BE=D1=81=D1=82=D0=B8 EMS | 1C:" > action move &BB8EPgQ0BD8EOARBBDoEMA-/EMS 1C > ... > ---------------------------------------------------------------------- > > In INBOX there is some letter with heading: > > ----- message in INBOX ----------------------------------------------- > ... > Subject: =?UTF-8?Q?19.06.2003| > =D0=9D=D0=BE=D0=B2=D0=BE=D1=81=D1=82=D0=B8 EMS | 1C: > =D0=90=D0=B2=D1=82=D0=BE=D0=BC=D0=B0=D1=82=D0=B8=D0=B7=D0=B0=D1=86=D0=B8=D1=8F?= > MIME-Version: 1.0 > Content-Type: multipart/mixed; boundary="=_71d770d162e31d25e4eff1f0601d99cc" > From: webmaster at ems.ru > ... > ---------------------------------------------------------------------- > > The report of an output imapfilter: > > ----- imapfilter -v ... ---------------------------------------------- > ... > debug: FILTER: 'sort-subscribe-ems-1c' AND > debug: MASK: 'FROM "ems.ru"' > debug: MASK: 'SUBJECT "=D0=9D=D0=BE=D0=B2=D0=BE=D1=81=D1=82=D0=B8 EMS | > 1C:"' > debug: ACTION: 3 '' '&BB8EPgQ0BD8EOARBBDoEMA-/EMS' 0 '1C' > ... > Client request: SEARCH > debug: sending command: F00006 SEARCH ALL FROM "ems.ru" SUBJECT > "=D0=9D=D0=BE=D0=B2=D0=BE=D1=81=D1=82=D0=B8 EMS | 1C:" > > * SEARCH > F00006 OK SEARCH done. > > Server response: OK SEARCH done. > ... > ---------------------------------------------------------------------- > > > QUESTIONS: > 1) Why the filter does not find the letter? With the CVS version of imapfilter (it supports the "charset" IMAP4rev1 parameter while searching) and using UTF8 as the charset, I was able to succesfully filter a message with english, greek polytonic, russian and german characters (I used a Unicode editor to compose the message and create imapfilter's config file). The mail server must also support other charsets than ASCII in order to do this. I don't know if trying the CVS version with UTF8 as charset, will be of any help, though. I can't really tell why the filter fails (i18n support and workarounds such as RFC1522 tend to cause headaches), but can you try something simpler in the filter? Trial and error might prove useful with your problem... > 2) I am confused with the form of record of a name of a folder in UTF-7 > in imapfilterrc. In file system this folder looks like > '.&BB8EPgQ0BD8EOARBBDoEMA-.EMS 1C' (apostrophes mine). > How correctly to write down such folder in imapfilterrc? Use this: ... action move "&BB8EPgQ0BD8EOARBBDoEMA-/EMS 1C" PS. Please, subscribe to the list so I don't have to approve your messages (the list is "members posting only"). From lefcha at hellug.gr Fri Jul 4 00:33:14 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Fri Jul 4 00:33:14 2003 Subject: [imapfilter-devel] problem with parent subfolders In-Reply-To: <3F03B25C.2010105@chel.surnet.ru> References: <3F03B25C.2010105@chel.surnet.ru> Message-ID: <20030703213208.GA617@bsd> On Thu, Jul 03, 2003 at 10:34:36AM +0600, Igor Klingen wrote: > Hi! > I have faced the following problem. > We allow there are such rules: > ... > action move PARENT/SUB1 > ... > action move PARENT/SUB2 > ... > But there are no rules using directly a folder 'PARENT'. > > We allow, also, that the folder 'PARENT' and her(it) subfolders > ('.PARENT.SUB1', '.PARENT.SUB2') does not exist. > Then at execution of above mentioned rules are created subfolders > '.PARENT.SUB1' and '.PARENT.SUB2', but a folder > '.PARENT' It is not created. > It results in distribution of warning messages in MUA programs (for > example OutlookExpress). I may be wrong, but I don't think that is is required that there must be mailbox INBOX.foo if there is mailbox INBOX.foo.bar. Of course, you could just create the mailbox that the MUA is complaining about, or disable the warnings (if that is configurable). From prays at chel.surnet.ru Fri Jul 4 06:53:11 2003 From: prays at chel.surnet.ru (prays at chel.surnet.ru) Date: Fri Jul 4 06:53:11 2003 Subject: [imapfilter-devel] filtering :((( In-Reply-To: <20030703190051.GA643@linux> References: <3EFFBDD1.9040104@chel.surnet.ru> <20030703190051.GA643@linux> Message-ID: <12263360121.20030704094830@chel.surnet.ru> Hi Lefteris Chatzibarbas LC> On Mon, Jun 30, 2003 at 10:34:25AM +0600, Igor Klingen wrote: >> Hi All! >> >> I have following difficulty. >> I use Courier Imap v1.7.1 and imapfilter v0.8.9. >> Post messages get in INBOX some box. ... >> QUESTIONS: >> 1) Why the filter does not find the letter? LC> With the CVS version of imapfilter (it supports the "charset" IMAP4rev1 LC> parameter while searching) and using UTF8 as the charset, I was able to LC> succesfully filter a message with english, greek polytonic, russian and LC> german characters (I used a Unicode editor to compose the message and LC> create imapfilter's config file). The mail server must also support LC> other charsets than ASCII in order to do this. I don't know if trying LC> the CVS version with UTF8 as charset, will be of any help, though. The offer on i18n. The new variable, for example 'locale' (by default equal 'C') is added. Rules of a filtration look so: ... locale = X.Y filter f1... action... filter f2 action ... ... locale = C filter fN... action... At analysis rc as soon as meets ' locale = X.Y ' it is caused ' setlocale (LC_ALL, X.Y) ' and regular expressions for 'mask' (if are compiled Compilation is necessary). At generation of a code for 'SEARCH', the current value 'locale' is analyzed. If it is not equal 'C' it is generated ' SEARCH CHARSET Y. '. In this case compatibility with already working .rc is kept. LC> I can't really tell why the filter fails (i18n support and workarounds LC> such as RFC1522 tend to cause headaches), but can you try something LC> simpler in the filter? Trial and error might prove useful with your LC> problem... >> 2) I am confused with the form of record of a name of a folder in UTF-7 >> in imapfilterrc. In file system this folder looks like >> '.&BB8EPgQ0BD8EOARBBDoEMA-.EMS 1C' (apostrophes mine). >> How correctly to write down such folder in imapfilterrc? LC> Use this: LC> ... LC> action move "&BB8EPgQ0BD8EOARBBDoEMA-/EMS 1C" ... I have guessed. :)) -- Best regards Igor Klingen, From lefcha at hellug.gr Fri Aug 1 16:54:55 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Fri, 1 Aug 2003 16:54:55 +0300 Subject: [imapfilter-devel] IMAPFilter 0.9-rc1 Message-ID: <20030801135455.GA2095@linux> Hello, After one year since the last major release, the time has come for IMAPFilter version 0.9. Here is the list of new features and http links (at the bottom of this message) to the first (and hopefully the last) release candidate of IMAPFilter 0.9: - User authentication with the Challenge-Response Authentication Mechanism (CRAM), specifically CRAM-MD5. If the IMAP mail server supports CRAM-MD5, IMAPFilter will authenticate using it, instead of plaintext password LOGIN. - IMAPFilter now supports encryption of the connection using the IMAP STARTTLS extension, besides the imaps (port 993) SSL/TLS connection. A TLS connection is automatically negotiated if the IMAP mail server supports this extension. - SSL/TLS certificate checking. IMAPFilter now stores X509 certificates to a file and checks, each time a secure connection is set up, the certificate that the server sends. The user prompted for action in the case of a certificate mismatch. - I18N support. The user can now specify the charset to be used for the search criteria. With the correct locale, a unicode editor and "UTF-8" as the charset, one can filter messages with characters from many different languages. Note that the IMAP mail server must have support for the specified (the IMAP4rev1 protocol specifies that the server MAY have support for encodings other that US-ASCII). - Date conversion specifiers can be used in the name of the destination mailbox of a (r)copy/(r)move filter. They are introduced with the percent '%' and at sign '@', for the current system's date/time and the message's envelope "Date:" header date/time, respectively. More on this on imapfilterrc(5), sample.imapfilterrc and strftime(3). - The default variable "$_" can be used in the name of the destination mailbox of a (r)copy/(r)move filter. This special variable expands to the mailbox that currently the filter is applied to. More on this on the imapfilterrc(5) and sample.imapfilterrc. - The HUP signal now forces IMAPFilter (when in daemon mode) to reread its configuration file. When sending the HUP signal be sure to check the imapfilter process, because a parse error will cause the program to exit, and the logfile, for an error message eg. wrong password. - Logfile, debug and verbose mode messages were improved to make checking of program's operation and tracking of problems easier. - The usual code cleanup, corrections, improvements, etc. Please, download, install and use this release candidate to help ensure that IMAPFilter 0.9 will be really stable. Send any feedback such as bug reports, badly written documentation or not sufficiently explained functionality, etc. to this mailing list or to me personally. IMAPFilter version 0.9-rc1: http://imapfilter.hellug.gr/temp/imapfilter-0.9-rc1.tar.gz MD5: 0b1985ce7b03492f9550832d056a0f5c http://imapfilter.hellug.gr/temp/imapfilter-0.9-rc1.tar.bz2 MD5: 6517fd882e6fc87636f6ca49555aa2ff From lefcha at hellug.gr Sun Aug 3 21:49:45 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Sun, 3 Aug 2003 21:49:45 +0300 Subject: [imapfilter-devel] IMAPFilter 0.9-rc2 Message-ID: <20030803184945.GA4937@linux> Hello, Changes since 0.9-rc1: - Fixed some bugs that appeared when compiling without the features that required the OpenSSL library (compilation errors: missing includes, missing preprocessor conditional, etc.) - The SIGHUP that caused wake up from sleep phase and reread of configuration file was changed to SIGUSR1. - Small changes here and there. IMAPFilter version 0.9-rc2: http://imapfilter.hellug.gr/temp/imapfilter-0.9-rc2.tar.gz MD5: 84ddb2da9cb7bfb947afb1b9b372c045 http://imapfilter.hellug.gr/temp/imapfilter-0.9-rc2.tar.bz2 MD5: 896bef47ebe5b48fb1ce3c9456a6feb5 As a special note (which should have been mentioned in my previous message), here is the "features" that were removed since 0.8.x and the changes that took place in the configuration file: - IMAPFilter, now, does NOT try to lock memory pages in order to avoid swapping of sensitive data (it doesn't make sense considering the ways a system administrator can gain access to the user's data). So the MEMORY_LOCK compilation option and the "warning" variable were removed. - To specify an imaps (port 993) SSL/TLS connection, the "ssl2", "ssl3" or "tls1" keywords must, now, be used. The "ssl" keyword which actually defaulted to SSLv2, was removed from the configuration file. From lefcha at hellug.gr Wed Aug 6 19:16:00 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Wed, 6 Aug 2003 19:16:00 +0300 Subject: [imapfilter-devel] IMAPFilter 0.9 Message-ID: <20030806161600.GA2544@bsd> Hello, IMAPFilter version 0.9: http://imapfilter.hellug.gr/source/imapfilter-0.9.tar.gz http://imapfilter.hellug.gr/source/imapfilter-0.9.tar.gz.sig MD5 (imapfilter-0.9.tar.gz) = 315a19eb517c4aced9ef7dc76cdab6ce http://imapfilter.hellug.gr/source/imapfilter-0.9.tar.bz2 http://imapfilter.hellug.gr/source/imapfilter-0.9.tar.bz2.sig MD5 (imapfilter-0.9.tar.bz2) = c52299847ddcdcb97a1481031eb82293 From dmd at 3e.org Thu Aug 7 20:38:18 2003 From: dmd at 3e.org (Daniel M. Drucker) Date: Thu, 7 Aug 2003 13:38:18 -0400 Subject: [imapfilter-devel] non-ssl mode? Message-ID: <002101c35d0a$c2d87e50$0100a8c0@udon> I can't get imapfilter 0.9 to run in non-ssl mode: here is my .imapfilterrc set daemon=30 set logfile = /home/dmd/.imapfilter.log set timeout = 120 set expunge = no set subscribe = yes account dmd dmd%403e.org:mypassword at localhost:143 folder inbox INBOX filter spam or mask subject "***SPAM***" action move spam job spam inbox When I run imapfilter, I get this: imapfilter: initiating SSL connection; error:00000000:lib(0):func(0):reason(0) Any ideas? From lefcha at hellug.gr Thu Aug 7 21:11:33 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Thu, 7 Aug 2003 21:11:33 +0300 Subject: [imapfilter-devel] non-ssl mode? In-Reply-To: <002101c35d0a$c2d87e50$0100a8c0@udon> References: <002101c35d0a$c2d87e50$0100a8c0@udon> Message-ID: <20030807181133.GA618@bsd> On Thu, Aug 07, 2003 at 01:38:18PM -0400, Daniel M. Drucker wrote: > > I can't get imapfilter 0.9 to run in non-ssl mode: > > here is my .imapfilterrc > > [...] > > account dmd dmd%403e.org:mypassword at localhost:143 > > [...] > > When I run imapfilter, I get this: > imapfilter: initiating SSL connection; > error:00000000:lib(0):func(0):reason(0) > > Any ideas? If the server reports that it supports the IMAP STARTTLS extension, imapfilter tries to negotiate a TLS encrypted connection. STARTTLS is the one of the two ways you can have an encrypted connection, the other being an SSL wrapped imaps (port 993) connection. Probably, this error is because of a failed STARTTLS negotiation. Running imapfilter with the -v option should give us a clue whether this is the case. I wonder why the SSL negotiation failed... whether it is a bug of imapfilter, a badly configured server, SSL version incompatibility, etc. In any case you can compile imapfilter without SSL_TLS support: $ ./config -o ssltls=no $ make From dmd at 3e.org Thu Aug 7 21:16:53 2003 From: dmd at 3e.org (Daniel M. Drucker) Date: Thu, 7 Aug 2003 14:16:53 -0400 Subject: [imapfilter-devel] non-ssl mode? References: <002101c35d0a$c2d87e50$0100a8c0@udon> <20030807181133.GA618@bsd> Message-ID: <003a01c35d10$271a49c0$0100a8c0@udon> > In any case you can compile imapfilter without SSL_TLS support: > > $ ./config -o ssltls=no > $ make [dmd at eco ~/build/imapfilter-0.9]$ ./config -o ssltls=no Destination directory: /usr/local Binaries directory: /usr/local/bin Manual pages directory: /usr/local/man Debugging information: no Configuration file permissions checking: yes Encrypted passwords support: yes Secure Socket Layer and Transport Layer Security: no Challenge-Response Authentication Mechanism: yes [dmd at eco ~/build/imapfilter-0.9]$ make cc -O -c -o account.o account.c cc -O -c -o action.o action.c cc -O -c -o auth.o auth.c cc -O -c -o buffer.o buffer.c In file included from buffer.c:4: imapfilter.h:232: parse error before `*' imapfilter.h:233: parse error before `FILE' make: *** [buffer.o] Error 1 From lefcha at hellug.gr Thu Aug 7 21:41:13 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Thu, 7 Aug 2003 21:41:13 +0300 Subject: [imapfilter-devel] non-ssl mode? In-Reply-To: <003a01c35d10$271a49c0$0100a8c0@udon> References: <002101c35d0a$c2d87e50$0100a8c0@udon> <20030807181133.GA618@bsd> <003a01c35d10$271a49c0$0100a8c0@udon> Message-ID: <20030807184113.GA503@linux> On Thu, Aug 07, 2003 at 02:16:53PM -0400, Daniel M. Drucker wrote: > > In any case you can compile imapfilter without SSL_TLS support: > > > > $ ./config -o ssltls=no > > $ make > > [dmd at eco ~/build/imapfilter-0.9]$ ./config -o ssltls=no > Destination directory: /usr/local > Binaries directory: /usr/local/bin > Manual pages directory: /usr/local/man > Debugging information: no > Configuration file permissions checking: yes > Encrypted passwords support: yes > Secure Socket Layer and Transport Layer Security: no > Challenge-Response Authentication Mechanism: yes > [dmd at eco ~/build/imapfilter-0.9]$ make > cc -O -c -o account.o account.c > cc -O -c -o action.o action.c > cc -O -c -o auth.o auth.c > cc -O -c -o buffer.o buffer.c > In file included from buffer.c:4: > imapfilter.h:232: parse error before `*' > imapfilter.h:233: parse error before `FILE' > make: *** [buffer.o] Error 1 > Argh... You try all the combinations but there is always one that you miss and will cause trouble... Just add in line 4 of imapfilter.h: #include Sorry about this... ... always those header includes... PS. The attached patch does the job, too. -------------- next part -------------- --- imapfilter.h.orig 2003-08-06 18:17:06.000000000 +0300 +++ imapfilter.h 2003-08-07 21:34:51.000000000 +0300 @@ -1,6 +1,7 @@ #ifndef IMAPFILTER_H #define IMAPFILTER_H +#include #include "config.h" #include "account.h" From maillist at jg555.com Thu Aug 7 22:39:38 2003 From: maillist at jg555.com (Jim Gifford) Date: Thu, 7 Aug 2003 12:39:38 -0700 Subject: [imapfilter-devel] Imapfilter Problem Message-ID: <031001c35d1b$a3e06c40$3400a8c0@W2RZ8L4S02> I don't see anything wrong, but I keep getting this error message. imapfilter: warning: improper dir .imapfilter permissions imapfilter: warning: dir's mode should be 700 not 770 imapfilter: parse error in config file at row 19 imapfilter: closing socket; Bad file descriptor I have fixed the permissions error but the parse error I have no idea. My config is attached. -------------- next part -------------- A non-text attachment was scrubbed... Name: imapfilterrc Type: application/octet-stream Size: 2215 bytes Desc: not available URL: From lefcha at hellug.gr Thu Aug 7 23:13:53 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Thu, 7 Aug 2003 23:13:53 +0300 Subject: [imapfilter-devel] Imapfilter Problem In-Reply-To: <031001c35d1b$a3e06c40$3400a8c0@W2RZ8L4S02> References: <031001c35d1b$a3e06c40$3400a8c0@W2RZ8L4S02> Message-ID: <20030807201353.GA667@bsd> On Thu, Aug 07, 2003 at 12:39:38PM -0700, Jim Gifford wrote: > I don't see anything wrong, but I keep getting this error message. > > imapfilter: warning: improper dir .imapfilter permissions > imapfilter: warning: dir's mode should be 700 not 770 > imapfilter: parse error in config file at row 19 > imapfilter: closing socket; Bad file descriptor > > I have fixed the permissions error but the parse error I have no idea. > > My config is attached. > > [...] > > account account1 firewall:password at mail.jg555.com:143 > folder inbox INBOX > folder spam Spam > folder virus Virus > > account account2 firewall-support:password at mail.jg555.com:143 > folder inbox INBOX > folder spam Spam > folder virus Virus > > [...] > > job 7days spam,virus > > [...] Account, folder and filter alias are unique across the configuration file, ie. you cannot use the same folder alias twice. So the above would be written: account account1 firewall:password at mail.jg555.com:143 folder inbox1 INBOX folder spam1 Spam folder virus1 Virus account account2 firewall-support:password at mail.jg555.com:143 folder inbox2 INBOX folder spam2 Spam folder virus2 Virus ... job 7days spam1,spam2,virus1,virus2 ... PS. I know... it isn't the most efficient way... after v1.0 imapfilter would be benefited from a redesign of its configuration file, which should be made simpler, more flexible and more powerful. Some things can be accomplished nice and cleanly, but other look really ugly. From lefcha at hellug.gr Fri Aug 8 10:27:59 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Fri, 8 Aug 2003 10:27:59 +0300 Subject: [imapfilter-devel] IMAPFilter 0.9.1 Message-ID: <20030808072759.GA669@bsd> Hello, IMAPFilter version 0.9.1: http://imapfilter.hellug.gr/source/imapfilter-0.9.1.tar.gz http://imapfilter.hellug.gr/source/imapfilter-0.9.1.tar.gz.sig MD5 (imapfilter-0.9.1.tar.gz) = 0a3a95114edc048789da3cfcec39b9f5 http://imapfilter.hellug.gr/source/imapfilter-0.9.1.tar.bz2 http://imapfilter.hellug.gr/source/imapfilter-0.9.1.tar.bz2.sig MD5 (imapfilter-0.9.1.tar.bz2) = 4d57e0c5162821da07470ecab3f1f450 Changes: - Bug fixes related to compilation warnings/errors caused by missing header includes. - Minor bug fix concerning an uninitialized variable. From lefcha at hellug.gr Fri Aug 8 16:18:47 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Fri, 8 Aug 2003 16:18:47 +0300 Subject: [imapfilter-devel] IMAPFilter 0.9.2 Message-ID: <20030808131847.GA6525@linux> Hello, IMAPFilter version 0.9.2: http://imapfilter.hellug.gr/source/imapfilter-0.9.2.tar.gz http://imapfilter.hellug.gr/source/imapfilter-0.9.2.tar.gz.sig MD5 (imapfilter-0.9.2.tar.gz) = 2f694e16ac69303fa6e00e720ec26124 http://imapfilter.hellug.gr/source/imapfilter-0.9.2.tar.bz2 http://imapfilter.hellug.gr/source/imapfilter-0.9.2.tar.bz2.sig MD5 (imapfilter-0.9.2.tar.bz2) = 43f37dd6329f43d352d59bbbacbf1388 Changes: - Header includes additions, in order to build without warning/errors on systems that do not conform to IEEE Std 1003.1-2001 (POSIX.1). From chasep at cc.gatech.edu Sat Aug 30 05:36:52 2003 From: chasep at cc.gatech.edu (Chase) Date: Fri, 29 Aug 2003 22:36:52 -0400 Subject: [imapfilter-devel] Whitelist Feature Request Message-ID: <000b01c36e9f$9286f780$6400a8c0@Jake> You need a an ability to create a white list, basically, you have your rule definitions Filter foo Mask Mask Mask Action delete Filter bar Mask Mask Mask Action delete Job foo,bar myaccount A white list would be a group of definitions that are always evaluated first, if the email matches a rule in that group, then IMAPFILTER will stop processing on the email and just leave it alone, even if the email would also match every other definition. There are to ways you could indicate that a rule group is a white list, either with a keyword in the definitions Whitelist foobar Mask Mask Mask Action none Job foobar,foo,bar myaccount Or by marking it in the job line Job foobar*,foo,bar myaccount Or, you could always just make the first rule group listed be the white list group, and force user to have a whitelist defined (even if its empty). Whitelists are usually made based on email addresses so the majority of entries would be mask from "blah" But have the ability to make white list rules based off of subject and body and headers would be good too. Currently the only way to make a white list is to move your "white list" emails to another folder. This is not a good way for the users that don't organize their email into multiple folders, they have an inbox, and they have the trash that deleted mail is put into. Chase Peeler chasep at cc.gatech.edu Georgia Tech College of Computing From lefcha at hellug.gr Sat Aug 30 18:10:40 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Sat, 30 Aug 2003 18:10:40 +0300 Subject: [imapfilter-devel] Whitelist Feature Request In-Reply-To: <000b01c36e9f$9286f780$6400a8c0@Jake> References: <000b01c36e9f$9286f780$6400a8c0@Jake> Message-ID: <20030830151040.GA816@bsd> On Fri, Aug 29, 2003 at 10:36:52PM -0400, Chase wrote: > You need a an ability to create a white list, basically, you have your > rule definitions > > Filter foo > Mask > Mask > Mask > Action delete > > Filter bar > Mask > Mask > Mask > Action delete > > > Job foo,bar myaccount > > A white list would be a group of definitions that are always evaluated > first, if the email matches a rule in that group, then IMAPFILTER will > stop processing on the email and just leave it alone, even if the email > would also match every other definition. > > [...] > > Currently the only way to make a white list is to move your "white list" > emails to another folder. This is not a good way for the users that > don't organize their email into multiple folders, they have an inbox, > and they have the trash that deleted mail is put into. This would require that imapfilter stored the UID (Unique Identifier) of messages that matched the "whitelist" filter locally. So it would then have to, automatically, include in every other filter a hidden mask of the style: and not uid 16 and not uid 19 and not uid 22:26 ... Because of the fetching/storing/searching/sending of the "whitelist" messages' UID's, it would make things very complicated. Instead there is another solution to this problem, which currently works with imapfilter and with a few additions (ie. not much code) it could be made much more powerful (read the last paragraph about this) that just the "whitelist" capability: The IMAP4rev1 protocol specifies a special flag that can be set in each message in a mailbox. This flag, which is named "\Flagged", is intended to be used as a special/attention/urgent/etc. flag. Imapfilter can add or remove this flag from messages that match a filter, specifically with the "flag" action (see the imapfilterrc(5) manual page). So to accomplish what you describe you create the "whitelist" filter: filter whitelist or from foo subject blah ... action flag add flagged <---- MARK MESSAGE And then include in other filters something like: filter other unflagged <---- NOTE THE SEARCH CRITERIA ... action delete The IMAP4rev1 protocol also specifies that an IMAP server MAY (ie. it is optional) have support from custom message flags (except from the standard "\Seen", "\Answered", "\Flagged", "\Deleted", "\Draft", "\Recent" flags). If it is useful, I could add support for this feature and then one could set different, custom flags to messages such as "Whitelist", "Family", "Friends", "Work", etc. and of course search messages according to them. From yom at yom.be Sun Aug 31 01:57:29 2003 From: yom at yom.be (Yom) Date: Sun, 31 Aug 2003 00:57:29 +0200 Subject: [imapfilter-devel] Whitelist Feature Request In-Reply-To: <20030830151040.GA816@bsd> References: <000b01c36e9f$9286f780$6400a8c0@Jake> <20030830151040.GA816@bsd> Message-ID: <20030830225729.GI10586@baalberith> On Sat, Aug 30, 2003 at 06:10:40PM +0300, Lefteris Chatzibarbas wrote: > The IMAP4rev1 protocol specifies a special flag that can be set in each > message in a mailbox. This flag, which is named "\Flagged", is intended > to be used as a special/attention/urgent/etc. flag. Imapfilter can add > or remove this flag from messages that match a filter, specifically with > the "flag" action (see the imapfilterrc(5) manual page). But what if another program is using the same flag at the same moment ? From lefcha at hellug.gr Sun Aug 31 19:36:36 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Sun, 31 Aug 2003 19:36:36 +0300 Subject: [imapfilter-devel] Whitelist Feature Request In-Reply-To: <20030830225729.GI10586@baalberith> References: <000b01c36e9f$9286f780$6400a8c0@Jake> <20030830151040.GA816@bsd> <20030830225729.GI10586@baalberith> Message-ID: <20030831163636.GA1101@bsd> On Sun, Aug 31, 2003 at 12:57:29AM +0200, Yom wrote: > On Sat, Aug 30, 2003 at 06:10:40PM +0300, Lefteris Chatzibarbas wrote: > > The IMAP4rev1 protocol specifies a special flag that can be set in each > > message in a mailbox. This flag, which is named "\Flagged", is intended > > to be used as a special/attention/urgent/etc. flag. Imapfilter can add > > or remove this flag from messages that match a filter, specifically with > > the "flag" action (see the imapfilterrc(5) manual page). > > But what if another program is using the same flag at the same moment ? What do you mean by that? This "\Flagged" flag is not some kind of lock to be used by IMAP clients in order to indicate exclusive holding of a resource. All IMAP clients can, for example, read a message's flags and determine whether this specific flag is set. If you mean that you may have configured another IMAP client that uses this flag for some other purpose, that may conflict with the "whitelist" functionality already described, then the only solution is to add support to imapfilter for custom message flags. PS. This list is members posting only. Please, subscribe to the list so your messages won't be held for approval. From brilong at cisco.com Thu Sep 11 17:14:04 2003 From: brilong at cisco.com (Brian Long) Date: 11 Sep 2003 10:14:04 -0400 Subject: [imapfilter-devel] Using imapfilter to migrate IMAP folders Message-ID: <1063289644.18202.79.camel@brilong-lnx.cisco.com> Hello, I would like to know if there is a way for imapfilter to migrate 50+ IMAP folders from one IMAP server to another. I would like it to scan the source host, figure out all the folders and hierarchy, create the same folders and hierarchy on the destination host and move all the email. Is that possible? Thank you. /Brian/ -- Brian Long | | | Americas IT Hosting Sys Admin | .|||. .|||. Cisco Linux Developer | ..:|||||||:...:|||||||:.. Phone: (919) 392-7363 | C i s c o S y s t e m s From lefcha at hellug.gr Fri Sep 12 12:53:39 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Fri, 12 Sep 2003 12:53:39 +0300 Subject: [imapfilter-devel] Using imapfilter to migrate IMAP folders In-Reply-To: <1063289644.18202.79.camel@brilong-lnx.cisco.com> References: <1063289644.18202.79.camel@brilong-lnx.cisco.com> Message-ID: <20030912095339.GA1107@bsd> On Thu, Sep 11, 2003 at 10:14:04AM -0400, Brian Long wrote: > Hello, > > I would like to know if there is a way for imapfilter to migrate 50+ > IMAP folders from one IMAP server to another. I would like it to scan > the source host, figure out all the folders and hierarchy, create the > same folders and hierarchy on the destination host and move all the > email. > > Is that possible? Not exactly like you describe the migration procedure. You will have to manually specify all the mailboxes that reside in the source IMAP server (see the "folder all ..." line below). A possible configuration file to do the job: --BEGIN-- account src user:pass at server.src folder all mbox1,mbox2,foo/bar,foo/qux account dst user:pass at server.dst filter migrate action rcopy dst $_ job migrate all --END-- You could also do "rmove" instead of "rcopy", but "rcopy" and then "delete" is the safer solution (if all have gone well you then run a "delete" filter through all the mailboxes of the source IMAP server). NOTE: You MUST apply the attached patch against imapfilter 0.9.2 to do rcopy/rmove with the default variable "$_". I will release 0.9.3 soon with this correction included. Patch like this: tar zxf imapfilter-0.9.2.tar.gz patch < patch-0.9.2-1 -------------- next part -------------- diff -ruN imapfilter-0.9.2.orig/action.c imapfilter-0.9.2/action.c --- imapfilter-0.9.2.orig/action.c Fri Aug 8 15:54:48 2003 +++ imapfilter-0.9.2/action.c Fri Sep 12 12:32:36 2003 @@ -244,6 +244,7 @@ m = mcp = xstrdup(mesgs); xstrncpy(dm[1], destmbox, MBOX_NAME_LEN - 1); + default_variables(mbox, dm[1]); current_date(dm[1]); tok = strtok_r(m, " ", &m); From dmd at 3e.org Fri Sep 12 16:05:52 2003 From: dmd at 3e.org (Daniel M. Drucker) Date: Fri, 12 Sep 2003 09:05:52 -0400 Subject: [imapfilter-devel] Re: Using imapfilter to migrate IMAP folders References: <1063289644.18202.79.camel@brilong-lnx.cisco.com> <20030912095339.GA1107@bsd> Message-ID: <002b01c3792e$99753e00$23299ed8@udon> To migrate imap folders from one host to another I would recommend this: http://www.jplanglois.com/products/imapcp/ From brilong at cisco.com Fri Sep 12 15:51:33 2003 From: brilong at cisco.com (Brian Long) Date: 12 Sep 2003 08:51:33 -0400 Subject: [imapfilter-devel] Using imapfilter to migrate IMAP folders In-Reply-To: <20030912095339.GA1107@bsd> References: <1063289644.18202.79.camel@brilong-lnx.cisco.com> <20030912095339.GA1107@bsd> Message-ID: <1063371093.21017.34.camel@brilong-lnx.cisco.com> Lefteris, Thanks for your response. The user I was trying to migrate is a Cisco IOS developer and he was looking at your code. He feels the following is true and we were not able to migrate his mail using imapfilter. --------- It is written to assume that if it does a socket receive that it will get an entire message. Unfortunately it does not. So for example, if a server response message crosses to socket read()'s it will not recognize the response. The same is true for socket write()'s. It assumed that if it did a write of bytes that bytes were gauranteed to have been sent. This is not true for stream sockets. The write issue was easy to solve, just put the write into a while loop. The read issue is much harder to fix. I've looked at the source some and I'm not sure what the right way, nor the easy way, is to fix it... --------- /Brian/ -- Brian Long | | | Americas IT Hosting Sys Admin | .|||. .|||. Cisco Linux Developer | ..:|||||||:...:|||||||:.. Phone: (919) 392-7363 | C i s c o S y s t e m s From lefcha at hellug.gr Fri Sep 12 18:57:10 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Fri, 12 Sep 2003 18:57:10 +0300 Subject: [imapfilter-devel] Using imapfilter to migrate IMAP folders In-Reply-To: <1063371093.21017.34.camel@brilong-lnx.cisco.com> References: <1063289644.18202.79.camel@brilong-lnx.cisco.com> <20030912095339.GA1107@bsd> <1063371093.21017.34.camel@brilong-lnx.cisco.com> Message-ID: <20030912155710.GA620@bsd> On Fri, Sep 12, 2003 at 08:51:33AM -0400, Brian Long wrote: > Lefteris, > > Thanks for your response. The user I was trying to migrate is a Cisco > IOS developer and he was looking at your code. He feels the following > is true and we were not able to migrate his mail using imapfilter. > > --------- > It is written to assume that if it does a socket receive > that it will get an entire message. Unfortunately it does > not. So for example, if a server response message crosses > to socket read()'s it will not recognize the response. > > The same is true for socket write()'s. It assumed that if > it did a write of bytes that bytes were gauranteed > to have been sent. This is not true for stream sockets. > The write issue was easy to solve, just put the write into > a while loop. The read issue is much harder to fix. > I've looked at the source some and I'm not sure what the > right way, nor the easy way, is to fix it... > --------- Can you supply me with more information on how exactly imapfilter fails to move the messages between the IMAP servers? Details on what exactly happened during rcopy/rmove or logs produced by a built of imapfilter with the DEBUG option enabled would be useful. PS. I don't know if it is relevant to the problem, but some particular IMAP server, does not return the correct size of a message, and it causes imapfilter and other IMAP4rev1 compliant mail clients, to fail when doing things like fetching of a message... From j-a-n at gmx.de Mon Sep 22 09:30:39 2003 From: j-a-n at gmx.de (jan) Date: Mon, 22 Sep 2003 08:30:39 +0200 Subject: [imapfilter-devel] filter by attachement Message-ID: <3F6E970F.7000609@gmx.de> hi first of all: imapfilter is a great tool. I'm glad that something useful existst. i have a little question: is there a possibility to filter mails depending on the existence or name of an attachement? and if not, how big is my chance finding it in one of the next versions? regards jan From lefcha at hellug.gr Wed Sep 24 16:05:02 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Wed, 24 Sep 2003 16:05:02 +0300 Subject: [imapfilter-devel] filter by attachement In-Reply-To: <3F6E970F.7000609@gmx.de> References: <3F6E970F.7000609@gmx.de> Message-ID: <20030924130502.GA15675@linux> On Mon, Sep 22, 2003 at 08:30:39AM +0200, jan wrote: > i have a little question: is there a possibility to filter mails > depending on the existence or name of an attachement? Searching the "Content-Disposition" header (described in RFC 2183) would make sense, by using "mask header" or "mask body". Unfortunately it seems IMAP4rev1 servers do not find this header when searching in the message's headers, and ignore it when searching in the body of the message. I don't if there are any servers that handle this properly. You could always try searching and see if it works. > and if not, how big is my chance finding it in one of the next > versions? Not much. As described above, the problem is a limitation/incorrect behaviour of the servers. From maillist at jg555.com Fri Sep 26 19:31:25 2003 From: maillist at jg555.com (Jim Gifford) Date: Fri, 26 Sep 2003 09:31:25 -0700 Subject: [imapfilter-devel] Login Problem Message-ID: <004601c3844b$a20276f0$3400a8c0@W2RZ8L4S02> Imapfilter doesn't seem to login. I made some changes to my server. Any suggestions. Cone mail works file, I just can't use imapfilter Connected to mail.jg555.com. S: * OK [CAPABILITY IMAP4rev1 NAMESPACE AUTH=CRAM-MD5 AUTH=CRAM-SHA1 CHILDREN IDLE QUOTA SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES UIDPLUS STARTTLS LOGINDISABLED] Courier-IMAP ready. Copyright 1998-2003 Double Precision, Inc. See COPYING for distribution information. C: 00000000 CAPABILITY S: 00000000 OK CAPABILITY completed C: 00000001 STARTTLS S: 00000001 OK Begin SSL/TLS negotiation now. SSL/TLS handshake completed: TLSv1/SSLv3 with cipher AES256-SHA (256/256 bits). Server certificate subject: /C=US/ST=CA/L=Fontana/O=Courier Mail Server/OU=Automatically-generated IMAP SSL key/CN=mail/emailAddress=postmaster at jg555.com Server certificate issuer: /C=US/ST=CA/L=Fontana/O=Courier Mail Server/OU=Automatically-generated IMAP SSL key/CN=mail/emailAddress=postmaster at jg555.com Server key fingerprint: B2:9E:7F:02:99:E4:DD:94:53:C3:A1:30:DF:78:48:22 C: 00000002 CAPABILITY S: 00000002 OK CAPABILITY completed Enter password for jim at mail.jg555.com: C: 00000003 AUTHENTICATE CRAM-MD5 S: 00000003 NO Login failed. imapfilter: username jim or password rejected at mail.jg555.com From lefcha at hellug.gr Sat Sep 27 03:47:09 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Sat, 27 Sep 2003 03:47:09 +0300 Subject: [imapfilter-devel] Login Problem In-Reply-To: <004601c3844b$a20276f0$3400a8c0@W2RZ8L4S02> References: <004601c3844b$a20276f0$3400a8c0@W2RZ8L4S02> Message-ID: <20030927004708.GA890@bsd> On Fri, Sep 26, 2003 at 09:31:25AM -0700, Jim Gifford wrote: > Imapfilter doesn't seem to login. I made some changes to my server. Any > suggestions. Cone mail works file, I just can't use imapfilter > > Connected to mail.jg555.com. > S: * OK [CAPABILITY IMAP4rev1 NAMESPACE AUTH=CRAM-MD5 AUTH=CRAM-SHA1 > CHILDREN IDLE QUOTA SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES UIDPLUS > STARTTLS LOGINDISABLED] Courier-IMAP ready. Copyright 1998-2003 Double > Precision, Inc. See COPYING for distribution information. > C: 00000000 CAPABILITY > S: 00000000 OK CAPABILITY completed > C: 00000001 STARTTLS > S: 00000001 OK Begin SSL/TLS negotiation now. > SSL/TLS handshake completed: TLSv1/SSLv3 with cipher AES256-SHA (256/256 > bits). > Server certificate subject: /C=US/ST=CA/L=Fontana/O=Courier Mail > Server/OU=Automatically-generated IMAP SSL > key/CN=mail/emailAddress=postmaster at jg555.com > Server certificate issuer: /C=US/ST=CA/L=Fontana/O=Courier Mail > Server/OU=Automatically-generated IMAP SSL > key/CN=mail/emailAddress=postmaster at jg555.com > Server key fingerprint: B2:9E:7F:02:99:E4:DD:94:53:C3:A1:30:DF:78:48:22 > C: 00000002 CAPABILITY > S: 00000002 OK CAPABILITY completed > Enter password for jim at mail.jg555.com: > C: 00000003 AUTHENTICATE CRAM-MD5 > S: 00000003 NO Login failed. > imapfilter: username jim or password rejected at mail.jg555.com If you are sure you have not supplied the wrong password, you can try disabling CRAM-MD5 authentication. You can do this before compiling, with something like: $ ./config -o cram=no $ make Do other IMAP clients authenticate without problems _using CRAM-MD5_ to this specific mail server? From maillist at jg555.com Sat Sep 27 07:34:51 2003 From: maillist at jg555.com (Jim Gifford) Date: Fri, 26 Sep 2003 21:34:51 -0700 Subject: [imapfilter-devel] Login Problem References: <004601c3844b$a20276f0$3400a8c0@W2RZ8L4S02> <20030927004708.GA890@bsd> Message-ID: <018a01c384b0$b260ba60$3400a8c0@W2RZ8L4S02> Outlook express and cone work fine. Disabling CRAM did the trick. Thank you. From lefcha at hellug.gr Sat Sep 27 12:02:22 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Sat, 27 Sep 2003 12:02:22 +0300 Subject: [imapfilter-devel] Login Problem In-Reply-To: <018a01c384b0$b260ba60$3400a8c0@W2RZ8L4S02> References: <004601c3844b$a20276f0$3400a8c0@W2RZ8L4S02> <20030927004708.GA890@bsd> <018a01c384b0$b260ba60$3400a8c0@W2RZ8L4S02> Message-ID: <20030927090222.GA630@bsd> On Fri, Sep 26, 2003 at 09:34:51PM -0700, Jim Gifford wrote: > Outlook express and cone work fine. > > Disabling CRAM did the trick. Thank you. Then it seems it is a bug imapfilter.Could you please compile imapfilter with DEBUG and CRAM-MD5 enabled and send me the results? $ ./config -o debug=yes -o cram=yes $ make $ ./imapfilter 2>/tmp/IMAPFILTER.DEBUG Thanks From maillist at jg555.com Sat Sep 27 21:09:04 2003 From: maillist at jg555.com (Jim Gifford) Date: Sat, 27 Sep 2003 11:09:04 -0700 Subject: [imapfilter-devel] Login Problem References: <004601c3844b$a20276f0$3400a8c0@W2RZ8L4S02> <20030927004708.GA890@bsd> <018a01c384b0$b260ba60$3400a8c0@W2RZ8L4S02> <20030927090222.GA630@bsd> Message-ID: <040001c38522$70e628a0$3400a8c0@W2RZ8L4S02> Here you go. ----- Original Message ----- From: "Lefteris Chatzibarbas" To: "Jim Gifford" Cc: "Imapfilter" Sent: Saturday, September 27, 2003 2:02 AM Subject: Re: [imapfilter-devel] Login Problem > On Fri, Sep 26, 2003 at 09:34:51PM -0700, Jim Gifford wrote: > > Outlook express and cone work fine. > > > > Disabling CRAM did the trick. Thank you. > > Then it seems it is a bug imapfilter.Could you please compile imapfilter > with DEBUG and CRAM-MD5 enabled and send me the results? > > $ ./config -o debug=yes -o cram=yes > $ make > $ ./imapfilter 2>/tmp/IMAPFILTER.DEBUG > > Thanks > > -------------- next part -------------- A non-text attachment was scrubbed... Name: IMAPFILTER.DEBUG Type: application/octet-stream Size: 2535 bytes Desc: not available URL: From lefcha at hellug.gr Sat Sep 27 22:43:32 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Sat, 27 Sep 2003 22:43:32 +0300 Subject: [imapfilter-devel] Login Problem In-Reply-To: <040001c38522$70e628a0$3400a8c0@W2RZ8L4S02> References: <004601c3844b$a20276f0$3400a8c0@W2RZ8L4S02> <20030927004708.GA890@bsd> <018a01c384b0$b260ba60$3400a8c0@W2RZ8L4S02> <20030927090222.GA630@bsd> <040001c38522$70e628a0$3400a8c0@W2RZ8L4S02> Message-ID: <20030927194332.GA2127@linux> On Sat, Sep 27, 2003 at 11:09:04AM -0700, Jim Gifford wrote: > Here you go. > > debug: sending command (primary): > > 00000004 AUTHENTICATE CRAM-MD5 > > debug: getting response (primary): > > + PEQ2REE5QTI0RkZGNUE0RUJGMDczMkIxODNGMTQ1Qjg4QHNlcnZlcj4= > > debug: sending command (primary): > > amltIGIwNGFlZTlhMDIwY2ExMTA4YzNhYzA3NjRiOTQ1OWVk > > debug: getting response (primary): > > 00000004 NO Login failed. > > imapfilter: username jim or password rejected at mail.jg555.com I can't really tell what is the problem (imapfilter failing to send the encrypted username or password correctly, misconfigured server, etc.). According to IMAP4rev1 protocol RFC 3501: 6.2.2. AUTHENTICATE Command Result: OK - authenticate completed, now in authenticated state NO - authenticate failure: unsupported authentication mechanism, credentials rejected BAD - command unknown or arguments invalid, authentication exchange cancelled If it isn't a burden for you, could you please try checking a mailbox using fetchmail with something like: $ fetchmail -v -c mail.jg555.com -u jim --auth cram-md5 ... and send me the output? Thanks From lefcha at hellug.gr Sun Sep 28 11:49:29 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Sun, 28 Sep 2003 11:49:29 +0300 Subject: [imapfilter-devel] IMAPFilter 0.9.3 Message-ID: <20030928084928.GA1216@bsd> IMAPFilter version 0.9.3: http://imapfilter.hellug.gr/source/imapfilter-0.9.3.tar.gz http://imapfilter.hellug.gr/source/imapfilter-0.9.3.tar.gz.sig MD5 (imapfilter-0.9.3.tar.gz) = 1a4c43bdd8bb7fb9481e6d66b6289dba http://imapfilter.hellug.gr/source/imapfilter-0.9.3.tar.bz2 http://imapfilter.hellug.gr/source/imapfilter-0.9.3.tar.bz2.sig MD5 (imapfilter-0.9.3.tar.bz2) = f4b49eafd29784ecb51392819dc4500c Changes: - Correction so the default variable $_ gets substituted when doing rcopy/rmove. From mikael.nystrom at tietoenator.com Tue Sep 30 10:18:06 2003 From: mikael.nystrom at tietoenator.com (=?ISO-8859-1?Q?Mikael_Nystr=F6m?=) Date: Tue, 30 Sep 2003 09:18:06 +0200 (CEST) Subject: [imapfilter-devel] FETCH error Message-ID: <20030930090141.P98669@e3t67sf9.rangbe.fr> Hi, When I run imapfilter, I get the following error when doing FETCH HEADER. The respone to the FETCH HEADER is {805}. Any suggestions what the cause might be? //Micke myhost ~$ imapfilter -v Enter master passphrase: Connected to lotus.yxa.se. S: * OK Microsoft Exchange 2000 IMAP4rev1 server version 6.0.6389.0 (lotus.eu.olut.com) ready. C: 00000000 CAPABILITY S: 00000000 OK CAPABILITY completed. C: 00000001 LOGIN "ue/bruno/kalle.anka" "losen" S: 00000001 OK LOGIN completed. C: 00000002 STATUS "INBOX" (MESSAGES RECENT UNSEEN) S: 00000002 OK STATUS completed. 2 messages, 0 recent, 1 unseen, in mailbox "INBOX". C: 00000003 SELECT "INBOX" S: 00000003 OK [READ-WRITE] SELECT completed. C: 00000004 SEARCH ALL S: 00000004 OK SEARCH completed. 2 messages moved from "INBOX" to mailbox "INBOX" at account xy. SSL/TLS handshake completed: TLSv1/SSLv3 with cipher DES-CBC3-SHA (168/168 bits). Server certificate subject: /C=NO/ST=N/A/L=\xC4orm\xF6/O=olut/OU=PC/PD/CN=Kalle Anka\xF6m/emailAddress=roine at test.yxa.no Server certificate issuer: /C=NO/ST=N/A/L=\xC4orm\xF6/O=olut/OU=PC/PD/CN=Kalle Anka\xF6m/emailAddress=roine at test.yxa.no Server key fingerprint: 34:34:34:34:34:34:34:34:34:34:34:34:34:34:34:34 s: * OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS AUTH=PLAIN AUTH=LOGIN] xy.test.yxa.no IMAP4rev1 2003.338 at Tue, 30 Sep 2003 08:58:10 +0200 (CEST) c: 00000005 CAPABILITY s: 00000005 OK CAPABILITY completed c: 00000006 LOGIN "roine" "losen2" s: 00000006 OK [CAPABILITY IMAP4REV1 IDLE NAMESPACE MAILBOX-REFERRALS BINARY UNSELECT SCAN SORT THREAD=REFERENCES THREAD=ORDEREDSUBJECT MULTIAPPEND] User roine authenticated c: 00000007 STATUS "INBOX" (MESSAGES) s: 00000007 OK STATUS completed C: 00000008 FETCH 1 RFC822.SIZE S: 00000008 OK FETCH completed. c: 00000009 APPEND "INBOX" {1983} C: 0000000A FETCH 1 RFC822.HEADER imapfilter: writing data; error:00000000:lib(0):func(0):reason(0) myhost ~$ From lefcha at hellug.gr Thu Oct 2 12:38:18 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Thu, 2 Oct 2003 12:38:18 +0300 Subject: [imapfilter-devel] FETCH error In-Reply-To: <20030930090141.P98669@e3t67sf9.rangbe.fr> References: <20030930090141.P98669@e3t67sf9.rangbe.fr> Message-ID: <20031002093818.GA1662@bsd> On Tue, Sep 30, 2003 at 09:18:06AM +0200, Mikael Nystr?m wrote: > > Hi, > > When I run imapfilter, I get the following error when doing FETCH > HEADER. The respone to the FETCH HEADER is {805}. > Any suggestions what the cause might be? > > [...] > > C: 00000008 FETCH 1 RFC822.SIZE > S: 00000008 OK FETCH completed. > c: 00000009 APPEND "INBOX" {1983} > C: 0000000A FETCH 1 RFC822.HEADER > imapfilter: writing data; error:00000000:lib(0):func(0):reason(0) Ok, I reproduced the problem. Apply the attached patch and tell me if it corrects the problem. You can do this, with something like: $ tar -zxf imapfilter-0.9.3.tar.gz $ patch -p0 < patch-0.9.3-1 $ cd imapfilter-0.9.3 $ make -------------- next part -------------- diff -ruN imapfilter-0.9.3.orig/imap.c imapfilter-0.9.3/imap.c --- imapfilter-0.9.3.orig/imap.c Sat Sep 27 23:11:19 2003 +++ imapfilter-0.9.3/imap.c Thu Oct 2 12:24:38 2003 @@ -10,8 +10,8 @@ buffer_t obuf; /* Output buffer. */ -static unsigned int tag = 0; /* Every IMAP command is prefixed with a - * unique [:alnum:] string. */ +static unsigned int tag = 0x10000000; /* Every IMAP command is prefixed with a + * unique [:alnum:] string. */ unsigned int send_command(conn_t * conn, char *cmd); @@ -31,6 +31,9 @@ verbose("%s: %s", (conn == &connpri ? "C" : "c"), cmd); socket_write(conn, cmd); + + if (tag < 0x10000000) + tag += 0x10000000; return tag++; } From lefcha at hellug.gr Thu Oct 2 13:43:07 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Thu, 2 Oct 2003 13:43:07 +0300 Subject: [imapfilter-devel] (no subject) In-Reply-To: <004601c3844b$a20276f0$3400a8c0@W2RZ8L4S02> References: <004601c3844b$a20276f0$3400a8c0@W2RZ8L4S02> Message-ID: <20031002104307.GA2359@bsd> On Fri, Sep 26, 2003 at 09:31:25AM -0700, Jim Gifford wrote: > Imapfilter doesn't seem to login. I made some changes to my server. Any > suggestions. Cone mail works file, I just can't use imapfilter > > Connected to mail.jg555.com. > S: * OK [CAPABILITY IMAP4rev1 NAMESPACE AUTH=CRAM-MD5 AUTH=CRAM-SHA1 > CHILDREN IDLE QUOTA SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES UIDPLUS > STARTTLS LOGINDISABLED] Courier-IMAP ready. Copyright 1998-2003 Double > Precision, Inc. See COPYING for distribution information. > C: 00000000 CAPABILITY > S: 00000000 OK CAPABILITY completed > C: 00000001 STARTTLS > S: 00000001 OK Begin SSL/TLS negotiation now. > SSL/TLS handshake completed: TLSv1/SSLv3 with cipher AES256-SHA (256/256 > bits). > Server certificate subject: /C=US/ST=CA/L=Fontana/O=Courier Mail > Server/OU=Automatically-generated IMAP SSL > key/CN=mail/emailAddress=postmaster at jg555.com > Server certificate issuer: /C=US/ST=CA/L=Fontana/O=Courier Mail > Server/OU=Automatically-generated IMAP SSL > key/CN=mail/emailAddress=postmaster at jg555.com > Server key fingerprint: B2:9E:7F:02:99:E4:DD:94:53:C3:A1:30:DF:78:48:22 > C: 00000002 CAPABILITY > S: 00000002 OK CAPABILITY completed > Enter password for jim at mail.jg555.com: > C: 00000003 AUTHENTICATE CRAM-MD5 > S: 00000003 NO Login failed. > imapfilter: username jim or password rejected at mail.jg555.com For the record (ie. list archives), it was a server configuration problem. From lefcha at hellug.gr Thu Oct 2 14:30:06 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Thu, 2 Oct 2003 14:30:06 +0300 Subject: [imapfilter-devel] IMAPFilter 0.9.4 Message-ID: <20031002113006.GA3369@bsd> IMAPFilter version 0.9.4: http://imapfilter.hellug.gr/source/imapfilter-0.9.4.tar.gz http://imapfilter.hellug.gr/source/imapfilter-0.9.4.tar.gz.sig MD5 (imapfilter-0.9.4.tar.gz) = a861d2d8fb647e593b88fc5d033cbcf4 http://imapfilter.hellug.gr/source/imapfilter-0.9.4.tar.bz2 http://imapfilter.hellug.gr/source/imapfilter-0.9.4.tar.bz2.sig MD5 (imapfilter-0.9.4.tar.bz2) = 3ea63d41a3c2f786982e4e86cccd3ede Changes: - Fix of a bug, that was causing rcopy/rmove failure, while fetching a message's header. From maillist at jg555.com Mon Oct 6 21:56:48 2003 From: maillist at jg555.com (Jim Gifford) Date: Mon, 6 Oct 2003 11:56:48 -0700 Subject: [imapfilter-devel] Feature Requests Message-ID: <05cd01c38c3b$990fbb50$3400a8c0@W2RZ8L4S02> I have two feature requests. # 1 - Allow the useage of system environment. I give my users access to the imapfilter.log, I want to be able to use $HOME/log/imapfilter.log # 2 - I want someway to synchronize the password with /etc/passwd or /etc/shadow. From lefcha at hellug.gr Thu Oct 9 13:05:06 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Thu, 9 Oct 2003 13:05:06 +0300 Subject: [imapfilter-devel] Feature Requests In-Reply-To: <05cd01c38c3b$990fbb50$3400a8c0@W2RZ8L4S02> References: <05cd01c38c3b$990fbb50$3400a8c0@W2RZ8L4S02> Message-ID: <20031009100506.GA1926@linux> On Mon, Oct 06, 2003 at 11:56:48AM -0700, Jim Gifford wrote: > I have two feature requests. > > # 1 - Allow the useage of system environment. > > I give my users access to the imapfilter.log, I want to be able to > use $HOME/log/imapfilter.log I will look into it. For now I think $ imapfilter -l $HOME/log/imapfilter.log ... can do the job. Or not... > > # 2 - I want someway to synchronize the password with /etc/passwd or > /etc/shadow. What do you mean by this? Do you want imapfilter to use the users' passwords stored in /etc/shadow? There are no passwords stored in these files, just an encrypted password that can be used only during authentication. So therefore you cannot extract (or synchronize) passwords (well, only using brute force attack with an active password cracking tool). From reitmayr at ims.tuwien.ac.at Wed Oct 29 12:20:42 2003 From: reitmayr at ims.tuwien.ac.at (Gerhard Reitmayr) Date: Wed, 29 Oct 2003 11:20:42 +0100 Subject: [imapfilter-devel] multiple jobs not executed in daemon mode Message-ID: <3F9F947A.4090801@ims.tuwien.ac.at> Hi, I'm using imapfilter 0.9.4 under linux and its working great so far. However I recently added two more jobs besides my first one that work on other folders than the INBOX. These jobs only get executed when I start imapfilter once, but after that they are not processed. There are no log file entries and the mails are not moved. The relevant pieces of my configuration file look like this : # Options daemon = 300 logfile = /home/reitmayr/.imapfilter.log set timeout = 120 expunge = no errors = yes account ims xxxxx at xxxxxx.ac.at ssl2 folder inboxIMS INBOX folder cvslists dev/coin-cvs,opentracker/cvs,studierstube/cvs #various filters for INBOX filter spam or subject "[SPAM?]" action move spam # a filter for the alias cvslists filter removeold and seen older 30 action move Trash job spam inboxIMS job removeold cvslists the first job is executed every 5 minutes, but the second one only when I start imapfilter. I would like to know, if I'm doing something obviously wrong in my configuration, or if there is any other problem that I might be seeing ?? thanks, Gerhard Reitmayr -- Gerhard Reitmayr IMS http://www.ims.tuwien.ac.at/ From lefcha at hellug.gr Sat Nov 1 11:53:29 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Sat, 1 Nov 2003 11:53:29 +0200 Subject: [imapfilter-devel] multiple jobs not executed in daemon mode In-Reply-To: <3F9F947A.4090801@ims.tuwien.ac.at> References: <3F9F947A.4090801@ims.tuwien.ac.at> Message-ID: <20031101095329.GA1248@bsd> On Wed, Oct 29, 2003 at 11:20:42AM +0100, Gerhard Reitmayr wrote: > Hi, > > I'm using imapfilter 0.9.4 under linux and its working great so far. > However I recently added two more jobs besides my first one that work on > other folders than the INBOX. These jobs only get executed when I start > imapfilter once, but after that they are not processed. There are no log > file entries and the mails are not moved. > > [...] > > the first job is executed every 5 minutes, but the second one only when > I start imapfilter. I would like to know, if I'm doing something > obviously wrong in my configuration, or if there is any other problem > that I might be seeing ?? Can you try recompiling imapfilter with DEBUG enabled: $ tar zxf imapfilter-0.9.4.tar.gz $ cd imapfilter-0.9.4 $ ./config -o debug=yes $ make ... and then run it with something like: $ ./imapfilter -d 300 2>/tmp/imapfilter.err Let it execute 2-3 times and then send the imapfilter.err output file or a link to it (do not forget to remove any sensitive information). From lefcha at hellug.gr Sat Nov 8 16:33:41 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Sat, 8 Nov 2003 16:33:41 +0200 Subject: [imapfilter-devel] multiple jobs not executed in daemon mode In-Reply-To: <20031101095329.GA1248@bsd> References: <3F9F947A.4090801@ims.tuwien.ac.at> <20031101095329.GA1248@bsd> Message-ID: <20031108143341.GA17464@bsd> On Sat, Nov 01, 2003 at 11:53:29AM +0200, Lefteris Chatzibarbas wrote: > On Wed, Oct 29, 2003 at 11:20:42AM +0100, Gerhard Reitmayr wrote: > > Hi, > > > > I'm using imapfilter 0.9.4 under linux and its working great so far. > > However I recently added two more jobs besides my first one that work on > > other folders than the INBOX. These jobs only get executed when I start > > imapfilter once, but after that they are not processed. There are no log > > file entries and the mails are not moved. > > > > [...] > > > > the first job is executed every 5 minutes, but the second one only when > > I start imapfilter. I would like to know, if I'm doing something > > obviously wrong in my configuration, or if there is any other problem > > that I might be seeing ?? The attached patch should correct this problem (which we traced with Gerhard Reitmayr). Apply against version 0.9.4 and recompile, like this: $ tar zxf imapfilter-0.9.4.tar.gz $ zcat imapfilter-0.9.4-1.gz | patch -p0 $ cd imapfilter-0.9.4 $ make PS. ... version 0.9.5 with this bug fix coming soon. -------------- next part -------------- A non-text attachment was scrubbed... Name: imapfilter-0.9.4-1.gz Type: application/x-gunzip Size: 1890 bytes Desc: not available URL: From reitmayr at ims.tuwien.ac.at Mon Nov 10 13:03:53 2003 From: reitmayr at ims.tuwien.ac.at (Gerhard Reitmayr) Date: Mon, 10 Nov 2003 12:03:53 +0100 Subject: [imapfilter-devel] multiple jobs not executed in daemon mode In-Reply-To: <20031108143341.GA17464@bsd> References: <3F9F947A.4090801@ims.tuwien.ac.at> <20031101095329.GA1248@bsd> <20031108143341.GA17464@bsd> Message-ID: <3FAF7099.8090805@ims.tuwien.ac.at> Hi, It's working fine now. Thanks for the quick fix ! bye, Gerhard Reitmayr Lefteris Chatzibarbas wrote: > > > The attached patch should correct this problem (which we traced with > Gerhard Reitmayr). > > Apply against version 0.9.4 and recompile, like this: > > $ tar zxf imapfilter-0.9.4.tar.gz > $ zcat imapfilter-0.9.4-1.gz | patch -p0 > $ cd imapfilter-0.9.4 > $ make > > > PS. ... version 0.9.5 with this bug fix coming soon. > -- Gerhard Reitmayr IMS http://www.ims.tuwien.ac.at/ From david at segonds.org Tue Nov 11 20:11:52 2003 From: david at segonds.org (David Segonds) Date: Tue, 11 Nov 2003 12:11:52 -0600 Subject: [imapfilter-devel] Bug report: "no candidate passwords for encryption found" error message when port is used for an account Message-ID: <20031111181152.GA5132@segonds.net> Hello, Let me start by saying that imapfilter is a great software. I encountered a bug in 0.9.4. If you use a line such as the following in .imapfilterrc, "imapfilter -p" is returning the error message: "no candidate passwords for encryption found" account account1 username at imap.domain.com:143 If I remove the port information for the account, "imapfilter -p" behaves as expected. Sincerely, David. -- David Segonds - PGP 0x1F7A3E7A -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 232 bytes Desc: not available URL: From j-a-n at gmx.de Thu Nov 13 13:37:54 2003 From: j-a-n at gmx.de (jan) Date: Thu, 13 Nov 2003 12:37:54 +0100 Subject: [imapfilter-devel] error: another imapfilter is running with pid 7848 Message-ID: <3FB36D12.3090409@gmx.de> hello i don't know how you are using imapfilter. i have integrated it in my .forward file on the mailserver. i'm very glad about this tool and it does it's task perfectly. but sometimes, when a mail is arriving, the following error raises: Command output: imapfilter: another imapfilter is running with pid 7848 the error ist not the problem, but an errormessate is sended to the sender. but the mail still arrives. how can i suppress this mail, or this errormessage, or better, why can't imapfilter run twice? thanx for help regards jan honsberg From perw at gbg.dimension.se Fri Nov 14 16:15:47 2003 From: perw at gbg.dimension.se (Per Westerlund) Date: Fri, 14 Nov 2003 15:15:47 +0100 Subject: [imapfilter-devel] Would like longer/dynamic KEY_LEN or better diagnostic Message-ID: <3FB4E393.2060507@gbg.dimension.se> Environment: bash-2.03$ uname -a SunOS xxxxxx 5.8 Generic_108528-09 sun4u sparc SUNW,Ultra-4 bash-2.03$ /usr/local/bin/imapfilter -V IMAPFilter 0.9.4, OpenSSL 0x0090607f Problem: I got this error from imapfilter, and had to look a while to find the problem: imapfilter: parse error in config file at row 237 Adding debug, this is what appeared: debug: FILTER: 'Week-Month-XXXXXX-YYYYY-Antivir' AND debug: MASK: 'BEFORE 07-Nov-2003' debug: ACTION: 3 '' 'Month/XXXXXX YYYYY/Antivirus' 0 '' imapfilter: parse error in config file at row 237 (At that time, I did not see the error) I added more printouts, and found that the problem is that KEY_LEN is shorter that the length of my identifier. (This is in a machine-generated script, that move mailbox content based on age). Request: 1) Better warning or error when KEY_LEN is to short. The "error" in the config file can be difficult to catch, and it is even possible that the wrong actions are performed! 2) Perhaps increase or make dynamic the key length, for those of us that usr machine-generated scripts (I can increase KEY_LEN myself, but it is better if it is in the general distribution). /Per Westerlund From perw at gbg.dimension.se Fri Nov 14 17:17:24 2003 From: perw at gbg.dimension.se (Per Westerlund) Date: Fri, 14 Nov 2003 16:17:24 +0100 Subject: [imapfilter-devel] Request for external "mask" Message-ID: <3FB4F204.2080805@gbg.dimension.se> Problem: Sometimes the decision whether to move a message to the "log" folder or to keep it and mark it as "important" cannot be made using only fixed strings in your matching expressions. It is not enough even to be able to use regular expressions, sometimes a more thorough parsing of the content of a message is required. Proposal: For those occasions when you need better decision support tools, let us be able to use an external program. Why not like this: [mask] [or|and] [not] external [header] 'mask', 'or', 'and' and 'not' work as for all other filter entries. IMAPFilter runs this filter entry by starting with no arguments, and connecting a pipe to it. Through this pipe is then fed the body of the message (normally) or, if the optional argument 'header' is supplied, the header and the body. The external program signals success (condition fulfilled) by exit code 0, everything else signals failure (condition not met). Implementation note: It is important that the filter entries use "short circuiting" so that an external program placed last in the list is not queried if the total condition has alerady failed. A timeout for the external program should be implemented. Watch out for SIGPIPE or similar problems it the external program exits prematurely. /Per Westerlund From lefcha at hellug.gr Fri Nov 14 21:10:16 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Fri, 14 Nov 2003 21:10:16 +0200 Subject: [imapfilter-devel] error: another imapfilter is running with pid 7848 In-Reply-To: <3FB36D12.3090409@gmx.de> References: <3FB36D12.3090409@gmx.de> Message-ID: <20031114191016.GB8851@linux> On Thu, Nov 13, 2003 at 12:37:54PM +0100, jan wrote: > hello > > i don't know how you are using imapfilter. i have integrated it in my > .forward file on the mailserver. i'm very glad about this tool and it > does it's task perfectly. but sometimes, when a mail is arriving, the > following error raises: > > Command output: imapfilter: another imapfilter is running with pid 7848 > > the error ist not the problem, but an errormessate is sended to the sender. > but the mail still arrives. > how can i suppress this mail, or this errormessage, or better, why can't > imapfilter run twice? What kind of error message is send to the sender? Imapfilter cannot run twice, because, for example, there will be problems with two clients trying to make changes to the same mailbox in the mail server. I suggest that you run imapfilter in daemon mode. You can specify an interval of 300 or 600 seconds, so your messages will be processed continuously and periodically. From lefcha at hellug.gr Fri Nov 14 20:25:14 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Fri, 14 Nov 2003 20:25:14 +0200 Subject: [imapfilter-devel] Bug report: "no candidate passwords for encryption found" error message when port is used for an account In-Reply-To: <20031111181152.GA5132@segonds.net> References: <20031111181152.GA5132@segonds.net> Message-ID: <20031114182514.GA8851@linux> On Tue, Nov 11, 2003 at 12:11:52PM -0600, David Segonds wrote: > Hello, > > Let me start by saying that imapfilter is a great software. > > I encountered a bug in 0.9.4. > > If you use a line such as the following in .imapfilterrc, "imapfilter > -p" is returning the error message: "no candidate passwords for > encryption found" > > account account1 username at imap.domain.com:143 > > If I remove the port information for the account, "imapfilter -p" > behaves as expected. I can't reproduce the problem; a line like the above with or without the port, works well causing no failure and imapfilter enters the password editor as expected. Maybe it is some option I have different. Can you send me the exact configuration file (wipe out any sensitive information). Also, try removing the $HOME/.imapfilter directory. Anyone else that can reproduce this problem? From david at segonds.org Fri Nov 14 23:07:35 2003 From: david at segonds.org (David Segonds) Date: Fri, 14 Nov 2003 15:07:35 -0600 Subject: [imapfilter-devel] Bug report: "no candidate passwords for encryption found" error message when port is used for an account In-Reply-To: <20031114182514.GA8851@linux> References: <20031111181152.GA5132@segonds.net> <20031114182514.GA8851@linux> Message-ID: <20031114210735.GA21623@segonds.net> On Fri, Nov 14, 2003 at 08:25:14PM +0200, Lefteris Chatzibarbas wrote: > I can't reproduce the problem; a line like the above with or without the > port, works well causing no failure and imapfilter enters the password > editor as expected. I reproduced the problem using this exact following configuration file: =-=-=-=-= imapfilterrc =-=-=-=-= daemon = 60 logfile = /home/david/.imapfilter.log set timeout = 120 expunge = no subscribe = yes namespace = yes errors = yes account account1 david:xxxxxx at xxxxx.xxxxx.net folder inbox1 INBOX filter spam subject "{Spam?}" action move spam job spam inbox1 =-=-=-=-= I got the following output: =-=-=-=-= $ imapfilter -V IMAPFilter 0.9.2, OpenSSL 0x0090603f =-=-=-=-= =-=-=-=-= $ imapfilter -c imapfilterrc -p imapfilter: no candidate passwords for encryption found =-=-=-=-= > Maybe it is some option I have different. Can you send me the exact > configuration file (wipe out any sensitive information). Also, try > removing the $HOME/.imapfilter directory. I tried with and without ~/.imapfilter In my first message, I claimed that I was using 0.9.4 while, in fact, I am using 0.9.2. Sincerely, David. -- David Segonds - PGP 0x1F7A3E7A -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 232 bytes Desc: not available URL: From lefcha at hellug.gr Sat Nov 15 14:05:14 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Sat, 15 Nov 2003 14:05:14 +0200 Subject: [imapfilter-devel] Bug report: "no candidate passwords for encryption found" error message when port is used for an account In-Reply-To: <20031114210735.GA21623@segonds.net> References: <20031111181152.GA5132@segonds.net> <20031114182514.GA8851@linux> <20031114210735.GA21623@segonds.net> Message-ID: <20031115120513.GA1437@linux> On Fri, Nov 14, 2003 at 03:07:35PM -0600, David Segonds wrote: > I reproduced the problem using this exact following configuration file: > > [...] > > account account1 david:xxxxxx at xxxxx.xxxxx.net ^^^^^^ This is the problem. You should not supply a password for the account in the configuration file. It makes only sense to define encrypted passwords with the password editor, for those accounts that do not have a password already defined in the configuration file. You should use a line like: account account1 david at xxxxx.xxxxx.net From david at segonds.org Sat Nov 15 15:43:06 2003 From: david at segonds.org (David Segonds) Date: Sat, 15 Nov 2003 07:43:06 -0600 Subject: [imapfilter-devel] Bug report: "no candidate passwords for encryption found" error message when port is used for an account In-Reply-To: <20031115120513.GA1437@linux> References: <20031111181152.GA5132@segonds.net> <20031114182514.GA8851@linux> <20031114210735.GA21623@segonds.net> <20031115120513.GA1437@linux> Message-ID: <20031115134306.GA14497@segonds.net> On Sat, Nov 15, 2003 at 02:05:14PM +0200, Lefteris Chatzibarbas wrote: > On Fri, Nov 14, 2003 at 03:07:35PM -0600, David Segonds wrote: > > account account1 david:xxxxxx at xxxxx.xxxxx.net > ^^^^^^ > This is the problem. You should not supply a password for the account > in the configuration file. It makes only sense to define encrypted > passwords with the password editor, for those accounts that do not have > a password already defined in the configuration file. Granted. Another mistake on my part. Must have not been awake. :) As I am probably not the only one to make this type of mistake, it would be nice to have an error message that points out the problem with a line number and asking to remove the password. > account account1 david at xxxxx.xxxxx.net Yes, with a line like this, it works but with: account account1 david at xxxxx.xxxxx.net:143 It fails. This is what I had in the original one. Here is the last series of tests: =-=-=-=-= daemon = 60 logfile = /home/david/.imapfilter.log set timeout = 120 expunge = no subscribe = yes namespace = yes errors = yes account account1 david at xxxxx.xxxxx.net:143 folder inbox1 INBOX filter spam subject "{Spam?}" action move spam job spam inbox1 =-=-=-=-= =-=-=-=-= $ imapfilter -p -c imapfilterrc imapfilter: no candidate passwords for encryption found =-=-=-=-= Sincerely, David. -- David Segonds - PGP 0x1F7A3E7A From j-a-n at gmx.de Mon Nov 17 11:40:45 2003 From: j-a-n at gmx.de (jan) Date: Mon, 17 Nov 2003 10:40:45 +0100 Subject: [imapfilter-devel] error: another imapfilter is running with pid 7848 Message-ID: <3FB8979D.4070006@gmx.de> > > >On Thu, Nov 13, 2003 at 12:37:54PM +0100, jan wrote: >>/ hello >/>/ >/>/ i don't know how you are using imapfilter. i have integrated it in my >/>/ .forward file on the mailserver. i'm very glad about this tool and it >/>/ does it's task perfectly. but sometimes, when a mail is arriving, the >/>/ following error raises: >/>/ >/>/ Command output: imapfilter: another imapfilter is running with pid 7848 >/>/ >/>/ the error ist not the problem, but an errormessate is sended to the sender. >/>/ but the mail still arrives. >/>/ how can i suppress this mail, or this errormessage, or better, why can't >/>/ imapfilter run twice? >/ >What kind of error message is send to the sender? > > > a mail like this -------------- Subject: Undelivered Mail Returned to Sender Date: Tue, 4 Nov 2003 10:28:52 +0100 (CET) From: MAILER-DAEMON at ....org (Mail Delivery System) To: chr... at ....de This is the Postfix program at host fry.....org. I'm sorry to have to inform you that the message returned below could not be delivered to one or more destinations. For further assistance, please send mail to If you do so, please include this problem report. You can delete your own text from the message returned below. The Postfix program : Command died with status 4: "/home/jan/bin/imapfilter/imapfilter -c /home/jan/.imapfilterrc". Command output: imapfilter: another imapfilter is running with pid 7848 -------------------------- Reporting-MTA: dns; fry.software-engineering.org Arrival-Date: Tue, 4 Nov 2003 10:28:48 +0100 (CET) Final-Recipient: rfc822; jan at linux.....de Action: failed Status: 5.0.0 Diagnostic-Code: X-Postfix; Command died with status 4: "/home/jan/bin/imapfilter/imapfilter -c /home/jan/.imapfilterrc". Command output: imapfilter: another imapfilter is running with pid 7848 --------------------- >Imapfilter cannot run twice, because, for example, there will be >problems with two clients trying to make changes to the same mailbox in >the mail server. > > > ok.. i understand >I suggest that you run imapfilter in daemon mode. You can specify >an interval of 300 or 600 seconds, so your messages will be processed >continuously and periodically. > i have tryed, but this is not comfortable... an incomming email appears first in inbox, and some time later it disappears and moves to the right folder. not a good solution. what about supressing the errormessage? is it done with the -q option? can i redirect the stdout to /dev/null? and whats about checking previously whether imapfilter is running? is it possible to get the information anywhere? or can you upgrade the -k operator so it does not quit when no session is running? thanx for your help jan From lefcha at hellug.gr Mon Nov 17 22:52:41 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Mon, 17 Nov 2003 22:52:41 +0200 Subject: [imapfilter-devel] error: another imapfilter is running with pid 7848 In-Reply-To: <3FB8979D.4070006@gmx.de> References: <3FB8979D.4070006@gmx.de> Message-ID: <20031117205241.GA16727@linux> On Mon, Nov 17, 2003 at 10:40:45AM +0100, jan wrote: > what about supressing the errormessage? is it done with the -q option? No, you cannot suppress error messages with the "-q" option. > can i redirect the stdout to /dev/null? You should redirect stderr to /dev/null. > and whats about checking previously whether imapfilter is running? is it > possible to get the information anywhere? Yes. The $HOME/.imapfilter/lock file contains the PID of the imapfilter instance that is currently running. > or can you upgrade the -k operator so it does not quit when no session > is running? No. I think it is more logical, the way it is. From lefcha at hellug.gr Mon Nov 17 23:12:38 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Mon, 17 Nov 2003 23:12:38 +0200 Subject: [imapfilter-devel] Would like longer/dynamic KEY_LEN or better diagnostic In-Reply-To: <3FB4E393.2060507@gbg.dimension.se> References: <3FB4E393.2060507@gbg.dimension.se> Message-ID: <20031117211238.GB16727@linux> On Fri, Nov 14, 2003 at 03:15:47PM +0100, Per Westerlund wrote: > [...] > > I added more printouts, and found that the problem is that KEY_LEN is > shorter that the length of my identifier. (This is in a > machine-generated script, that move mailbox content based on age). > > > Request: > > 1) Better warning or error when KEY_LEN is to short. The "error" in the > config file can be difficult to catch, and it is even possible that the > wrong actions are performed! Yes, adding more verbose error messages and warnings, for example when parsing the configuration file, is something I have planned to look into. > 2) Perhaps increase or make dynamic the key length, for those of us that > usr machine-generated scripts (I can increase KEY_LEN myself, but it is > better if it is in the general distribution). I believe, that making dynamic just this or all the strings, will complicate things unnecessarily. I will increase the KEY_LEN for now... From lefcha at hellug.gr Tue Nov 18 00:30:31 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Tue, 18 Nov 2003 00:30:31 +0200 Subject: [imapfilter-devel] Request for external "mask" In-Reply-To: <3FB4F204.2080805@gbg.dimension.se> References: <3FB4F204.2080805@gbg.dimension.se> Message-ID: <20031117223031.GC16727@linux> On Fri, Nov 14, 2003 at 04:17:24PM +0100, Per Westerlund wrote: > Problem: > > Sometimes the decision whether to move a message to the "log" folder or > to keep it and mark it as "important" cannot be made using only fixed > strings in your matching expressions. It is not enough even to be able > to use regular expressions, sometimes a more thorough parsing of the > content of a message is required. > > Proposal: > > For those occasions when you need better decision support tools, let us > be able to use an external program. Why not like this: > > [mask] [or|and] [not] external [header] > > 'mask', 'or', 'and' and 'not' work as for all other filter entries. > IMAPFilter runs this filter entry by starting > with no arguments, and connecting a pipe to it. Through this pipe is > then fed the body of the message (normally) or, if the optional argument > 'header' is supplied, the header and the body. The external program > signals success (condition fulfilled) by exit code 0, everything else > signals failure (condition not met). > > Implementation note: > > It is important that the filter entries use "short circuiting" so that > an external program placed last in the list is not queried if the total > condition has alerady failed. > > A timeout for the external program should be implemented. > > Watch out for SIGPIPE or similar problems it the external program exits > prematurely. Yes, this feature would greatly extend imapfilter's capabilities and is something I was considering during last summer (also suggested by some in the past ("pipe" functionality)). The problem is all the details about how this "special" pipe/external mask would be treated in the context of all the other "regular" masks that are basically send to server for evaluation (so imapfilter doesn't worry about them right now). Some of the questions/issues are: 1) This "special" pipe/external mask can be put only once or even more times? 2) Can it be placed among other masks or only last one before the "action" closing keyword (last condition to check on the all the messages that matched all other "regular" masks)? 3) What about and/or/not logical operators and pipe/external masks? 4) Can you use and/or/not logical operators both between "regular" and pipe/external masks or only between the same kind of masks? (Probably, other details, that do not come to my mind right now or that will come up, when the coding will begin... ) There is basically the problem of making this functionality powerful and as useful as it gets for the users of imapfilter, without turning the implementation a hack; the result should be clean and depending on some of the answers on the questions above, it may get really complicated to combine regular/remote and special/local masks. Of course a simple solution to a complicated problem is always desired and it is what we are looking for... Answers, suggestions, ideas, requests, objections, etc. on this, are welcomed. From j-a-n at gmx.de Thu Nov 20 14:51:08 2003 From: j-a-n at gmx.de (jan) Date: Thu, 20 Nov 2003 13:51:08 +0100 Subject: [imapfilter-devel] error: another imapfilter is running with pid 7848 In-Reply-To: <20031117205241.GA16727@linux> References: <3FB8979D.4070006@gmx.de> <20031117205241.GA16727@linux> Message-ID: <3FBCB8BC.2040507@gmx.de> ok.. i have a solution; maybe someone is interested in.... von Lefteris Chatzibarbas am 17.11.2003 21:52: >On Mon, Nov 17, 2003 at 10:40:45AM +0100, jan wrote: > > >>can i redirect the stdout to /dev/null? >> >> >You should redirect stderr to /dev/null. > > > it works, but the programm is still exiting with error code 4, so the mail is still sent. >>and whats about checking previously whether imapfilter is running? is it >>possible to get the information anywhere? >> >> >Yes. The $HOME/.imapfilter/lock file contains the PID of the imapfilter >instance that is currently running. > > ok.. thats my solution. i wrote a script, which tests the existance of this file and waits until it disappears. here you are: timeout=20 # timeout in seconds i=0 # counter for timeout while [ -e ~/.imapfilter/lock ] do echo -n "." # print dots while waiting let i=i+1 # count timeout sleep 1s # wait if [ $i -gt $timeout ] then # test timeout; then exit exit 0 fi done ~/bin/imapfilter-0.9.4/imapfilter -c ~/.imapfilter/imapfilter_rc and thats my .forward (where "jan" is my account-name) \jan "|/home/jan/bin/imapfilter.sh" regards jan From mherger at jo-sac.ch Sat Nov 22 16:08:09 2003 From: mherger at jo-sac.ch (Michael Herger) Date: Sat, 22 Nov 2003 15:08:09 +0100 Subject: [imapfilter-devel] job execution order? Message-ID: Hi I've just created my firest imapfilter scripts. It's all working fine. But I had to do some trial and error because I did not find a hint on the order in which jobs are executed. What's the rule? First accounts/folders, then job per account/folder? The man page could use some explanation about this :-). -- Michael ----------------------------------------------------------- http://www.jo-sac.ch/lindenberg - die JO des SAC Lindenberg http://www.jo-sac.ch - JO-SAC inoffiziell! http://photo.jo-sac.ch - mein kleines Photoalbum From mherger at jo-sac.ch Sat Nov 22 16:10:24 2003 From: mherger at jo-sac.ch (Michael Herger) Date: Sat, 22 Nov 2003 15:10:24 +0100 Subject: [imapfilter-devel] "rcopy" flags messages as "seen" Message-ID: Hi When I do a "rcopy" the original messages are flagged as "seen". Is this a bug or a feature? Can I change this behaviour? -- Michael ----------------------------------------------------------- http://www.jo-sac.ch/lindenberg - die JO des SAC Lindenberg http://www.jo-sac.ch - JO-SAC inoffiziell! http://photo.jo-sac.ch - mein kleines Photoalbum From lefcha at hellug.gr Sun Nov 23 10:13:15 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Sun, 23 Nov 2003 10:13:15 +0200 Subject: [imapfilter-devel] job execution order? In-Reply-To: References: Message-ID: <20031123081315.GA1621@linux> On Sat, Nov 22, 2003 at 03:08:09PM +0100, Michael Herger wrote: > Hi > > I've just created my firest imapfilter scripts. It's all working fine. But > I had to do some trial and error because I did not find a hint on the > order in which jobs are executed. What's the rule? First accounts/folders, > then job per account/folder? After IMAPFilter reads the configuration file and creates all necessary data structures, it starts by going through the list of accounts. It connects to the server specified, and then goes through the list of mailboxes belonging to the server. For each mailbox it applies the filters that were specified for it. This goes on until the last account, the last mailbox and the last filter. Also, mailbox data structures (a linked list that is part of an account) are created in the order that the mailboxes are declared in the config file with the "folder" keyword. The filters that should be applied to a mailbox, are also in the order that the "job" keyword defines them in the config file. > The man page could use some explanation about this :-). Good idea! I'll add an explanation. From lefcha at hellug.gr Sun Nov 23 10:16:18 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Sun, 23 Nov 2003 10:16:18 +0200 Subject: [imapfilter-devel] "rcopy" flags messages as "seen" In-Reply-To: References: Message-ID: <20031123081618.GB1621@linux> On Sat, Nov 22, 2003 at 03:10:24PM +0100, Michael Herger wrote: > Hi > > When I do a "rcopy" the original messages are flagged as "seen". Is this a > bug or a feature? Can I change this behaviour? It is marked SEEN because imapfilter actually reads the whole message (header+body) and appends it to the specified remote server. You could use the "flag" action to remove the SEEN flag from those messages that were copied. From mherger at jo-sac.ch Sun Nov 23 15:06:34 2003 From: mherger at jo-sac.ch (Michael Herger) Date: Sun, 23 Nov 2003 14:06:34 +0100 Subject: [imapfilter-devel] "rcopy" flags messages as "seen" In-Reply-To: <20031123081618.GB1621@linux> References: <20031123081618.GB1621@linux> Message-ID: But how do I know which messages to remove the SEEN flag from? All my other messages are SEEN and have to stay that way... What I did is first apply the DRAFT (which I never use), than do the transfer, removing the SEEN and DRAFT flags afterwards. May be this explains why execution order is quite important to me :-). Thanks for your help! >> When I do a "rcopy" the original messages are flagged as "seen". Is >> this a >> bug or a feature? Can I change this behaviour? > > It is marked SEEN because imapfilter actually reads the whole message > (header+body) and appends it to the specified remote server. You could > use the "flag" action to remove the SEEN flag from those messages that > were copied. > -- Michael ----------------------------------------------------------- http://www.jo-sac.ch/lindenberg - die JO des SAC Lindenberg http://www.jo-sac.ch - JO-SAC inoffiziell! http://photo.jo-sac.ch - mein kleines Photoalbum From lefcha at hellug.gr Sun Nov 23 15:37:37 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Sun, 23 Nov 2003 15:37:37 +0200 Subject: [imapfilter-devel] "rcopy" flags messages as "seen" In-Reply-To: References: <20031123081618.GB1621@linux> Message-ID: <20031123133737.GA7297@linux> On Sun, Nov 23, 2003 at 02:06:34PM +0100, Michael Herger wrote: > But how do I know which messages to remove the SEEN flag from? All my > other messages are SEEN and have to stay that way... What I did is first > apply the DRAFT (which I never use), than do the transfer, removing the > SEEN and DRAFT flags afterwards. Try the attached patch against version 0.9.4 of imapfilter. Then, imapfilter shouldn't set the SEEN flag of the source mailbox messages. I'll include this patch in the changes of 0.9.5 (coming soon), as it is more correct this way. Thanks for rising this issue. PS. Patch like this: $ tar zxf imapfilter-0.9.4.tar.gz $ zcat imapfilter-0.9.4-2.gz | patch -p0 -------------- next part -------------- A non-text attachment was scrubbed... Name: imapfilter-0.9.4-2.gz Type: application/octet-stream Size: 361 bytes Desc: not available URL: From lefcha at hellug.gr Sun Nov 23 23:29:49 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Sun, 23 Nov 2003 23:29:49 +0200 Subject: [imapfilter-devel] Bug report: "no candidate passwords for encryption found" error message when port is used for an account In-Reply-To: <20031115134306.GA14497@segonds.net> References: <20031111181152.GA5132@segonds.net> <20031114182514.GA8851@linux> <20031114210735.GA21623@segonds.net> <20031115120513.GA1437@linux> <20031115134306.GA14497@segonds.net> Message-ID: <20031123212949.GA14272@linux> On Sat, Nov 15, 2003 at 07:43:06AM -0600, David Segonds wrote: > Yes, with a line like this, it works but with: > > account account1 david at xxxxx.xxxxx.net:143 > > It fails. This is what I had in the original one. Here is the last series of > tests: > > [...] With exactly the same configuration file and DEBUG enabled, here's what I get: $ imapfilter -p -c imapfilterrc debug: configuration file: 'imapfilterrc' debug: ACCOUNT: 'account1' debug: USERNAME: 'david' debug: PASSWORD: '' debug: SERVER: 'xxxxx.xxxxx.net' debug: PORT: 143 debug: FOLDER: 'inbox1' debug: MBOX: 'INBOX' debug: FILTER: 'spam' AND debug: MASK: 'SUBJECT "{Spam?}"' debug: ACTION: 3 '' 'spam' 0 '' debug: JOB: 'spam' 'inbox1' debug: deleting FOLDER: 'inbox1' debug: options: 0x000003ca '' debug: passwords file: '/home/lefcha/.imapfilter/passwords' Enter master passphrase: Can you enable DEBUG and send me the output? Configure/compile with something like: $ tar zxf imapfilter-0.9.4.tar.gz $ cd imapfilter-0.9.4 $ ./config -o debug=yes $ make Thanks PS. When this problem is resolved, version 0.9.5 will be released. From lefcha at hellug.gr Sat Dec 6 23:00:29 2003 From: lefcha at hellug.gr (Lefteris Chatzibarbas) Date: Sat, 6 Dec 2003 23:00:29 +0200 Subject: [imapfilter-devel] IMAPFilter 0.9.5 Message-ID: <20031206210029.GA21306@bsd> IMAPFilter version 0.9.5: http://imapfilter.hellug.gr/source/imapfilter-0.9.5.tar.gz http://imapfilter.hellug.gr/source/imapfilter-0.9.5.tar.gz.sig MD5 (imapfilter-0.9.5.tar.gz) = abd47178eda39b8a0cd274db20431b55 http://imapfilter.hellug.gr/source/imapfilter-0.9.5.tar.bz2 http://imapfilter.hellug.gr/source/imapfilter-0.9.5.tar.bz2.sig MD5 (imapfilter-0.9.5.tar.bz2) = 4593e3422d75d9cb2e498fe353c0fedc Changes: - Fix of bug that appeared in daemon mode, where the date used in search queries (newer/older command) was not updated each time the program connected to the server. - Added an explanation on the way the program does the filtering (filter execution order, etc.) - Added new variable to control if a message is flagged as seen, when part of it (ie. some of its headers) is fetched.