<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<br>
Alexander Dalloz wrote:
<blockquote cite="mid1137267117.28741.27.camel@serendipity.dogma.lan"
 type="cite">
  <pre wrap="">Am Sa, den 14.01.2006 schrieb Lovell Mcilwain um 16:31:

  </pre>
  <blockquote type="cite">
    <pre wrap="">I seem to be having a bit of trouble getting procmail to filter e mails 
to individual mailboxes on my FC4 machine.

I am using fetchmail to poll my email to my machine and I want to use 
procmail rather my then my mail client to filter my e mail.  I don't 
have many mailboxes but I change machines often enough that its hard to 
keep updating my mail client filters.

When I tail my mail.log file it does show that .fetchmail is looking at 
my .forward file in my home directory so I am assuming that there is an 
issue with the syntax of my .procmailrc file.  Im new to using procmail 
so I copied and pasted some procmail examples into my .procmailrc file 
and gave it a whirl but no luck.

Any help is appreciated..


Here are what I have in my files:

.forward:

"|IFS=' ' &amp;&amp; exec /usr/bin/procmail || exit 75 #myusername"
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Why that kind of call? I assume you run  local MTA, which is Sendmail.
Correct? Then Procmail is called automatically and you don't need to use
a .forward for this.

  </pre>
</blockquote>
I have gotten rid of my .forward file so this is not out of the picture.<br>
<blockquote cite="mid1137267117.28741.27.camel@serendipity.dogma.lan"
 type="cite">
  <pre wrap=""></pre>
  <blockquote type="cite">
    <pre wrap="">.procmailrc:

# .procmailrc
# routes incoming mail to appropriate mailboxes
VERBOSE=off
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Why off? You are debugging, so use the power of logging verbosely.

  </pre>
</blockquote>
I turned this on so that I can start debugging.&nbsp; I have not taken a
look until Im sure that I have set up my .procmailrc file reasonably ok.<br>
<blockquote cite="mid1137267117.28741.27.camel@serendipity.dogma.lan"
 type="cite">
  <pre wrap=""></pre>
  <blockquote type="cite">
    <pre wrap="">MAILDIR=~/mail/IMAP #elm users might use $HOME/Mail instead
    </pre>
  </blockquote>
  <pre wrap=""><!---->
^^^ ? Really intended?
Be aware that "MAILDIR" does not imply to get Maildir format storage.

  </pre>
</blockquote>
I took a look at the man page and this doesn't seem to be related to
the MailDir format of the mailbox.&nbsp; The insert says <br>
**MAILDIR=$HOME/Mail&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #you'd better make sure it exists**<br>
Which makes me think based on the location, it wants me to specify the
directory where the mailboxes are stored that I want to send mail to
via procmail.<br>
<br>
<blockquote cite="mid1137267117.28741.27.camel@serendipity.dogma.lan"
 type="cite">
  <pre wrap=""></pre>
  <blockquote type="cite">
    <pre wrap="">#PMDIR=~/.procmail
DEFAULT=/var/mail/username
    </pre>
  </blockquote>
  <pre wrap=""><!---->
/var/spool/mail/&lt;user&gt; | /var/mail/&lt;user&gt; is the default INBOX spool, no
need to set that explicitly.
  </pre>
</blockquote>
I have commented this out.<br>
<blockquote cite="mid1137267117.28741.27.camel@serendipity.dogma.lan"
 type="cite">
  <pre wrap="">
  </pre>
  <blockquote type="cite">
    <pre wrap="">LOGFILE=~/procmail.log
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Look into your logfile for analyzing.

  </pre>
  <blockquote type="cite">
    <pre wrap="">#INCLUDERC=$PMDIR/default.rc
#INCLUDERC=$PMDIR/general.rc
#INCLUDERC=$PMDIR/lists.rc
#INCLUDERC=$PMDIR/guestbook.rc
#INCLUDERC=$PMDIR/spam.rc

# Put mail from mailing lists into mailboxs
:0:
* ^Subject:.*[Subject]
    </pre>
  </blockquote>
  <pre wrap=""><!---->
You have to escape special signs like "]".
  </pre>
</blockquote>
I have escaped the entire subject so now it reads:<br>
<pre wrap="">* ^Subject:.*"[Subject]"</pre>
<br>
<blockquote cite="mid1137267117.28741.27.camel@serendipity.dogma.lan"
 type="cite">
  <pre wrap="">
  </pre>
  <blockquote type="cite">
    <pre wrap="">Groups
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Better use absolute paths.

  </pre>
  <blockquote type="cite">
    <pre wrap="">:0:
* ^From.*fedora.*list.*list.*@
    </pre>
  </blockquote>
  <pre wrap=""><!---->
? The Fedora list is the recipient, not the From: sender. You may want
to catch

* ^Sender:.*fedora-list-bounces@redhat\.com

  </pre>
  <blockquote type="cite">
    <pre wrap="">Fedora2
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Very verbose Procmail documentation:

<a class="moz-txt-link-freetext" href="http://pm-doc.sourceforge.net/pm-tips-body.html">http://pm-doc.sourceforge.net/pm-tips-body.html</a>

Alexander


  </pre>
</blockquote>
</body>
</html>