| From | Sent On | Attachments |
|---|---|---|
| Joaquim Homrighausen | Jan 25, 2001 12:27 am | |
| Sam Varshavchik | Jan 25, 2001 4:22 am | |
| Joaquim Homrighausen | Jan 25, 2001 6:12 am | |
| Patrick Price | Jan 25, 2001 9:31 am | |
| Sam Varshavchik | Jan 25, 2001 3:05 pm | |
| Sam Varshavchik | Jan 25, 2001 3:06 pm | |
| Joaquim Homrighausen | Jan 26, 2001 12:13 am | |
| Sam Varshavchik | Jan 26, 2001 4:53 am | |
| Bill Michell | Jan 26, 2001 7:16 am | |
| Patrick Price | Jan 26, 2001 3:04 pm | |
| Patrick Price | Jan 26, 2001 5:28 pm | |
| Sam Varshavchik | Jan 26, 2001 5:48 pm | |
| Patrick Price | Jan 26, 2001 5:59 pm | |
| Sam Varshavchik | Jan 26, 2001 6:18 pm | |
| Patrick Price | Jan 26, 2001 6:34 pm | |
| Sam Varshavchik | Jan 26, 2001 7:04 pm | |
| Patrick Price | Jan 26, 2001 7:15 pm | |
| Joaquim Homrighausen | Feb 2, 2001 12:40 am | |
| Sam Varshavchik | Feb 2, 2001 4:47 am | |
| Joaquim Homrighausen | Feb 2, 2001 7:44 am |
| Subject: | Re: [courier-users] Re: Autoresponder? | |
|---|---|---|
| From: | Patrick Price (sysa...@moment.net) | |
| Date: | Jan 26, 2001 6:34:23 pm | |
| List: | net.sourceforge.lists.courier-users | |
At 02:18 AM 1/27/01 GMT, you wrote:
Patrick Price writes:
At 01:48 AM 1/27/01 GMT, you wrote:
Patrick Price writes:
I put this in .courier-test
| reformail -r > test.txt
Sent email to the account and examined the test.txt file which contained:
# cat test.txt From: vpop...@mail.moment.net
And that's it. Am I invoking reformail improperly?
Yes, provided that this is all you want your autoresponder to do. Usually, you want to do a few other things too.
-- Sam
The example I gave is just a tentative testing to find out how reformail works.
All I have to go on is you saying to invoke an autoresponder from a .courier file to run an external program like reformail:
"You can certainly take advantage of the preinitialized environment variables in order to automate the response, and take advantage of some bundled utilities. reformail will generate the autoresponse header, then just append your text to it, and run sendmail to mail out the result. "
So I started by trying to "generate the autoresponse header" which the reformail man page claims to do. So I tried to pipe it to a file and I don't see an "automatic reply to the message" so then I bug you.
How do I get this "set of headers" into a file so I can see them?
Either run preline to add the envelope sender information to the headers, which is used by reformail -r:
| preline reformail -r
Or, use the -t option to reformail:
| reformail -r -t
After I figure this out, then I have to figure out how to "just append (my) text to it".
Beats me. I'm thinking I need a C program to read stdin (the "header"), append a file to it, sent it to stdout, pipe that to sendmail. But I'm guessing at this point, stuck on the reformail step.
Simple shell scripting. For example:
| reformail -r -t | cat - /etc/autoresponder.txt | sendmail
There's your pretty basic autoresponder.
-- Sam
That little 'cat -' scrap you threw was worth the effort of my having to make clear to you the exact nature of my stupidity, which I surmise enabled you to determine what you needed to tell me so I would leave you alone on this subject. :^)
No mention of "cat -" in my old falling-apart copy of "The UNIX Programming Environment" by Kernighan and Pike. And of course I use cat daily and never RTF man page. I need a good shell programmers book, and Borders bookstore was full of crap when I went the other day. Still looking for that ultimate book on basic shell programming.
Thanks,
Patrick





