procmail
[Top] [All Lists]

"Error while writing to:" but I can't find cause

2006-10-08 13:49:34
I recently installed procmail 3.22 on a Solaris 8 mail server running
postfix, and configured it to be the local delivery agent.  I have
been using procmail 3.11pre7 on my older mail server (also running
postfix, with procmail as the local delivery agent).  I copied the
same .procmailrc to the new server.

It reads and matches rules correctly.
It delivers to my spoolfile in /var/mail correctly,
 and to /dev/null for things that match some of my spam rules.
 and it even delivers to new folders in my $HOME/Mail/ directory correctly.

But when I moved one mail folder from the old server to the new
server, procmail stopped being able to deliver any new messages to
this folder:

  procmail: Error while writing to "FolderFile"
  procmail: Truncated file to former size

$HOME/Mail/FolderFile has my owner and group, and permissions 600

If I rename it (mv Mail/FolderFile Mail/FolderFile.save),
then procmail starts successfully delivering new messages to
Mail/FolderFile, which it creates with the same owner, group, and
permissions.  But if I open FolderFile.save in mutt (my MUA) and
copy all the messages from there into the new FolderFile, procmail
once again ceases to be able to deliver to it, with the same error.

If I set VERBOSE=on in .procmailrc, here's what I see from the point
where procmail matches the rule, until it fails to deliver and falls
over to the next rule:

procmail: Match on "FolderRule"
procmail: Locking "FolderFile.lock"
procmail: Assigning "LASTFOLDER=FolderFile"
procmail: Opening "FolderFile"
procmail: Acquiring kernel-lock
procmail: Error while writing to "FolderFile"
procmail: Truncated file to former size
procmail: Unlocking "FolderFile.lock"
procmail: No match on "cos\+dfalink"
procmail: Match on "massfordean"
procmail: Locking "FolderFile.lock"
procmail: Assigning "LASTFOLDER=FolderFile"
procmail: Opening "FolderFile"
procmail: Acquiring kernel-lock
procmail: Error while writing to "FolderFile"
procmail: Truncated file to former size
procmail: Unlocking "FolderFile.lock"

I'm stumped.  I don't know what error procmail is complaining about.
permissions are fine.  It can deliver to other folders.  It can
deliver to this one, if I let it create it anew.  But copying the old
messages into it makes it start getting the error again.

Suggestions?
  -- Cos

____________________________________________________________
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