Re: OT: procmail/formail magic (was: Re: [Evolution] Outlook PST Equivalent)
- From: guenther <guenther rudersport de>
- To: Vince LaMonica <vjl vjl org>
- Cc: evolution lists ximian com
- Subject: Re: OT: procmail/formail magic (was: Re: [Evolution] Outlook PST Equivalent)
- Date: Tue, 07 Jun 2005 03:02:30 +0200
On Mon, 2005-06-06 at 20:41 -0400, Vince LaMonica wrote:
On Tue, 7 Jun 2005, guenther wrote:
} A simple ;) command like this will feed the contents of large.mbox to
} formail, which splits it up into single mails and calls procmail to
} actually sort (well, process) the mails according to the
} local-procmail.rc receipts:
}
} $ cat large.mbox | formail -s procmail ./local-procmail.rc
I would not recommend using more resources than needed. Something that I
do all the time that doesn't require the overhead of cat:
formail -s procmail local-procmail.rc < large.mbox
That should work a lot more efficiently and be a tad quicker as well.
Yeah, right -- the average post resolving an issue and even more
describing the facts in depth doesn't even get any quick response. And
if I post an off-topic working solution I get a correction about a small
improvement almost instantaneously. ;-)
Thanks Vince, point taken. :)
...guenther
--
char *t="\10pse\0r\0dtu\0 ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]