Re: procmail filtering
On Thu, Jul 05, 2012 at 11:14:57AM +0200, Jochen Spieker wrote: lee: I've looked at formail + procmail , but formail forces it into mailbox format which I dont want. Formail doesn't actually save the mailboxes anywhere, procmail does that. And if you append a slash to the mailbox name, procmail generates maildirs. Example: MAILDIR=$HOME/Maildir/ LOGFILE=$HOME/.procmail.log DEFAULT=$MAILDIR :0: ^ In that case you don't need the colon. That colon is for locking and maildir doesn't require locking. e.g. :0 * ^X-Mailing-List: debian...@lists.debian.org * ^X-Mailing-List: debian-\/[-a-zA-Z0-9]+ .lists.debian.$MATCH/ -- If you're not careful, the newspapers will have you hating the people who are being oppressed, and loving the people who are doing the oppressing. --- Malcolm X -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120711033037.GU3873@tal
Re: procmail filtering
On 07/05/2012 02:41 PM, Jon Dowland wrote: You can run procmail in filter mode and pipe it each mail that you wish to filter individually, but you must keep track of which mails have been piped to procmail and remove them/mark them 'processed' yourself, via shell scripts etc. Make sure your procmail recipe(s) deliver to a sensible location. Hi thanks for the response. L -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4ff69f76.3080...@tlabs.ac.za
Re: procmail filtering
On 07/05/2012 09:59 PM, Bob Proulx wrote: lee wrote: I've looked at formail + procmail , but formail forces it into mailbox format which I dont want. With Maildir format you don't need formail. Just pipe each individual message to procmail. Of the top of my head and untested: for m in Maildir/new/* Maildir/cur/*; do procmail myprocmailrcfile $m done Best to test it with one message first to make sure it all works before trying to run on a large mailbox. Bob Hi I did something similar but ended up creating alot of 'copies' which I didn't want. but thanks. now I at least know I was on the right track. Regards Lee -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4ff69fba.5090...@tlabs.ac.za
procmail filtering
Hi. probably not the best list to ask, but i've been trying and searching for awhile now, with not much success. I'm looking for a way to run my procmail filters on a directory containing emails I would like to filter. I'm using a Maildir email directory setup. I've looked at formail + procmail , but formail forces it into mailbox format which I dont want. anyone know any tutorial/howto out there? the procmail home page is no help, and most of tutorials are for mailbox format. Regards Lee -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4ff54951.4050...@tlabs.ac.za
Re: procmail filtering
lee: I've looked at formail + procmail , but formail forces it into mailbox format which I dont want. Formail doesn't actually save the mailboxes anywhere, procmail does that. And if you append a slash to the mailbox name, procmail generates maildirs. Example: MAILDIR=$HOME/Maildir/ LOGFILE=$HOME/.procmail.log DEFAULT=$MAILDIR :0: * ^X-Mailing-List: debian...@lists.debian.org * ^X-Mailing-List: debian-\/[-a-zA-Z0-9]+ .lists.debian.$MATCH/ J. -- My medicine shelf is my altar. [Agree] [Disagree] http://www.slowlydownward.com/NODATA/data_enter2.html signature.asc Description: Digital signature
Re: procmail filtering
You can run procmail in filter mode and pipe it each mail that you wish to filter individually, but you must keep track of which mails have been piped to procmail and remove them/mark them 'processed' yourself, via shell scripts etc. Make sure your procmail recipe(s) deliver to a sensible location. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120705124158.GC32553@debian
Re: procmail filtering
lee wrote: I've looked at formail + procmail , but formail forces it into mailbox format which I dont want. With Maildir format you don't need formail. Just pipe each individual message to procmail. Of the top of my head and untested: for m in Maildir/new/* Maildir/cur/*; do procmail myprocmailrcfile $m done Best to test it with one message first to make sure it all works before trying to run on a large mailbox. Bob signature.asc Description: Digital signature
Procmail filtering on outgoing mail
I've been looking through mailing lists and FAQ, but can't find an answer to something I presume would be fairly simple, although I'm not really familiar with exim at all. What I want to do is get exim to pass _outgoing_ mail through certain procmail filters. Specifically, I want my From: address to be altered in certain cases, depending on who I'm corresponding with. Any suggestions here would be greatly appreciated. -- Jeremy Nickurak -= [EMAIL PROTECTED] =- For every complex problem there is an answer that is clear, simple, and wrong. -- H L Mencken pgpsed4xG9fFq.pgp Description: PGP signature
Re: Procmail filtering on outgoing mail
Moin, * Jeremy Nickurak [EMAIL PROTECTED] [02-01-15 00:10]: Any suggestions here would be greatly appreciated. My mailer does this for me, you might consider to use another one. Thorsten -- When the government fears the people, it is liberty. When the people fear the government, it is tyranny. - Thomas Paine
Re: Procmail filtering on outgoing mail
Jeremy Nickurak wrote: I've been looking through mailing lists and FAQ, but can't find an answer to something I presume would be fairly simple, although I'm not really familiar with exim at all. What I want to do is get exim to pass _outgoing_ mail through certain procmail filters. Specifically, I want my From: address to be altered in certain cases, depending on who I'm corresponding with. That sounds more like something to put in _front_ of the mail transport, not built into it. From your headers, it looks like you're using Sylpheed. I don't recall offhand how flexible it is about how to send messages. If you can give it an arbitrary command line, then you could send it to procmail with an argument to make procmail use a recipe file that falls through to exim after mangling the headers however you like. Craig pgptykbDSuFob.pgp Description: PGP signature
Re: Procmail filtering on outgoing mail
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday 14 January 2002 11:10 pm, Jeremy Nickurak wrote: I've been looking through mailing lists and FAQ, but can't find an answer to something I presume would be fairly simple, although I'm not really familiar with exim at all. What I want to do is get exim to pass _outgoing_ mail through certain procmail filters. Specifically, I want my From: address to be altered in certain cases, depending on who I'm corresponding with. There are several ways to do this in exim without resorting to filtering mail through procmail. Look at Chapter 34 in the exim specification at www.exim.org Also consider creating a router that recognises your recipient (or even a file of reciepients) and then sends it to a transport with the headers_rewrite option in it. - -- Alan - [EMAIL PROTECTED] http://www.chandlerfamily.org.uk -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8Q23r1mf3M5ZDr2kRAsXcAJ0VZ8CPLCD6JBz3LglxeRYtAqoK/QCghR9Y Hd7XOghxtROmdaspo2XfJ2U= =xDG/ -END PGP SIGNATURE-
RE: Procmail filtering on outgoing mail
I'm not sure that that can be done with procmail. procmail is a local delivery agent, mainly used for final delivery of mail into /var/mail/{username}. j. -- Jeremy L. Gaddis [EMAIL PROTECTED] -Original Message- From: Jeremy Nickurak [mailto:[EMAIL PROTECTED] Sent: Monday, January 14, 2002 6:11 PM To: debian-user@lists.debian.org Subject: Procmail filtering on outgoing mail I've been looking through mailing lists and FAQ, but can't find an answer to something I presume would be fairly simple, although I'm not really familiar with exim at all. What I want to do is get exim to pass _outgoing_ mail through certain procmail filters. Specifically, I want my From: address to be altered in certain cases, depending on who I'm corresponding with. Any suggestions here would be greatly appreciated. -- Jeremy Nickurak -= [EMAIL PROTECTED] =- For every complex problem there is an answer that is clear, simple, and wrong. -- H L Mencken
Re: Procmail filtering on outgoing mail
also sprach Thorsten Haude [EMAIL PROTECTED] [2002.01.15.0037 +0100]: Any suggestions here would be greatly appreciated. My mailer does this for me, you might consider to use another one. i see. (thorsten, ignore my mail). he's probably using mutt, which has beautiful send-hooks. yes, you can't beat mutt... the way i'd suggest to do it would be wrapping /usr/sbin/sendmail. but that can be circumvented, the original has to remain somewhere... but i know it's possible with postfix, so exim better be able to do it... -- martin; (greetings from the heart of the sun.) \ echo mailto: !#^.*|tr * mailto:; [EMAIL PROTECTED] all of you that believe in telekinetics, raise my hand! pgpt363FMU43p.pgp Description: PGP signature
Re: Procmail filtering on outgoing mail
also sprach Jeremy L. Gaddis [EMAIL PROTECTED] [2002.01.15.0216 +0100]: I'm not sure that that can be done with procmail. procmail is a local delivery agent, mainly used for final delivery of mail into /var/mail/{username}. good point. procmail actually cannot be configured as a filter. it's last act will always be storing in a mailbox... however, writing a filter for your application would be trivial, but unnecessary! -- martin; (greetings from the heart of the sun.) \ echo mailto: !#^.*|tr * mailto:; [EMAIL PROTECTED] linux is like a wigwam. no gates, no windoze, and an apache inside. pgpM9iE3PaD7q.pgp Description: PGP signature
Re: Procmail filtering on outgoing mail
also sprach martin f krafft [EMAIL PROTECTED] [2002.01.15.0307 +0100]: good point. procmail actually cannot be configured as a filter. it's last act will always be storing in a mailbox... well, doh. `procmail -m` -- martin; (greetings from the heart of the sun.) \ echo mailto: !#^.*|tr * mailto:; [EMAIL PROTECTED] the remote desktop feature of windows xp is really nice (and *novel*!). as a micro$oft consultant can *remotely* disable the personal firewall and control the system. we'll ignore the fact that this tampering with the firewall is not logged, and more importantly, that the firewall isn't restored when the clowns from redmod are done with their job. pgpAhALTYY5Py.pgp Description: PGP signature
Re: Procmail filtering on outgoing mail
On Tue, Jan 15, 2002 at 03:06:42AM +0100, martin f krafft wrote: | also sprach Thorsten Haude [EMAIL PROTECTED] [2002.01.15.0037 +0100]: | Any suggestions here would be greatly appreciated. | My mailer does this for me, you might consider to use another one. | | i see. (thorsten, ignore my mail). he's probably using mutt, which has | beautiful send-hooks. yes, you can't beat mutt... | | the way i'd suggest to do it would be wrapping /usr/sbin/sendmail. but | that can be circumvented, the original has to remain somewhere... | | but i know it's possible with postfix, so exim better be able to do | it... You can rewrite the headers based on the conditions you want, it's just a matter of setting it up to do that. Exactly how you do that depends on the amount of data you have and how much administrative privileges should be required to update the rewrite rules. The easiest thing is probably to have an lsearch file with recipient addresses as the key and your From: header as the value. Then tell exim to replace the From: header with a new one if the address in the To: field is found in the file. Still, I think it will be better and easier to make your MUA do it (ala mutt's send-hooks). -D -- Who can say, I have kept my heart pure; I am clean and without sin? Proverbs 20:9
Re: Procmail filtering / UNDELIVERABLE EMAIL
You needed a .* not just a star and if there might be a at the end stick a ? on the end. That way it will work whether it's there or not. I hope anyway. I'm new at procmail. Also, mail dirs are to have a / at the end to let procmail know that they're mail dirs. ...maybe you even need one on /dev/null/. I don't think it will hurt anything. mike
Re: Procmail filtering / UNDELIVERABLE EMAIL
On Mon, Sep 25, 2000 at 12:16:36AM -0500, Debian User wrote: You needed a .* not just a star and if there might be a at the end stick a ? on the end. That way it will work whether it's there or not. it does not appear that you need to do anything about the i never do and my procmail recipies work fine. i think its more likely that his .procmailrc is not including his .procmail/spamrc file correctly. (i just put all my recipes in ~/.procmailrc) I hope anyway. I'm new at procmail. Also, mail dirs are to have a / at the end to let procmail know that they're mail dirs. ...maybe you even need one on /dev/null/. I don't think it will hurt anything. um no. [EMAIL PROTECTED] eb]$ ls -l /dev/null crw-rw-rw-1 root root 1, 3 May 10 00:41 /dev/null [EMAIL PROTECTED] eb]$ /dev/null is a real file, not a directory, so the following rule is correct: :0 * ^From: [EMAIL PROTECTED] /dev/null [EMAIL PROTECTED] eb]$ grep -A2 [EMAIL PROTECTED] Mail/procmail.log -- From [EMAIL PROTECTED] Sat Sep 23 03:15:47 2000 Subject: Error: undelivered email - recipient email storage limit exceeded Folder: /dev/null 3026 -- From [EMAIL PROTECTED] Sat Sep 23 15:31:48 2000 Subject: Error: undelivered email - recipient email storage limit exceeded Folder: /dev/null 2458 -- [... and on and on about a bazillion times..] -- Ethan Benson http://www.alaska.net/~erbenson/ pgpM20U4McF4M.pgp Description: PGP signature
Re: Procmail filtering / UNDELIVERABLE EMAIL
On Sun, Sep 24, 2000 at 05:57:12PM -0400, Michael P. Soulier wrote: On Sun, Sep 24, 2000 at 03:37:29PM -0500, William Jensen wrote: Here's mine, it works, YMMV: :0: * ^From:.[EMAIL PROTECTED] /dev/null I'm using the perl Mail::Audit module myself: if (($from eq '[EMAIL PROTECTED]') and ($subject =~ /undelivered email/)) { print Rejecting stupid Debian error message.\n\n; my $reason = I'm sick of looking at these in my inbox.; $message-reject($reason); } To each their own I guess. ;-) hmm! what process do you use to invoke perl as a mail filter? or is it just a :0 |/usr/bin/perl someScript thingy? (i presume that would compile the script once for each and every message, yes?) point me to the manpage, i will go.
Re: Procmail filtering / UNDELIVERABLE EMAIL
On Sun, Sep 24, 2000 at 04:39:21PM -0400, Joel Dinel wrote: I am still getting mail from [EMAIL PROTECTED] aren't we all:( This is what I have in my ~/.procmail/rc.spam : :0 * ^From: [EMAIL PROTECTED] this should be: * ^From: [EMAIL PROTECTED] ^ ^ :0 * ^From: [EMAIL PROTECTED] procmail uses regexp, not shell globbling, so try: * ^From: [EMAIL PROTECTED] -- groetjes, carel
Re: Procmail filtering / UNDELIVERABLE EMAIL
On Mon, Sep 25, 2000 at 02:57:55AM -0500, will trillich wrote: hmm! what process do you use to invoke perl as a mail filter? or is it just a :0 |/usr/bin/perl someScript thingy? (i presume that would compile the script once for each and every message, yes?) point me to the manpage, i will go. Just my $HOME/.forward file. I'm using sendmail as my MTA, so [EMAIL PROTECTED] msoulier]$ cat .forward | /home/msoulier/bin/mailfilter A pipe to the script invokes the filter. I do a lot of Perl development for work, and I find procmail recipes hard to read. I know, if I can read Perl regexps, I can read procmail, but it's just easier to do it in Perl. Fun too. ;-) I can include the entire script if you like. You'll need Mail::Internet and Mail::Audit before you can use it, but you can grab those off the CPAN. Mike -- Michael P. Soulier [EMAIL PROTECTED] ...the word HACK is used as a verb to indicate a massive amount of nerd-like effort. -Harley Hahn, A Student's Guide to UNIX
Re: Procmail filtering / UNDELIVERABLE EMAIL
On Mon, Sep 25, 2000 at 09:08:19AM -0400, Michael P. Soulier wrote: On Mon, Sep 25, 2000 at 02:57:55AM -0500, will trillich wrote: hmm! what process do you use to invoke perl as a mail filter? or is it just a :0 |/usr/bin/perl someScript thingy? (i presume that would compile the script once for each and every message, yes?) point me to the manpage, i will go. Just my $HOME/.forward file. I'm using sendmail as my MTA, so [EMAIL PROTECTED] msoulier]$ cat .forward | /home/msoulier/bin/mailfilter A pipe to the script invokes the filter. I do a lot of Perl development for work, and I find procmail recipes hard to read. I know, if I can read Perl regexps, I can read procmail, but it's just easier to do it in Perl. Fun too. ;-) I can include the entire script if you like. You'll need Mail::Internet and Mail::Audit before you can use it, but you can grab those off the CPAN. cool -- that'd be great! (i finally learned the CPAN module... hopefully it won't conflict with an apt-get install ...) this sounds wonderful! i agree with you on the procmail recipes. eek!
Procmail filtering / UNDELIVERABLE EMAIL
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am still getting mail from [EMAIL PROTECTED] This is what I have in my ~/.procmail/rc.spam : :0 * ^From: [EMAIL PROTECTED] /dev/null :0 * ^From: [EMAIL PROTECTED] /dev/null What am I doing wrong ? Joel Dinel [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: PGPfreeware 5.0i for non-commercial use Comment: Made with pgp4pine 1.71b Charset: noconv iQA/AwUBOc5mfZiq2Gf2udcfEQIl0gCgoPM04XIJCWLaGLUuHNjdm34qoKcAoNmU v+kZJYrlJSmIVeuX49A4UyUa =+IkH -END PGP SIGNATURE-
Re: Procmail filtering / UNDELIVERABLE EMAIL
On Sun, Sep 24, 2000 at 04:39:21PM -0400, Joel Dinel wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am still getting mail from [EMAIL PROTECTED] This is what I have in my ~/.procmail/rc.spam : :0 * ^From: [EMAIL PROTECTED] /dev/null :0 * ^From: [EMAIL PROTECTED] /dev/null What am I doing wrong ? Here's mine, it works, YMMV: :0: * ^From:.[EMAIL PROTECTED] /dev/null Luck, Wm Joel Dinel [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: PGPfreeware 5.0i for non-commercial use Comment: Made with pgp4pine 1.71b Charset: noconv iQA/AwUBOc5mfZiq2Gf2udcfEQIl0gCgoPM04XIJCWLaGLUuHNjdm34qoKcAoNmU v+kZJYrlJSmIVeuX49A4UyUa =+IkH -END PGP SIGNATURE- -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
Re: Procmail filtering / UNDELIVERABLE EMAIL
On Sun, Sep 24, 2000 at 03:37:29PM -0500, William Jensen wrote: Here's mine, it works, YMMV: :0: * ^From:.[EMAIL PROTECTED] /dev/null I'm using the perl Mail::Audit module myself: if (($from eq '[EMAIL PROTECTED]') and ($subject =~ /undelivered email/)) { print Rejecting stupid Debian error message.\n\n; my $reason = I'm sick of looking at these in my inbox.; $message-reject($reason); } To each their own I guess. ;-) Mike -- Michael P. Soulier [EMAIL PROTECTED] ...the word HACK is used as a verb to indicate a massive amount of nerd-like effort. -Harley Hahn, A Student's Guide to UNIX
Re: procmail - filtering already received mails
Florian Friesdorf [EMAIL PROTECTED] writes: for i in `ls`; do echo -n $i: ; procmail $i rm $i; echo done.; done I still don't understand what was going on, but with this one it worked fine. (for i in `ls`; do echo -n $i: ; procmail $i rm $i; echo done.; done) ../log 21 Not to say that this is the cause of slowness, but you may still want to change the `ls` to *. This will save running ls, and opening and closing a pipe: for i in *; do ... -- Arcady Genkin Don't read everything you believe.
Re: procmail - filtering already received mails
On Mon, Aug 14, 2000 at 03:54:22PM -0400, Arcady Genkin wrote: Florian Friesdorf [EMAIL PROTECTED] writes: for i in `ls`; do echo -n $i: ; procmail $i rm $i; echo done.; done I still don't understand what was going on, but with this one it worked fine. (for i in `ls`; do echo -n $i: ; procmail $i rm $i; echo done.; done) ../log 21 Not to say that this is the cause of slowness, but you may still want to change the `ls` to *. This will save running ls, and opening and closing a pipe: for i in *; do ... -- Arcady Genkin Don't read everything you believe. Thanks for the hint. It seems, I was little bit tired. The second time it was running on the server where the mail folder was saved locally. Not on my nfs mounted box. But I still don't understand, why it was that slow over nfs (100BaseT). -ff -- Florian Friesdorf [EMAIL PROTECTED] OpenPGP key available on public key servers -- Save the future of Open Source -- - Online-Petition against Software Patents - -- http://petition.eurolinux.org --- pgpPmxgo71fw1.pgp Description: PGP signature
procmail - filtering already received mails
Hello all, I'm trying to filter already received mails (in a maildir) through procmail. My latest approach is executing for i in `ls`; do echo -n $i: ; procmail $i rm $i; echo done.; done in SomeMaildir/cur advantage: it is working disadvantage: it is incredibly slow (5 seconds per mail) Does anybody know a better solution. tia ff -- Florian Friesdorf [EMAIL PROTECTED] OpenPGP key available on public key servers -- Save the future of Open Source -- - Online-Petition against Software Patents - -- http://petition.eurolinux.org --- pgppfPVmeO5Eb.pgp Description: PGP signature
Re: procmail - filtering already received mails
On Mon, Aug 14, 2000 at 03:28:48AM +0200, Florian Friesdorf wrote: Hello all, I'm trying to filter already received mails (in a maildir) through procmail. My latest approach is executing for i in `ls`; do echo -n $i: ; procmail $i rm $i; echo done.; done in SomeMaildir/cur advantage: it is working disadvantage: it is incredibly slow (5 seconds per mail) Does anybody know a better solution. After hanging around in front of my computer, getting tired, watching the mails drop into their folders, I backgrounded the script and a few seconds later all my mails were filtered. I still don't understand what was going on, but with this one it worked fine. (for i in `ls`; do echo -n $i: ; procmail $i rm $i; echo done.; done) ../log 21 c'ya ff -- Florian Friesdorf [EMAIL PROTECTED] OpenPGP key available on public key servers -- Save the future of Open Source -- - Online-Petition against Software Patents - -- http://petition.eurolinux.org --- pgpwy8mw3DGZZ.pgp Description: PGP signature
Re: exmh and procmail filtering
On Sat, 28 Mar 1998, Erik van der Meulen wrote: I would like to use exmh for my mail client, instead of elm. I would like to set up procmail for the filtering and sorting. Early experiments succeeded in moving mail to elm-style files but not in a format which is acceptable to ex(mh) directories. Could anyone send me an example of a .procmail file for use with exmh? You might want to take a look at some of the following websites, most of which include MUA-specific info, including emxh: http://www.helsinki.fi/~reriksso/procmail/mini-faq.html http://www.helsinki.fi/~reriksso/procmail/links.html ftp://cs.uta.fi/pub/ssjaaa/pm-tips.html http://www.faqs.org/faqs/mail/filtering-faq/ There are Pine, VM, Elm, and other MUA-specific pages that I know of off the top of my head (or in my bookmarks file); feel free to contact me if you change mailers! :-) -- David S. Jackson [EMAIL PROTECTED] http://www.dsj.net Linux: Choice of a GNU Generation! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: exmh and procmail filtering
Oliver Elphick wrote: Erik van der Meulen wrote: ... Could anyone send me an example of a .procmail file for use with exmh? This is my ~/.procmailrc: MAILDIR=$HOME/Mail LOCKFILE=$HOME/procmail/lock LOGFILE=$HOME/procmail/new LOGABSTRACT=all TRAP=$HOME/procmail/postprocess I forgot to add the postprocess file, whose job is to update the unseen sequence so that exmh will highlight messages you haven't read yet: #! /bin/bash # Update the unseen sequence in MH cd $HOME/procmail mpaths=`awk '/Folder:/{print $2}' new` for mpath in $mpaths do mpos=`echo $mpath | awk -F/ '{print NF-1}'` folder=`echo $mpath | cut -d/ -f1-$mpos` msgno=`echo $mpath | awk -F/ '{print $NF}'` seqf=$HOME/Mail/$folder/.mh_sequences newseqf=$HOME/Mail/$folder/.mh_sequences_new touch $seqf if grep unseen: $seqf /dev/null then sed /^unseen:/s/\$/ $msgno/ $seqf $newseqf mv $newseqf $seqf else echo unseen: $msgno $seqf fi done cat new log rm new -- Oliver Elphick[EMAIL PROTECTED] Isle of Wight http://www.lfix.co.uk/oliver PGP key from public servers; key ID 32B8FAA1 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
exmh and procmail filtering
I would like to use exmh for my mail client, instead of elm. I would like to set up procmail for the filtering and sorting. Early experiments succeeded in moving mail to elm-style files but not in a format which is acceptable to ex(mh) directories. Could anyone send me an example of a .procmail file for use with exmh? Much appreciated! Erik van der Meulen [EMAIL PROTECTED] --- PGP Fingerprint = 6C 2A A6 83 4A 57 B7 95 B7 79 A6 D7 F7 16 04 5C PGP KeyID = 0x6B3A02DD -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: exmh and procmail filtering
Erik van der Meulen wrote: ... Could anyone send me an example of a .procmail file for use with exmh? This is my ~/.procmailrc: MAILDIR=$HOME/Mail LOCKFILE=$HOME/procmail/lock LOGFILE=$HOME/procmail/new LOGABSTRACT=all TRAP=$HOME/procmail/postprocess DEFAULT=inbox/. #:0 c #backup/. # :0 * ^TO.*linux-kernel-digest linux/kernel-digest/. # :0 E * ^TO.*FreeMoney freemoney/. # :0 E * ^Newsgroups.*postgresql postgresql/questions/. # :0 E * ^TO.*SmallEiffel smalleiffel/. # :0 E * ^TO.*linux-uk-help linux-uk/help/. # :0 E * ^TO.*linux-uk-discuss linux-uk/discuss/. # :0 E * ^TO.*Linux-Users Linux-Users/. # :0 E * ^TO.*xvscanlist xvscan/. # :0 E * ^TO.*lyx-users lyx/. # :0 E * ^TO.*linux-training linux/training/. # :0 E * ^TO.*linux-gcc linux/gcc/. # :0 E * ^TO.*linux-doc linux/doc/. # :0 E * ^TO.*linux-biz linux/biz/. # :0 E * ^TO.*postgres postgresql/questions/. # :0 E * [EMAIL PROTECTED] postgresql/questions/. # :0 E * ^TO.*pgsql-hackers-digest postgresql/devel/. # :0 E * ^TO.*(questions@(hub|postgresql).org|[EMAIL PROTECTED]) postgresql/questions/. # :0 E * ^Resent.*debian-testing debian/testing/. # :0 E * ^Resent.*debian-mentors debian/mentors/. # :0 E * ^Resent.*debian-changes debian/changes/. # :0 E * ^Resent.*debian-qa debian/qa/. # :0 E * ^Resent.*debian-private debian/private/. # :0 E * ^Resent.*debian-policy debian/policy/. # :0 E * ^Resent.*debian-announce debian/announce/. # :0 E * ^Resent.*debian-user debian/user/. # :0 E * ^Resent.*debian-doc debian/doc/. # :0 E * ^Resent.*debian-devel-changes debian/devel-changes/. # :0 E * ^Resent.*debian-devel debian/devel/. # :0 E * ^TO.*rosegarden midi/. # :0 E * ^CC.*rosegarden midi/. # :0 E * ^TO.*isdn4linux isdn/. # :0 E * ^TO.*linux-list linux-list/. # :0 E * ^RECEIVED.*troll.no qt/. # :0 E * [EMAIL PROTECTED] sales/. # :0 E [EMAIL PROTECTED] enterprise/. # :0 E *^TO.*postmaster postmaster/. # :0 E *^TO.*usenet root/. # :0 E *^TO.*root root/. # :0 E *^TO.*olly inbox/. # :0 E *^TO.*Oliver inbox/. # :0 E *^TO.* misaddressed/. -- Oliver Elphick[EMAIL PROTECTED] Isle of Wight http://www.lfix.co.uk/oliver PGP key from public servers; key ID 32B8FAA1 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]