Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Procmail unexpected behavior (at least to me)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
deflin39
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2004
Posts: 105
Location: /dev/BIYJ

PostPosted: Thu Jan 06, 2005 10:38 pm    Post subject: Procmail unexpected behavior (at least to me) Reply with quote

I'm new to using procmail, so I wouldn't be surpised if I screwed something.

I have been creating recipes in .procmailrc, and they all have worked but I'm getting strange behaviour for one of the recipes

Code:
##############################
# Gentoo related mail
##############################
                                                                                                                                               
##[gentoo-user] mailinglist
:0
* ^Subject:.*gentoo-user*
.Gentoo.gentoo-user/
                                                                                                                                               
##[gentoo-announce] mailinglist
:0
* ^Subject:.*gentoo-announce*
.Gentoo.gentoo-announce/
                                                                                                                                               
##[gentoo-dev] mailinglist
:0
* ^Subject:.*gentoo-dev*
.Gentoo.gentoo-dev/
                                                                                                                                               
##[gentoo-desktop] mailinglist
:0
* ^Subject:.*gentoo-desktop*
.Gentoo.gentoo-desktop/
                                                                                                                                               
##[gentoo-security] mailinglist
:0
* ^Subject:.*gentoo-security*
.Gentoo.gentoo-security/


The problem lies in the gentoo-dev section. The mail headed for gentoo-desktop keeps getting delivered to gentoo-dev instead. Am I missing something here? I haven't tried switching the two recipies around, but I don't understand why I would even need to try that. Any ideas?

deflin39
_________________
“The musicians today, who don't do drugs, and in fact speak out against it-"We're rockers against drugs"-boy, they suck. Suck. Ball-less, soul-less, spirit-less, corporate little bitches, suckers of Satan's cock, each and every one of them”–BillHicks
Back to top
View user's profile Send private message
papal_authority
Veteran
Veteran


Joined: 31 Mar 2004
Posts: 1823
Location: Canada

PostPosted: Thu Jan 06, 2005 10:57 pm    Post subject: Reply with quote

Does the gentoo-desktop subject contain the phrase gentoo-dev? I'd turn on verbose procmail logging and then sift through the log file. It will tell you what it did and what it didn't match on.
_________________
The free market gave me gonorrhea.
Back to top
View user's profile Send private message
deflin39
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2004
Posts: 105
Location: /dev/BIYJ

PostPosted: Thu Jan 06, 2005 11:16 pm    Post subject: Reply with quote

I've checked the full header, and gentoo-dev doesn't appear anywhere in there, unless I missed it. I added VERBOSE=on to my .procmailrc file, but I can't seem to located the log file. The procmail site says it should be .procmail/log, though I don't see it. I'll keep looking.

deflin39

[edit]I cannot find the friggen log file for procmail. Anyone know where it is?[/edit].
_________________
“The musicians today, who don't do drugs, and in fact speak out against it-"We're rockers against drugs"-boy, they suck. Suck. Ball-less, soul-less, spirit-less, corporate little bitches, suckers of Satan's cock, each and every one of them”–BillHicks


Last edited by deflin39 on Thu Jan 06, 2005 11:28 pm; edited 1 time in total
Back to top
View user's profile Send private message
papal_authority
Veteran
Veteran


Joined: 31 Mar 2004
Posts: 1823
Location: Canada

PostPosted: Thu Jan 06, 2005 11:28 pm    Post subject: Reply with quote

Maybe set LOGFILE=/full/path/to/where/you/want/the/logfile.
_________________
The free market gave me gonorrhea.
Back to top
View user's profile Send private message
deflin39
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2004
Posts: 105
Location: /dev/BIYJ

PostPosted: Thu Jan 06, 2005 11:35 pm    Post subject: Reply with quote

papal_authority wrote:
Maybe set LOGFILE=/full/path/to/where/you/want/the/logfile.


Thanks bro, the site I was reading didn't mention log files are not created by default. I have verbose logging setup now, so next time an email shoots threw there I will review the output and see if I can find the problem.

deflin39
_________________
“The musicians today, who don't do drugs, and in fact speak out against it-"We're rockers against drugs"-boy, they suck. Suck. Ball-less, soul-less, spirit-less, corporate little bitches, suckers of Satan's cock, each and every one of them”–BillHicks
Back to top
View user's profile Send private message
deflin39
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2004
Posts: 105
Location: /dev/BIYJ

PostPosted: Fri Jan 07, 2005 9:07 am    Post subject: Reply with quote

OK here is some output from the log file

Code:

procmail: No match on "^Subject:.Cron*"
procmail: No match on "^Subject:.*gentoo-user*"
procmail: No match on "^Subject:.*gentoo-announce*"
procmail: Match on "^Subject:.*gentoo-dev*"
procmail: Assigning "LASTFOLDER=.Gentoo.gentoo-dev/new/1105065886.9091_0.moe"
procmail: Notified comsat: "deflin39@0:/home/deflin39/.maildir//.Gentoo.gentoo-dev/new/1105065886.9091_0.moe
From gentoo-desktop-return-1739-deflin39=deflin.net@lists.gentoo.org  Thu Jan  6 20:44:46 2005
 Subject: Re: [gentoo-desktop] Re: Crazy mouse problems.
  Folder: .Gentoo.gentoo-dev/new/1105065886.9091_0.moe                     3223
