-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday, 2014-08-19 at 13:50 +0200, Carlos E. R. wrote:
On 2014-08-19 07:52, Charles Philip Chan wrote:
Here is where we differ. I prefer using dovecot for final deliver. Here
is the relevant lines from my .procmailrc:
,----
| VERBOSE=off
| DELIVER="/usr/lib/dovecot/dovecot-lda"
| LOGFILE=$HOME/.procmail.log
| LOCKEXT=.lock
| MAILDIR=$HOME/Maildir
| LOG="
| "
`----
To deliver to the default inbox, all you need is a rule like this:
,----
| # Default
| :0 w
| | $DELIVER
`----
This is very interesting!
I'm seeing one issue with the lock file.
For instance, this rule:
:0f
* ^X-Mailinglist: opensuse
| /usr/bin/formail -bfi 'Reply-To: "OS-en" '
:0 aw:
| $DELIVER -m _Lists/y_gml_os-unifd
results in these log entries (trimmed a bit):
procmail: [4228] Wed Aug 20 04:41:27 2014
procmail: No match on "^X-Mailinglist: opensuse-security-announce"
...
procmail: Match on "^X-Mailinglist: opensuse"
procmail: Executing " /usr/bin/formail -bfi 'Reply-To: "OS-en" '"
procmail: Couldn't determine implicit lockfile from "/usr/lib/dovecot/dovecot-lda"
procmail: Locking ".lock"
procmail: Executing "/usr/lib/dovecot/dovecot-lda,-m,_Lists/y_gml_os-unifd"
procmail: Assigning "LASTFOLDER=/usr/lib/dovecot/dovecot-lda -m _Lists/y_gml_os-unifd"
procmail: Unlocking ".lock"
procmail: Notified comsat: "cer@:/usr/lib/dovecot/dovecot-lda -m _Lists/y_gml_os-unifd"
- From opensuse+bounces-.....
Subject: Re: [opensuse] Re: MTA agent clarity and usefulness
Folder: /usr/lib/dovecot/dovecot-lda -m _Lists/y_gml_os-unifd 8509
You see, it can not determine the appropriate lockfile, and uses the
default one, ie, just ".lock". This impedes delivery to any other folder
at the same time, which would be other way possible.
Unless the lockfile can be disabled for "dovecot-lda"... :-?
The manual says:
Couldn't determine implicit lockfile from "x"
There were no `>>' redirectors to be found, using simply `$LOCKEXT' as locallockfile.
In "procmailex(5)" it says that on this rule:
:0 hwc:
* !^FROM_MAILER
| uncompress headc.Z; cat >>headc; compress headc
it uses `headc.lock' as lock file, ie, the file after the redirection, as
the error message explanation says.
So we have to either disable lock files, or set one appropriately,
different for each destination folder.
Perhaps:
:0f : y_gml_os-unifd.lock
* ^X-Mailinglist: opensuse
| /usr/bin/formail -bfi 'Reply-To: "OS-en" '
:0 aw:
| $DELIVER -m _Lists/y_gml_os-unifd
Or two different lock files, one per section? I believe not.
procmailrc(5) says:
Local lockfile
If you put a second (trailing) ':' on the first recipe line, then
procmail will use a locallockfile (for this recipe only). You can
optionally specify the locallockfile to use; if you don't however,
procmail will use the destination filename (or the filename
following the first '>>') and will append $LOCKEXT to it.
I don't know.
- --
Cheers,
Carlos E. R.
(from 13.1 x86_64 "Bottle" at Telcontar)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
iEYEARECAAYFAlP0cv4ACgkQtTMYHG2NR9VfSACglvVAgSNO7WMpO87Whs/XVJOF
fJ8AoIv65UsVBlcaqp5LtUsDezjbKqyx
=dXdi
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org
To contact the owner, e-mail: opensuse+owner@opensuse.org