procmail doesn't work?!

This is a discussion on procmail doesn't work?! within the Mutt forums in Other Technologies category; Hello! I want procmail to filter my incoming mail from mutt-users in the folder in-mutt. I collect my mail with fetchmail ... but then the new mails from mutt-users are still comming in the standard "inbox" folder and not in the in-mutt :-( Should I make an explicit "procmail"-call after "fetchmail"? Or is there something wrong with my .procmailrc (s. below)? Thanks for any hint! Regards, Vlad P.S. Here my .procmailrc (whithout remarks, to be short) and a list of my directories in ~/Mail. I use SuSE Linux 8.2, if this are somewhere relevant ... vlad @ linux:~> la .procmailrc ...

Go Back   Application Development Forum > Other Technologies > Mutt

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 05-11-2004, 11:19 AM
Vlad Ghitulescu
Guest
 
Default procmail doesn't work?!

Hello!


I want procmail to filter my incoming mail from mutt-users in the folder
in-mutt.


I collect my mail with fetchmail ... but then the new mails from
mutt-users are still comming in the standard "inbox" folder and not in
the in-mutt :-(

Should I make an explicit "procmail"-call after "fetchmail"?
Or is there something wrong with my .procmailrc (s. below)?

Thanks for any hint!


Regards,
Vlad

P.S. Here my .procmailrc (whithout remarks, to be short) and a list of
my directories in ~/Mail. I use SuSE Linux 8.2, if this are somewhere
relevant ...

vlad@linux:~> la .procmailrc
-rw-r--r-- 1 vlad users 736 2004-05-11 10:57 .procmailrc
vlad@linux:~> vim .procmailrc

PMDIR=$HOME/Procmail/
LOGFILE=$PMDIR/procmail-log
VERBOSE=on
MAILDIR=$HOME/Mail
SHELL=/bin/bash

:0:
* ^Sender:.owner-mutt-users@mutt.org
in-mutt

vlad@linux:~> cd Mail
vlad@linux:~/Mail> ls
in-DATY in-linux in-mutt in-teresant in-test in-vim inbox
postponed sent sent-DATY sent-linux sent-mutt
vlad@linux:~/Mail> cd
vlad@linux:~> la -d Procmail/
drwxr-xr-x 2 vlad users 48 2004-05-04 19:23 Procmail/
vlad@linux:~> cd Procmail/
vlad@linux:~/Procmail> la
insgesamt 2
drwxr-xr-x 2 vlad users 48 2004-05-04 19:23 .
drwxr-xr-x 40 vlad users 2248 2004-05-11 11:41 ..
Reply With Quote
  #2  
Old 05-11-2004, 01:59 PM
Alan Connor
Guest
 
Default Re: procmail doesn't work?!

On 11 May 2004 08:19:29 -0700, Vlad Ghitulescu <Vlad.Linux@gmx.de> wrote:

[Followup set to comp.mail.misc where procmail/fetchmail are best discussed]

>
> Hello!
>
>
> I want procmail to filter my incoming mail from mutt-users in the folder
> in-mutt.
>
>
> I collect my mail with fetchmail ... but then the new mails from
> mutt-users are still comming in the standard "inbox" folder and not in
> the in-mutt :-(
>
> Should I make an explicit "procmail"-call after "fetchmail"?


You should have this line in your ~/.fetchmailrc:

and wants mda "/usr/bin/formail -ds /usr/bin/procmail"

That would go after the line where you identify your username
to fetchmail:

is yourusername here

Make sure the paths to both of those utilities are correct for
your system.


> Or is there something wrong with my .procmailrc (s. below)?
>
> Thanks for any hint!
>
>
> Regards,
> Vlad
>
> P.S. Here my .procmailrc (whithout remarks, to be short) and a list of
> my directories in ~/Mail. I use SuSE Linux 8.2, if this are somewhere
> relevant ...
>
> vlad@linux:~> la .procmailrc
> -rw-r--r-- 1 vlad users 736 2004-05-11 10:57 .procmailrc
> vlad@linux:~> vim .procmailrc
>
> PMDIR=$HOME/Procmail/
> LOGFILE=$PMDIR/procmail-log
> VERBOSE=on
> MAILDIR=$HOME/Mail
> SHELL=/bin/bash
>


Put the SHELL line at the top and follow it with a PATH line:

PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin

Making sure that's correct for your system.

I'd add a DEFAULT line for you inbox too:

DEFAULT=$MAILDIR/whatever

Make the last recipe:

:0:
${DEFAULT}

The recipe looks okay.



<snip>

AC

--
Pass-List -----> Block-List ----> Challenge-Response
The key to taking control of your mailbox. Design Parameters:
http://tinyurl.com/2t5kp || http://tinyurl.com/3c3ag
Challenge-Response links -- http://tinyurl.com/yrfjb
Reply With Quote
  #3  
Old 05-12-2004, 03:09 PM
s. keeling
Guest
 
Default Re: procmail doesn't work?!

On 11 May 2004 08:19:29 -0700, Vlad Ghitulescu <Vlad.Linux@gmx.de>:
>
> I want procmail to filter my incoming mail from mutt-users in the folder
> in-mutt.
>
> :0:
> * ^Sender:.owner-mutt-users@mutt.org
> in-mutt


Try putting a "*" after the first "." in the recipe, and you shouldn't
also need the hostname:

:0:
* ^Sender:.*owner\-mutt\-users
in-mutt

If this doesn't fix it for you, post the headers from one of the
messages you've sent to the list. btw, comp.mail.misc is a better
list to post procmail questions to.


--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://www.spots.ab.ca/~keeling
- - Spammers! http://www.spots.ab.ca/~keeling/spammers.html
http://learn.to/quote http://www.netmeister.org/news/learn2quote.html
Reply With Quote
  #4  
Old 05-13-2004, 03:29 AM
Vlad Ghitulescu
Guest
 
Default Re: procmail doesn't work?!

Alan Connor <zzzzzz@xxx.yyy> wrote in message news:<kw8oc.16330$V97.3216@newsread1.news.pas.eart hlink.net>...
> On 11 May 2004 08:19:29 -0700, Vlad Ghitulescu <Vlad.Linux@gmx.de> wrote:
>
> [Followup set to comp.mail.misc where procmail/fetchmail are best discussed]

Oops, sorry!
I hope, I've done this yet?!


> > I want procmail to filter my incoming mail from mutt-users in the folder
> > in-mutt.
> >
> >
> > I collect my mail with fetchmail ... but then the new mails from
> > mutt-users are still comming in the standard "inbox" folder and not in
> > the in-mutt :-(
> >
> > Should I make an explicit "procmail"-call after "fetchmail"?

>
> You should have this line in your ~/.fetchmailrc:
>
> and wants mda "/usr/bin/formail -ds /usr/bin/procmail"
>
> That would go after the line where you identify your username
> to fetchmail:
>
> is yourusername here

My .fetchmailrc looks like this:

poll pop.gmx.net protocol pop3 user "user1", with password "pass1", is "vlad" here;
poll pop.gmx.net protocol pop3 user "user2", with password "pass2", is "vlad" here;
poll pop3.web.de protocol pop3 user "user3", with password "pass3", is "vlad" here;

Where to put the new line

mda "/usr/bin/formail -ds /usr/bin/procmail"

, before the last '...is "vlad" here;"?
Or should I modify my .fetchmailrc to something like this:

poll pop.gmx.net protocol pop3 user "user1", with password "pass1"
poll pop.gmx.net protocol pop3 user "user2", with password "pass2"
poll pop3.web.de protocol pop3 user "user3", with password "pass3"
mda "/usr/bin/formail -ds /usr/bin/procmail"
is "vlad" here;

?


> Make sure the paths to both of those utilities are correct for
> your system.
> > Or is there something wrong with my .procmailrc (s. below)?
> >
> > Thanks for any hint!
> >
> >
> > Regards,
> > Vlad
> >
> > P.S. Here my .procmailrc (whithout remarks, to be short) and a list of
> > my directories in ~/Mail. I use SuSE Linux 8.2, if this are somewhere
> > relevant ...
> >
> > vlad@linux:~> la .procmailrc
> > -rw-r--r-- 1 vlad users 736 2004-05-11 10:57 .procmailrc
> > vlad@linux:~> vim .procmailrc
> >
> > PMDIR=$HOME/Procmail/
> > LOGFILE=$PMDIR/procmail-log
> > VERBOSE=on
> > MAILDIR=$HOME/Mail
> > SHELL=/bin/bash
> >

>
> Put the SHELL line at the top and follow it with a PATH line:
>
> PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin
>
> Making sure that's correct for your system.
>
> I'd add a DEFAULT line for you inbox too:
>
> DEFAULT=$MAILDIR/whatever
>
> Make the last recipe:
>
> :0:
> ${DEFAULT}
>
> The recipe looks okay.
>
>
>
> <snip>
>
> AC

Thanks again!
Vlad
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 05:13 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.