Rolan Yang wanted us to know:
Hey all, I've been putting together a little bit of scripting to do
vacation. It started from the example in the maildropex man pages and
now has a few protective things added to it, protective as in not
Mailbot works pretty well and does not reply to mailing lists.
http://gentoo-wiki.com/Maildrop_configuration#Autoreply
Seems like it does one less shell spawn, because it generates and sends
the message all in one shell. I'll experiment with it and with using
gdbm manually (which seems to accomplish the same thing, though I do
like mailbot handling that part outside of the scripting).
But two questions that I have.
1) The test for vacation.msg has && exit 1 || exit 0, then you check for
return code 1. Why not just do the test and check for return code 0
(without the extra two conditional commands)? What were you seeing that
would cause just a 'test -f vacation.msg' to return 0 when it should not
have? Is this a locking issue? Or just a SOP for you?
2) It tests for vacation.msg, then it reads the message from
$USER.autorespond.msg. Is that a typo? Should it be checking for the
existence of $USER.autorespond.msg instead of vacation.msg?