"S.Toms" <tomas(_at_)primenet(_dot_)com> writes:
On Mon, 15 Nov 1999, ++++ Gary ++++ wrote:
g> is it possible to also receive a copy of the email from the sender ? At the
g> moment, the auto responder is emailed to them, but I don't receive their
g> email. Is this possible?
I believe that if you add the c flag ie: :0c it should do what your
asking for.
Yep.
:0c
* ^TOinfo
*!^FROM_DAEMON
*!^X-Loop: info(_at_)web-hosting(_dot_)co(_dot_)uk
|(formail -r -A "Precedence: junk"\
-I"From: Auto Reply " \
-I"Subject: Information Request " \
-A "X-Loop: info(_at_)web-hosting(_dot_)co(_dot_)uk"; \
cat $filedir/info.txt ) | $sendmail -t
I see two other bugs in the above: $sendmail should be capitalized and
there should be a space before the backslash that continues the first
line of the action. As it was originally written without indentation,
the lack of a space caused the "Precendence: junk" and the "-IFrom:
Auto Reply " to be joined into a single argument, resulting in the
addition just a Precedence: header field with the value
junk-IFrom: Auto Reply
Unless you have a specific reason for doing so, it's an excellant habit
to always put a space or tab before a newline used to continue an action.
:0 c
* ^TO_info
* ! ^FROM_DAEMON
* ! ^X-Loop: info(_at_)web-hosting\(_dot_)co\(_dot_)uk
|(formail -r \
-A"Precedence: junk" \
-A"X-Loop: info(_at_)web-hosting(_dot_)co(_dot_)uk" \
-I"From: Auto Reply" \
-I"Subject: Information Request"; \
cat $filedir/info.txt \
) | $SENDMAIL -t
Philip Guenther