procmail not filtering as expected
Hello,
I have an issue with procmail. It's probably a minor thing, I just need a second pair of eyes. In .procmailrc I have: :0: * ^From:.*root * backup2l .log.backup/ :0: * ^Subject: Cron .log.cron/ The following mail ends up in .log.cron/, not in .log.backup/ -----------CUT HERE---------- Return-Path: <root@amedee.be> X-Original-To: root Delivered-To: root@amedee.be Received: by intrepid.amedee.be (Postfix, from userid 0) id CDDDE5A093; Wed, 25 Nov 2009 06:33:02 +0100 (CET) From: root@amedee.be (Cron Daemon) To: root@amedee.be Subject: Cron <root@intrepid> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) Content-Type: text/plain; charset=ANSI_X3.4-1968 X-Cron-Env: <SHELL=/bin/sh> X-Cron-Env: <PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin> X-Cron-Env: <HOME=/root> X-Cron-Env: <LOGNAME=root> Message-Id: <20091125053302.CDDDE5A093@intrepid.amedee.be> Date: Wed, 25 Nov 2009 06:28:51 +0100 (CET) /etc/cron.daily/zz-backup2l: backup2l v1.4 by Gundolf Kiefer *snipped...* -----------CUT HERE---------- Where is my mistake? -- Amedee -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
procmail not filtering as expected
On Wed, 25 Nov 2009 13:00:06 +0100 (CET)
Amedee Van Gasse (ub) wrote: > :0: > * ^From:.*root > * backup2l > .log.backup/ I'm not an expert, but don't you need to tell it to egrep the body? I.e. something like :0 * ^From:.*root { :0 B * backup2l .log.backup/ } - Richard -- Richard Kimber Political Science Resources http://www.PoliticsResources.net/ -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
procmail not filtering as expected
On Wed, November 25, 2009 13:57, R Kimber wrote:
> On Wed, 25 Nov 2009 13:00:06 +0100 (CET) > Amedee Van Gasse (ub) wrote: > >> :0: >> * ^From:.*root >> * backup2l >> .log.backup/ > > I'm not an expert, but don't you need to tell it to egrep the body? I.e. > something like > > :0 > * ^From:.*root > { > :0 B > * backup2l > .log.backup/ > } I'm even less of an expert. :) I'll see tomorrow when cron runs the backup. -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
procmail not filtering as expected
On Wed, November 25, 2009 13:57, R Kimber wrote:
> On Wed, 25 Nov 2009 13:00:06 +0100 (CET) > Amedee Van Gasse (ub) wrote: > >> :0: >> * ^From:.*root >> * backup2l >> .log.backup/ > > I'm not an expert, but don't you need to tell it to egrep the body? I.e. > something like > > :0 > * ^From:.*root > { > :0 B > * backup2l > .log.backup/ > } > It worked, tnx! -- ubuntu-users mailing list ubuntu-users@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users |
| All times are GMT. The time now is 08:42 PM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.