procmail
[Top] [All Lists]

Re: "auto-antwort" moeglich ?

1996-03-20 12:16:38
From: Martin Bruckmann <martin(_at_)ua(_dot_)pt>
Subject: "auto-antwort" moeglich ?
To: procmail(_at_)Informatik(_dot_)RWTH-Aachen(_dot_)DE
Date: Mon, 18 Mar 1996 11:28:04 +0000 (PWT)

Ist es moeglich, ProcMail als selektiver "Anrufbeantworter" zu
benuetzen, d.h. z.B. auf spezifische Felderinhaelte kommandos
auszufuehren ? Meine Idee waere z.B. :

Translation:  "Is it possible to use procmail as a selective 'answering
machine' such that, for example, it reacts to the contents of specific
fields?  [Answer: Yes!]  My idea would be, for example,"

if Subject = "send test reply"
  sendmail ~/auto_reply.txt

Ich habe dass mit "vacation" versucht, aber is ging nicht so besonders
gut... Was habe ich da falsch gemacht ?

Translation:  "I've tried it with 'vacation', but it didn't work very
well...  What did I do wrong?"

It looks like nobody has answered yet, at least publicly, perhaps
because you are writing in German.  Most of the people on the mailing
list don't speak German.  I do, so maybe I can help.  I will repeat what
I write, first in English, then, German down below.

Es scheint, dass niemand Dich bis jetzt beantwortet hat, wahrscheinlich
weil Du auf Deutsch schreibst.  Die Meisten auf der Liste koennen kein
Deutsch.  Ich kann und werde es versuchen, Dir zu helfen -- erst auf
Englisch, danach ouf Deutsch.


# Sending automatic reply for test purposes
#           \eric, ~|vacation -a allman eric~
:0
* ^Subject:.*test test test
\|vacation martin


First of all, it is possible to use both vacation and procmail simul-
taneously, but then you would want to put them both in your .forward
and leave the "vacation" command out of procmail.  Within procmail, it
is easy to send auto-replies filtered by specific header-fields, but
not particularly efficient or desireable to call "vacation" to do so
when procmail has its own syntax for doing the same thing.

Perhaps you have not seen "man procmailex", which contains multiple
examples, and certainly contains instructions on doing what you are
asking.

Zuerst ist es moeglich, gleichzeitig vacation u. procmail zu benutzen,
aber man wuerde dann durch .forward die beiden Programme rufen.  Inner-
halb procmail ist es leicht, automatische widersendungen aufzufuehren,
die von spezifischen Feldern rauskaemmen.  Aber dies durch "vacation" zu
fordern ist night besonders tuechtig. procmail hat dafuer sein eigenes
Syntax.  Hast Du zufaelligerweise "man procmailex" gesehen, worin Muster
u.  Anweisungen dafuer sind?

Here is a simple example for doing what you want, mostly plagiarized
from "man procmailex":


          :0 h c
          * !^FROM_DAEMON
          * !^X-Loop: your(_at_)own(_dot_)mail(_dot_)address
          | (formail -r -A"Precedence: junk" \
              -A"X-Loop: your(_at_)own(_dot_)mail(_dot_)address" ; \
             cat path/yourfile) | $SENDMAIL -t


If you don't want to see the incoming mail, take the "c" out of the
first line.

You need to have defined the "$SENDMAIL" varialbe up-top, of course.
E.G.,
                SENDMAIL=/usr/lib/sendmail

 
-- 
  __                               ___               dman(_at_)netcom(_dot_)com 
 (/ \  _   /) /) _ _ _  _    _    (/__) _   _   _    1 (510) 645-1883 
 /`  )(_(_( _(__/|/|/(_(_(_/| (   / (  (_)_/_)_/_)_  350 Perkins St., #108 
(___/                          ` (   \               Oakland, CA 94610-3422

<Prev in Thread] Current Thread [Next in Thread>