Re: copy attachments to two destinations

Bart Schaefer <[email protected]>
Newsgroups gmane.mail.procmail
Message-ID <CABkvzcsWK0i64jVpFM2YosaWd44pJW9HCoq6V+TqTqe2ttKymg@mail.gmail.com>
On Tue, Nov 12, 2013 at 11:53 AM, Eric Smith <[email protected]> wrote:
> Hi
>
> I want to extract attachments from each email to two target
> folders. The following recipe gives this error:
> :0f
> | /usr/bin/uudeview -i +a  -p /home/eric/ -e .html -
> :0f
> |  /usr/bin/uudeview -i -p /someplace_else -e .html -

You don't want the "f" flag.  "Consider the pipe as a filter" means
that procmail will capture the standard output of the pipe and replace
the message contents with it.  Thus with the above, you'll have a
complete message only for the first pipe, and most likely an empty
message for the second pipe.

You want the "c" flag on the first recipe, and no flags at all on the
second one, though you might want to consider establishing a locking
protocol if attachments having the same name might arrive in two
different messages.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.