procmail
[Top] [All Lists]

Re: cannot create /IMAPdir//INBOX/: is a directory

2004-12-14 16:42:05
On Tue, 14 Dec 2004 12:53:11 -0700, Computer King
<maillist(_at_)computerking(_dot_)ca> wrote:
Bart Schaefer wrote:

Thank you for your help i have attached my .procmailrc file which points
to sb.rc the .Procmail file i have a pretty good grasp on but the sb.rc
seems a little overwhelming maybe you can figure out what it is trying
to do with the SB-Bulk folder and why i get those errors.

Aha.

Things would have gone a lot better if you'd explained in the first
place that you are using spambouncer.  For one thing, the author of
spambouncer lurks here sometimes and might have chimed in.

However, the real problem you're having is the spambouncer does not
support Maildir format folders.  It wants to write to a flat file
folder in old-fashioned unix mailbox format.

This actually could be avoided; I haven't looked at spambouncer in a
long time, but the clue to the failure is here:

  Folder:  ${FORMAIL} -A"X-Folder: Bulk"  >>${BULKFOLDER}                   
2561

Here, spambouncer is trying in a single line to add a header to the
message and write the
result out to the $BULKFOLDER.  See the ">>" ?  That's I/O
redirection, which uses the shell and entirely bypasses procmail's
rules for what kind of folder to create based on the presence of
slashes in the name.

If you replace this rule in spambouncer:

:0:
| ${FORMAIL} -A"X-Folder: Bulk" >>${BULKFOLDER}

With:

:0 fh
| ${FORMAIL} -A"X-Folder: Bulk"
:0 a:
${BULKFOLDER}

Then it should work.  But you'll have to search through the entire
spambouncer script to find all places where Catherine may have used "|
${FORMAIL} ... >> ${SOMEFOLDER}" and replace all of them with a
similar fix.

____________________________________________________________
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