On 2004-06-30 21:46, "Andrew L. Gould" <[EMAIL PROTECTED]> wrote:
> Problem:
> If I put 'mda /usr/local/bin/procmail' in the .fetchmailrc lines,
> procmail puts the emails in the correct mbox files; but mutt complains
> that the files are not valid email files and refuses to read them.
> [...]
> Here's the top of .procmailrc and the freebsd recipe:
>     MAILDIR=/home/algould/pmail
>     LOGFILE=$MAILDIR/procmail.log
>     VERBOSE=1
>     DEFAULT=/home/algould/pmail/inbox
>     :0 :
>     * .*freebsd
>     /home/algould/pmail/freebsd

You're using a relatively strange way to specify the mailbox file name.
Setting $MAILDIR in .procmailrc means that you can simply use:

    :0 H
    * ^sender: [EMAIL PROTECTED]

Note the lack of path name in the mailbox file.  IMHO, it's simpler this
way.  You can even match all teh FreeBSD lists and save the messages in
`properly' named mailboxes like this:

    :0 H
    * ^Sender: [EMAIL PROTECTED]@freebsd.org
        :0 H
        * ^Sender: owner-cvs-\/[EMAIL PROTECTED]

        :0 H
        * ^Sender: owner-freebsd-\/[EMAIL PROTECTED]

Anyway, putting this aside for a while, you can see what procmail does
to your messages with:


Touch ~/procmail.log and start a tail -f on it.  Then fire up fetchmail
and watch the tail output.  This should at least give you a hint about
the actions of procmail.

Once a few messages get delivered to a mailbox, say `freebsd-questions',
stop fetchmail and look with a text editor at the mailbox file.  If it's
not corrupt, you should see something like this:

    [EMAIL PROTECTED]:~$ head mail/freebsd-questions | cat -vte
    From [EMAIL PROTECTED] Thu Jul  1 05:49:31 2004$
    Received: from igloo.linux.gr (gothmog [])$
    ^Iby gothmog.gr (8.12.11/8.12.11) with ESMTP id i612nNiG018351$
    ^Ifor <[EMAIL PROTECTED]>; Thu, 1 Jul 2004 05:49:31 +0300 (EEST)$
    ^I(envelope-from [EMAIL PROTECTED])$
    Received: from mx2.freebsd.org (mx2.freebsd.org [])$
    ^Iby igloo.linux.gr (8.12.10/8.12.10/Debian-2) with ESMTP id i612m2Oa002558$
    ^Ifor <[EMAIL PROTECTED]>; Thu, 1 Jul 2004 05:48:06 +0300$
    Received: from hub.freebsd.org (hub.freebsd.org [])$
    ^Iby mx2.freebsd.org (Postfix) with ESMTP$

Look carefully at the first line.  It shouldn't contain any special
characters (like the ^I characters shown further down) and the format
should be similar to the one above (starting with "From", followed
immediately by the sender address and then by a timestamp/date).
Otherwise, mailers will assume that this mailbox is either:

        a) broken

        b) not a mailbox file

Then you'll have to investigate why your procmail thinks that it should
use a mailbox format other than UNIX mbox.

- Giorgos

[EMAIL PROTECTED] mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to