procmail
[Top] [All Lists]

Re: fortune mode with procmail

2007-03-27 17:07:59
On Tue, Mar 27, 2007 at 05:22:17AM +0200, 
bernard(_dot_)schoenacker(_at_)free(_dot_)fr wrote:

I wish to use an automatic system of answer (fortune mod) we
can read this documents in digest form ( see the URL below )
.....

http://www.gnu.org/philosophy/no-word-attachments.html


I already have some examples of models with automatic
response, but she can read  only the complete text ...

howto use and adapt the response by courtesy when become
a bad attachment of a foreing language ?

What is it you aren't able to do, exactly?  You say you have
some examples already.  (There is one in the procmailex man
page, for example, in the extended "vacation" recipe.)
What doesn't work?  Can you show some procmail code that
you're stuck with?

   :0
   * condition(s)
   * ! ^X-Loop: your(_at_)own(_dot_)mail(_dot_)address
   | (formail -r -k \
              -I "Precedence: junk" \
              -A "X-Loop: your(_at_)own(_dot_)mail(_dot_)address" ; \
          cat /path/to/message ) | $SENDMAIL -t

Pretty much right out of "man procmailex", though I added a sample
condition, added the -k flag to formail to quote the incoming body,
and changed 'echo "some message"' to 'cat path/to/mesage'.

Dallman



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