procmail
[Top] [All Lists]

Re: Delivering messages fails

2006-12-11 03:17:28
Petter Grimsrud schreef:

I'm talking about /etc/procmailrc, which I beleive is
similar to

$HOME/.procmailrc but applies to all user accounts.

Similar yes, equal no. See also DROPPRIVS in man procmailrc.


But I got it working, thanks to the trailing slash. However, not
exactly as you suggested as illustrated below:

DEFAULT=$HOME/Maildir/

OK:

:0
* ^Subject:.*compilers
$DEFAULT/.Trash/

It is OK to set DEFAULT, but don't use it to build a new value.
Do it like this:

  MAILDIR = $HOME/Maildir    # no trailing slash
  DEFAULT = $MAILDIR/        # maildir-type delivery

  :0
  * ^Subject:.*compilers
  .Trash/                    # relative to $MAILDIR

Understand that the "maildir", "Maildir" and "MAILDIR" above are all
different and basically unrelated things.
- maildir: a type of delivery.
- Maildir: just a name of a directory inside your user's $HOME.
- MAILDIR: procmail's chdir command; the value of the present working
directory is in $MAILDIR. In case the chdir fails, $MAILDIR will return
just a dot.


:0
* ^Subject:.*compilers
.Trash/

Procmail log says Unable to treat as directory ".Trash" on the second
example.

Setting MAILDIR is the procmail chdir command. With procmail -v you can
find out what the default setting of MAILDIR is. At my account with my
ISP I do

  MAILDIR = $MAIL

to chdir to the right directory.


-- 
Groet, Ruud


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