Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
procmail filtert falsch
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
seba45k
n00b
n00b


Joined: 24 Nov 2004
Posts: 2

PostPosted: Wed Nov 24, 2004 5:05 pm    Post subject: procmail filtert falsch Reply with quote

Hallo

Ich hole meine Emails von verschiedenen POP3 Accounts mit fetchmail ab und filtere sie ein bisschen mit procmail. Nur leider funktioniert procmail nicht richtig.

Erst einmal meine .procmail Datei
Code:
MAILDIR=$HOME/.maildir/
DEFAULT=$MAILDIR
LOGFILE=$HOME/proclog
VERBOSE=yes

:0
* ^Subject:.Cron*
.cron-jobs/

:0
* ^To.*meine1@email-adresse.net
.email1/

:0
* ^To.*meine2@email-adresse.de
.email2/

:0
* ^To.*meine3@email-adresse.de
.email3/

:0
* ^To.*meine4@email-adresse.net
.email4/

:0
* ^Subject:.[vdr]*
.vdr-list/

:0
.sonstige


Leider landen mit dieser config immer wieder Mails im Ordner vdr-list obwohl im Subject kein "[vdr]" vorkommt, warum auch immer. Im LOG Files steht auch nichts weiter, nur "Match on" bei diversen Mails. Warum? Ist ein Fehler in meiner .procmail Datei?
Bin für jeden Tipp dankbar.

MfG
Back to top
View user's profile Send private message
Robelix
l33t
l33t


Joined: 21 Jul 2002
Posts: 760
Location: in a World created by a Flying Spaghetti Monster

PostPosted: Wed Nov 24, 2004 6:00 pm    Post subject: Re: procmail filtert falsch Reply with quote

seba45k wrote:
Hallo
Code:

:0
* ^Subject:.[vdr]*
.vdr-list/

Leider landen mit dieser config immer wieder Mails im Ordner vdr-list obwohl im Subject kein "[vdr]" vorkommt, warum auch immer. Im LOG Files steht auch nichts weiter, nur "Match on" bei diversen Mails. Warum? Ist ein Fehler in meiner .procmail Datei?
Bin für jeden Tipp dankbar.
MfG

wundert mich nicht, du hast da "v oder d oder r" - ein bissl Regex-lernen schadet nie - kann man immer wieder mal brauchen 8)

Kurzantwort: mach' \[vdr\] d'raus.

(Edit:) und der * hat dort hinten auch nix verloren
Code:

* ^Subject:.*\[vdr\]


robelix
_________________
mysql> SELECT question FROM life, universe, everything WHERE answer=42;
Empty set (2079460347 sec)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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