The rule in your procmail is doing as its told... from what John
Clarke told me the c in the directive means copy to file you state.

Have a read of this, as John sent me yesterday. I believe a section
will describe your fault. You need to add another rule to the end of
your procmailrc to tell it which mailbox to delivery too.

-- snip --
Tips: when playing with new rules (especially until you're comfortable
with procmail) save a backup copy of messages *before* the new rules
(see man procmailex for a rule to do this); always use a lock file when
writing to a file; when writing to a pipe a lock file is optional but
must be explicitly named.

Implicit lock filenames are only allowed when writing to a file (the
name is based on the filename).  To use an explicit lock filename, put
the name after the second ':', e.g.:

   :0 c: .sa.lock
   * < 256000
   | sa-learn --spam

   :0:
   Mail/probably-spam/

This rule pipes any message less than 256000 bytes in size to sa-learn,
telling it to treat it as spam, using .sa.lock as the lock file,
followed by a rule to save it in a mailbox (Maildir format) called
"Mail/probably-spam".  This is a trap I have on one particular address
which gets not much other than spam.  Anything expected is filtered out
before this rule, the rest is almost certainly spam.  If it's not, I
simply pipe it to "sa-learn --ham" to reverse the previous learning.

Another useful rule is one that filters duplicate messages:

   :0 Wh: msgid.lock
   | formail -D 8192 .msgid.cache

It stores message ids in .msgid.cache, and if there's a match, formail
returns 0 which causes procmail to consider the mail delivered and
terminate.  If there's no match, it returns a non-zero value so
procmail continues processing the rules which follow.

Procmail is highly cryptic, very powerful, and very unforgiving and
therefore dangerous.  It's also very useful and I couldn't live without
it.
-- snip --


On Fri, 17 Dec 2004 13:02:24 +1100 (EST), [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> 
> This is the only rule in my .procmailrc:
> 
> :0 c
> /home/david/BackupAllEmails
> 
> and .forward looks like this:
> 
> |/usr/bin/procmail
> 
> Unfortunately, it dumps incoming mail into the backup file, but doesn't
> also pass it through to the local mail delivery. What have I done wrong?
> 
> --
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
>
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to