procmail
[Top] [All Lists]

Re: Auto-reply recipe

2000-10-21 14:18:43
Subba responded,

| Thanks for replying! I was trying to put a personal message to the person
| in headhunter.com. That message was in headhunter.txt file which should be
| the printed first followed by "-- Your Message --" and then the original
| message.

That's why "cat headhunter.txt - " was in there.   Is the headhunter.txt file
in the directory set by the MAILDIR variable?  If not, use a full absolute
path to it, or $HOME/path/from/your/home/headhunter.txt, or a relative path
from the current value of MAILDIR.

What does a verbose logfile say?  Also, be sure that headhunter.txt ends with
a blank line to separate it from the "-- Your Message --" marker, but I've a
feeling that cat cannot find it because it's in a different directory.

| I would prefer a trailing "-- Your Message --"

"-- Your Message --" should come after headhunter.txt and before the returned
message, right?

| For the reply, how can I avoid the extra information from the header, such as
| "Received: " and "Message-ID" fields?

That depends on whether there are certain fields you want to remove (while
you keep all others) or certain fields you want to keep (while you remove
all others).  I'd say to put, respectively, the appropriate formail -I or
formail -kX command string into the first pipe either before expand or be-
tween expand and sed ... preferably before expand because it will reduce the
size of the text.

| Thanks for the tips and suggestions on testing and formail.lock file!
| It is a very clean and compact solution.

You're welcome.  Good luck.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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