FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 11-25-2009, 11:00 AM
"Amedee Van Gasse (ub)"
 
Default 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
 
Old 11-25-2009, 11:57 AM
R Kimber
 
Default 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
 
Old 11-25-2009, 01:17 PM
"Amedee Van Gasse (ub)"
 
Default 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
 
Old 11-26-2009, 06:06 AM
"Amedee Van Gasse (ub)"
 
Default 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
 

Thread Tools




All times are GMT. The time now is 01:36 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org