"



This is the header:
Code:
Return-Path: <gentoo-desktop-return-1737-deflin39=deflin.net@lists.gentoo.org>
X-Original-To: deflin39 AT deflin DOT net
Delivered-To: deflin39 AT deflin DOT net
Received: from parrot.gentoo.org (lists.gentoo.org [156.56.111.196])
     (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
     (No client certificate requested)
     by mail DOT deflin DOT net (Postfix) with ESMTP id 8B3165007F
     for <deflin39 AT deflin DOT net>; Thu, 6 Jan 2005 20:35:57 -0600 (CST)
Received: (qmail 12011 invoked by uid 89); 7 Jan 2005 02:35:44 +0000
Mailing-List: contact gentoo-desktop-help@gentoo.org; run by ezmlm
Precedence: bulk
List-Post: <mailto:gentoo-desktop@gentoo.org>
List-Help: <mailto:gentoo-desktop-help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-desktop-unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-desktop-subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-desktop.gentoo.org>
X-BeenThere: gentoo-desktop@gentoo.org
Delivered-To: mailing list gentoo-desktop@lists.gentoo.org
Received: (qmail 24918 invoked from network); 7 Jan 2005 02:35:44 +0000
From: James Dio <jim-list@psunit.com>
To: gentoo-desktop@lists.gentoo.org
In-Reply-To: <1105065308.11904.21.camel@jimboy>
References: <1105065086.11904.18.camel@jimboy>
     <1105065308.11904.21.camel@jimboy>
Content-Type: multipart/alternative; boundary="=-Zb9u3rYX8leHRj5ka/Vp"
Organization: PSUnit Technologies
Date: Thu, 06 Jan 2005 21:35:57 -0500
Message-Id: <1105065357.11823.24.camel@jimboy>
Mime-Version: 1.0
X-Mailer: Evolution 2.0.3
Subject: [gentoo-desktop] Re: Crazy mouse problems.


I don't understand why the gentoo-desktop mail is going to the gentoo-dev folder. Why is the gentoo-dev recipe picking this up?

deflin39
_________________
“The musicians today, who don't do drugs, and in fact speak out against it-"We're rockers against drugs"-boy, they suck. Suck. Ball-less, soul-less, spirit-less, corporate little bitches, suckers of Satan's cock, each and every one of them”–BillHicks


Last edited by deflin39 on Sat Jan 08, 2005 1:14 am; edited 1 time in total
Back to top
View user's profile Send private message
deflin39
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2004
Posts: 105
Location: /dev/BIYJ

PostPosted: Sat Jan 08, 2005 12:52 am    Post subject: Reply with quote

Ok, just an update.

I removed the gentoo-dev entry in .procmailrc. By doing this, email to gentoo-desktop finally went to the correct folder, and gentoo-dev mail went to my default inbox. So I completely removed the gentoo-dev entry and remade it again, just in case vi added some strange character I wasn't accounting for. The problem still persist. :cry:

I guess I could put the gentoo-dev entry below the gentoo-desktop entry, but that would be a hack and I still don't understand what the problem is. If anyone has any ideas, I would be grateful.

deflin39
_________________
“The musicians today, who don't do drugs, and in fact speak out against it-"We're rockers against drugs"-boy, they suck. Suck. Ball-less, soul-less, spirit-less, corporate little bitches, suckers of Satan's cock, each and every one of them”–BillHicks
Back to top
View user's profile Send private message
papal_authority
Veteran
Veteran


Joined: 31 Mar 2004
Posts: 1823
Location: Canada

PostPosted: Sat Jan 08, 2005 1:28 am    Post subject: Reply with quote

Hah figured it out. It's because it should read: "^Subject:.*gentoo-dev.*" not "^Subject:.*gentoo-dev*". See the * means zero or more of the preceding character so in effect you're asking it to match "^Subject:.*gentoo-de" plus zero or more v's. Thus the extra preceding dot is needed for the last asterisk.
_________________
The free market gave me gonorrhea.
Back to top
View user's profile Send private message
deflin39
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2004
Posts: 105
Location: /dev/BIYJ

PostPosted: Sat Jan 08, 2005 1:45 am    Post subject: Reply with quote

Sweet!!! :D RegExp are not one of my strong points, but I pledge to work on it. Thanks for you help papal! Now I can get some sleep...

deflin39
_________________
“The musicians today, who don't do drugs, and in fact speak out against it-"We're rockers against drugs"-boy, they suck. Suck. Ball-less, soul-less, spirit-less, corporate little bitches, suckers of Satan's cock, each and every one of them”–BillHicks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum