13 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Vacation scripting fo...
FromSent OnAttachments
Todd LyonsOct 13, 2005 1:59 pm 
Rolan YangOct 13, 2005 2:15 pm 
Todd LyonsOct 13, 2005 2:50 pm 
moussOct 13, 2005 6:27 pm 
Todd LyonsOct 14, 2005 11:37 am 
moussOct 14, 2005 3:39 pm 
Todd LyonsOct 14, 2005 4:05 pm 
moussOct 15, 2005 5:45 am 
Todd LyonsOct 17, 2005 10:48 am 
Ralf HildebrandtOct 18, 2005 5:21 am 
Todd LyonsOct 18, 2005 8:51 am 
Ralf HildebrandtOct 18, 2005 8:54 am 
Todd LyonsOct 19, 2005 12:12 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] Vacation scripting for maildropActions...
From:Todd Lyons (tly@ivenue.com)
Date:Oct 13, 2005 2:50:19 pm
List:net.sourceforge.lists.courier-maildrop

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?