You are not logged in.

#1 2007-10-19 02:30:31

mezoko
Member
Registered: 2005-03-26
Posts: 310
Website

Procmail Configuration Help

Hi

I'm trying to set up procmail, and I know i get it to work but I can't get it to move email to the dir I want

My Config: .procmailrc

##PROC MAIL CONFIGURATION

LOGFILE=$MAILDIR/procmail.log

:0 ic
|sudo beep -r 3 -l 25 -D 25 -n -f 1000 -l 25

:0
* ^From: mezoko@gmail.com
$MAILDIR/.gmail/

I hear the beep and there is procmail.log file but whenever I send email from my gmail account to my account on the machine the mail just goes to my inbox.

Here is my /home/mezoko/.maildir structor

 /home/mezoko/.maildir
.   .Audrey  .Emails  .Newegg        .School  .Trash  courierimapkeywords    courierimapuiddb  new           tmp
..  .Drafts  .Junk    .SAT Question  .Sent    .gmail  courierimapsubscribed  cur               procmail.log
/home/mezoko/.maildir/.gmail
courierimapacl  courierimapkeywords  courierimapuiddb  cur  maildirfolder  new  tmp

Any help would be great!!!
I'm at a lost and I know I"m so close!! sad
Thanks,
Mezoko


"The only thing we have to fear is fear itself." - Franklin D. Roosevelt

Offline

#2 2007-10-19 08:07:10

onearm
Member
From: Anywhere but here
Registered: 2006-07-06
Posts: 359
Website

Re: Procmail Configuration Help

Try adding .* to the From line thus (unless you are absolutely sure that there is only a single space before your mail address)

:0
* ^From:.*mezoko@gmail.com
$MAILDIR/.gmail/

To get something done, a committee should consist of no more than three persons, two of them absent.
--
My Github

Offline

#3 2007-10-19 10:58:34

mezoko
Member
Registered: 2005-03-26
Posts: 310
Website

Re: Procmail Configuration Help

That does wonders!!

So tried to set up a filter that move anything with [arch] in the subject to my Arch mail folder, but all mail goes to the [arch] folder.

:0
* Subject:.*[arch].*
$MAILDIR/.Arch/

I even tried removing the .* after [arch]

EDIT:
Found another example and got it working with

:0 
* ^Subject:.*[arch]      
$MAILDIR/.Arch/

Last edited by mezoko (2007-10-19 11:03:23)


"The only thing we have to fear is fear itself." - Franklin D. Roosevelt

Offline

#4 2007-10-19 12:31:16

mezoko
Member
Registered: 2005-03-26
Posts: 310
Website

Re: Procmail Configuration Help

Ok I lied

:0 
* ^Subject:.*[arch]      
$MAILDIR/.Arch/

Some Mail goes to the arch folder while other goes to the INBOX, this is mail without [arch] in the subject


"The only thing we have to fear is fear itself." - Franklin D. Roosevelt

Offline

#5 2007-10-20 07:17:04

onearm
Member
From: Anywhere but here
Registered: 2006-07-06
Posts: 359
Website

Re: Procmail Configuration Help

mezoko wrote:

Ok I lied

:0 
* ^Subject:.*[arch]      
$MAILDIR/.Arch/

Some Mail goes to the arch folder while other goes to the INBOX, this is mail without [arch] in the subject

Maybe I misunderstand, but this is normal behaviour, if there isn't [arch] in the subject line than this rule won't match and the mail will go to the inbox folder.


To get something done, a committee should consist of no more than three persons, two of them absent.
--
My Github

Offline

#6 2007-10-20 11:13:14

mezoko
Member
Registered: 2005-03-26
Posts: 310
Website

Re: Procmail Configuration Help

I must have nto made myself clear, there was mail that did not contain [arch] on the subject line that still get filtered info the folder


"The only thing we have to fear is fear itself." - Franklin D. Roosevelt

Offline

Board footer

Powered by FluxBB