procmail
[Top] [All Lists]

Re: automatically filter mailinglists

2009-05-13 17:51:51
In reply on my own email:

I got the script to work (see http://pastie.org/477378). It processes the
emails and creates subfolders. However I still get an error message: Error
while writing
"/home/bjorn/Mail/.INBOX.mailinglists.symfony-users/_HTE.q3zCKB.hq" which I
presume has to do with the subfolder not existing yet. Or am I missing
something? Would this mean some emails will vanish until the subfolder has
been created?As in email#1 fails and triggers the create subfolder recipe,
"vanishes" and than email#2 and higher will be written without any errors
because the subfolder exists.

PROCMAIL LOG
procmail: Assigning
"INCLUDERC=/home/bjorn/.procmail/procmail-recipes/rc.mailinglists"
procmail: Assigning "INBOXPATH=/home/bjorn/Mail/.INBOX.mailinglists"
procmail: Assigning "FAILED_LIST_SORT=/home/bjorn/Mail/.INBOX.mailinglists"
procmail: Assigning "LISTNAME"
procmail: Score:       0       0 "^(List-Post:[ ]*(<mailto:)?|List-Owner:[
]*(<mailto:)?owner-) \/[-A-Z0-9_+]+"
procmail: Assigning "MATCH="
procmail: Matched "symfony-users"
procmail: Score: 2147483647 2147483647 "^(List-Id:.*<|X-Mailing-List:[
]*)\/[-A-z0-9_+]+"
procmail: Assigning "LISTNAME=symfony-users"
procmail: Match on ! "^^^^"
procmail: Executing "formail,-i,X-mydomain-Listname: symfony-users"
procmail: Locking "/home/bjorn/Mail/.INBOX.mailinglists.symfony-users/.lock"
procmail: Error while writing to
"/home/bjorn/Mail/.INBOX.mailinglists.symfony-users/_HTE.q3zCKB.hq"
procmail: [17607] Wed May 13 23:38:58 2009
procmail: Locking "/home/bjorn/Mail/.INBOX.mailinglists.symfony-users/.lock"
procmail: Error while writing to
"/home/bjorn/Mail/.INBOX.mailinglists.symfony-users/_HTE,q3zCKB.hq"
procmail: [17607] Wed May 13 23:39:06 2009
procmail: Locking "/home/bjorn/Mail/.INBOX.mailinglists.symfony-users/.lock"
procmail: Error while writing to
"/home/bjorn/Mail/.INBOX.mailinglists.symfony-users/_HTE+q3zCKB.hq"
procmail: [17607] Wed May 13 23:39:14 2009
procmail: Locking "/home/bjorn/Mail/.INBOX.mailinglists.symfony-users/.lock"
procmail: Error while writing to
"/home/bjorn/Mail/.INBOX.mailinglists.symfony-users/_HTE%q3zCKB.hq"
procmail: [17607] Wed May 13 23:39:22 2009
procmail: Locking "/home/bjorn/Mail/.INBOX.mailinglists.symfony-users/.lock"
procmail: Error while writing to
"/home/bjorn/Mail/.INBOX.mailinglists.symfony-users/_HTE.K4zCKB.hq"
procmail: [17607] Wed May 13 23:39:30 2009
procmail: Locking "/home/bjorn/Mail/.INBOX.mailinglists.symfony-users/.lock"
procmail: Error while writing to
"/home/bjorn/Mail/.INBOX.mailinglists.symfony-users/_HTE,K4zCKB.hq"
procmail: [17607] Wed May 13 23:39:38 2009
procmail: Locking "/home/bjorn/Mail/.INBOX.mailinglists.symfony-users/.lock"
procmail: Error while writing to
"/home/bjorn/Mail/.INBOX.mailinglists.symfony-users/_HTE+K4zCKB.hq"
procmail: [17607] Wed May 13 23:39:46 2009
procmail: Locking "/home/bjorn/Mail/.INBOX.mailinglists.symfony-users/.lock"
procmail: Error while writing to
"/home/bjorn/Mail/.INBOX.mailinglists.symfony-users/_HTE%K4zCKB.hq"
procmail: Lock failure on
"/home/bjorn/Mail/.INBOX.mailinglists.symfony-users/.lock"
procmail: Assigning
"LASTFOLDER=/home/bjorn/Mail/.INBOX.mailinglists.symfony-users/new/1242250786.17607_0.hq"
procmail: Notified comsat: "bjorn(_at_)0
:/home/bjorn/Mail/.INBOX.mailinglists.symfony-users/new/1242250786.17607_0.hq"

grtz
BjornW


On Wed, May 13, 2009 at 9:05 PM, buro bjorn <burobjorn(_at_)gmail(_dot_)com> 
wrote:

Sean et all,

Thanks for your reply. I 've used pastie.org because sending the procmail
recipe by email seems to mess it up. Perhaps using the linenumbers of the
pasted code makes it easier to comment on? I have changed the previous
recipe (see http://pastie.org/477175), but I'm not sure about the changes.
I'm trying to wrap my head around the 'code', but I really could use some
more guidance.

All the best,
grtz
BjornW


On Wed, May 13, 2009 at 6:03 PM, Professional Software Engineering <
PSE-L(_at_)mail(_dot_)professional(_dot_)org> wrote:

At 16:27 2009-05-13 +0200, buro bjorn wrote:

I found a recipe mentioned on this list (<
http://markmail.org/message/itmx5xyygrmopks5>
http://markmail.org/message/itmx5xyygrmopks5) for sorting mailinglists
automatically.
I tried to adapt the script (<http://pastie.org/476832>
http://pastie.org/476832)


FTR, sing a clipboard website makes it difficult to make comments to
specific lines of code...

The 9876543210^0 is a "maximal" score - anything that exceeds 2 to the
31st power (circa 2.1 billion) does, but this particular value is easy to
remember and key in, being a simple sequence.

Next, both the first recipe and the one that follows it, have no apparent
ACTION lines.  Actually, they do, but they're tacked onto the end of the
last condition line, which means they're evaluated as if part of THE
CONDITION.

Futher in, I note you have opening braces for several recipes starting on
the condition line.  That's not valid.  Might be fine in perl and C, but it
isn't valid for procmail.

With so many glaring syntax errors, it's tough to justify examining the
rules any deeper than that.

 procmail: Invalid regexp "^(List-Post:[ ]*(<mailto:
)?|List-Owner:[]*(<mailto:)?owner-) \/[-A-Z0-9_+]+"


Looks like your cut-n-paste lost spaces and tabs somewhere - the empty
character class after List-Owner is suspicious.  Quite often, the brackets
enclose a space and tab.

---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <
http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail



____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
<Prev in Thread] Current Thread [Next in Thread>