procmail
[Top] [All Lists]

fetchmail+procmail+mutt= Mailbox was externally modified. Flags may be wrong.

2008-01-28 10:13:47
Greetings list,

First time caller, and  I seem to have a small procmail issue.  
Although I'm not 100% sure if it is a procmail issue or fetchmail.  I've 
searched through and read the manual pages, list-archives, faq's and 
have not located a clear solution to this minor problem.

Here's my system setup:
O/S: OpenBSD 4.0 (i386) Stable
fetchmail-6.3.4
procmail v3.22 2001/09/10
mutt 1.4.2.2i (2006-07-14)
msmtp-1.4.6 (SMTP plugin for MUAs)

.fetchmailrc
----------------------------------------------------
set daemon 300
set syslog
poll pop.gmail.com protocol POP3
        username "luisjcortes(_at_)gmail(_dot_)com" there with
        password "xxxxxxx" is echo here keep ssl
        and wants mda "/usr/local/bin/procmail"
----------------------------------------------------

.procmailrc
----------------------------------------------------
SHELL=/bin/sh
PMDIR=$HOME/Procmail
LOGFILE=$PMDIR/pmlog
LOG="
 "
MAILDIR=$HOME/mbox
INCLUDERC=$PMDIR/rc.testing
# EOF (workaround for procmail-v3.22 bug)
----------------------------------------------------

.rc-testing
----------------------------------------------------
:0:
* ^Subject:.*test
IN-testing
----------------------------------------------------

.muttrc
----------------------------------------------------
set folder=$HOME/mbox
set mail_check=5
set record="+sent"
set mbox_type=mbox
.
.
.
----------------------------------------------------

.forward-disabled (I'm not using .forward)                  
----------------------------------------------------                      
"|/usr/local/bin/procmail"
----------------------------------------------------

I recently installed and configured fetchmail, mutt, and msmtp.  All 
three programs were working properly until I introduced procmail into 
the equation.  Mutt now complains in the following two ways.

When I receive new mail in my mail spool (/var/mail/echo) it 
complains...

Mailbox was externally modified.  Flags may be wrong.

...or if I use mutt to read a procmail created mbox-file it complains...

/home/echo/mbox/IN-testing is not a mailbox.

Procmail log does not give out any errors which tells me procmail is 
working (I guess).

----------------------------------------------------
$ cat Procmail/pmlog                                                     
  Subject: procmail test
  Folder: IN-testing                                                     
  2741

  Subject: XXXXXXXX
  Folder: /var/mail/echo                                                 
  2728
$
----------------------------------------------------

I've been following the recommended testing proceedure as listed 
here:
http://www.ii.com/internet/robots/procmail/qs/#steps

So when I send myself two messages one with "procmail test" and one 
with "XXXXXXXX" in the subject line procmail does filter it just not in 
the correct mbox-style format.

I've also noticed that a mutt created (mbox-file) such as 
/home/echo/mbox/sent begins like this:
----------------------------------------------------
$ more /home/echo/mbox/sent
From elpinguim(_at_)gmail(_dot_)com Sun Jan 27 09:44:10 2008
Date: Sun, 27 Jan 2008 09:44:10 -0800
From: elpinguim <elpinguim(_at_)gmail(_dot_)com>
To: luisjcortes(_at_)gmail(_dot_)com
Subject: procmail test
Message-ID: <20080127174410(_dot_)GA20649(_at_)gmail(_dot_)org>
Reply-To: elpinguim <elpinguim(_at_)gmail(_dot_)com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.4.2.2i
Status: RO
Content-Length: 50
Lines: 3
.
.
.
----------------------------------------------------

And a procmail filtered file begins like this:
----------------------------------------------------
$ more /home/echo/mbox/IN-testing
Delivered-To: luisjcortes(_at_)gmail(_dot_)com
Received: from gmail-pop.l.google.com [72.14.253.109]
        by angst.cox.net with POP3 (fetchmail-6.3.4)
        for <echo(_at_)localhost> (single-drop); Sun, 27 Jan 2008 14:44:56 
-0800 (PST)
Received: by 10.142.254.4 with SMTP id b4cs165393wfi;
        Sun, 27 Jan 2008 14:44:19 -0800 (PST)
Received: by 10.140.172.19 with SMTP id 
u19mr1094906rve.21.1201473859120;
        Sun, 27 Jan 2008 14:44:19 -0800 (PST)
Return-Path: <elpinguim(_at_)gmail(_dot_)com>
Received: from wa-out-1112.google.com (wa-out-1112.google.com 
[209.85.146.183])
.
.
.
----------------------------------------------------

And my mail spool begins like this:
----------------------------------------------------
$ more /var/mail/echo
Delivered-To: luisjcortes(_at_)gmail(_dot_)com
Received: from gmail-pop.l.google.com [72.14.253.109]
        by angst.cox.net with POP3 (fetchmail-6.3.4)
        for <echo(_at_)localhost> (single-drop); Sun, 27 Jan 2008 14:44:57 
-0800 (PST)
Received: by 10.142.254.4 with SMTP id b4cs165413wfi;
        Sun, 27 Jan 2008 14:44:42 -0800 (PST)
Received: by 10.114.78.1 with SMTP id a1mr583692wab.14.1201473881967;
        Sun, 27 Jan 2008 14:44:41 -0800 (PST)
Return-Path: <elpinguim(_at_)gmail(_dot_)com>
Received: from wa-out-1112.google.com (wa-out-1112.google.com 
[209.85.146.183])
.
.
.
----------------------------------------------------


So my question is why the two differences ("sent" vs. "IN-testing" & 
"echo") in mail formats and how do I correct it so that mutt can read it?

As you can see I've decided to use mbox style maildir.  I don't see where 
my error lies.  I must be missing something totally obvious and hopefully 
someone here would nice enough to hit me with a clue stick ;) or 
just point me in the right direction.

Kind regards,

Luis

-- 
i am jack's annoying signature.
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>