procmail
[Top] [All Lists]

Re: procmail recipe on cpanel host

2007-07-17 20:48:25
Bart,

It seems that replacing "$MAILDIR/new" with only "$MAILDIR/" works fine. 
But replacing it with "mail/" does not. The message is NOT delivered, 
and according to the log file:

            procmail: Notified comsat: 
"george(_at_)0:/home/george/mail/mail/new/1184728872.31894_0.tau.genwebserver.com"
 


it appears that the message gets delivered to a non-existent 
"/mail/mail/new/" folder.

I don't understand it.

Thanks

gc






Bart Schaefer wrote:
On 7/16/07, George Cordahi <george(_at_)cordahi(_dot_)net> wrote:
  
 So procmail is "not properly configured" on the host system. Since my host
does NOT support procmail, I couldn't ask the system administrator to
reconfigure it. Instead I figured out, where the inbox queue directory is,
and modified my .procmailrc file accordingly. The inbox is "mail/new".
    

As LuKreme said, this is probably not quite right either.  More likely
the inbox is "mail" and the "new" subdirectory just happens to be part
of the housekeeping.

  
 Now I wonder, what is the significance, if any, of the message having the
filename "msg.u_EG" ?
    

That's the kind of unique name that procmail creates when it's told to
deliver mail to a directory that is not in MH format and is also not
in maildir format (which as also was mentioned has nothing to do with
the name of procmail's MAILDIR variable).

LuKreme's recipe correction was not quite right, though:  To get
maildir-format delivery you need a trailing slash on the folder name.
I'd suggest this:

-------------- .procmailrc -------------------
#Set on when debugging
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/log
VERBOSE=on
# This next line is probably a no-op
MAILDIR=$HOME

# test
:0
* ^Subject:.*testtest2.*
{
   :0 c
   ! user(_at_)xyz(_dot_)net

   :0
   mail/
}
---------------------------------------------
____________________________________________________________
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

  
____________________________________________________________
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>