Hi Rolan,
Up to now I haven't paid much attention to mailbot as the other examples
I have looked at don't use it. I'll definitely look at it in depth next
week. My intention was to have the vacation message stored as a db
field as well, which users could edit. That seems like a much cleaner
way of doing things than the mailfilter and vacation files.
Dave
On Thu, 2005-18-08 at 15:33 -0400, Rolan Yang wrote:
That is a lot of reinventing the wheel. Mailbot does a decent job.
How are you allowing users to configure the autoreply? I created a
squirrelmail plugin that adds 2 files to the users' "virtual" home
directory.
One is the vacation message (vacationg.msg)
The second creates or modifies the .mailfilter file adding the following
lines:
`test -f vacation.msg && exit 1 || exit 0`
if ($RETURNCODE==1)
{
cc "| mailbot -t vacation.msg -A 'From: us...@domain.com'
/usr/sbin/sendmail -f ''"
}
add the -d and -D mailbot options to set the amount of time before the
next autoreply message should be sent to the same user (man mailbot)
David Peck wrote:
Hi,
I have searched the mail list archives and wasn't able to find an
answer, so I'm hoping somebody can help me out.
I've been using Courier for IMAP/S and POP3/S access on my Postfix based
MTA for the last couple of years. It works great, but I'm currently
building a new system that has all user accounts, and aliases stored in
Postgresql tables.
I am using Maildrop to handle the final delivery of the mail to the
accounts, all of which are virtual. I want to set up an autoreply
system that uses a value stored in a users table, but am having problems
getting maildrop to see the variable.
In authpgsqlrc, I have:
PGSQL_AUXOPTIONS_FIELD 'autoreply=' || autoreply || ',disabled=' ||
disabled