5 messages in net.sourceforge.lists.courier-maildrop[maildropl] Accessing Other Variables
FromSent OnAttachments
David PeckAug 18, 2005 11:54 am 
Rolan YangAug 18, 2005 12:42 pm 
David PeckAug 18, 2005 12:50 pm 
Rolan YangAug 18, 2005 1:02 pm 
Sam VarshavchikAug 18, 2005 3:39 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:[maildropl] Accessing Other VariablesActions...
From:David Peck (da@silverorange.com)
Date:Aug 18, 2005 11:54:07 am
List:net.sourceforge.lists.courier-maildrop

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

This concats the autoreply and disabled field in the Postgresql table into a single field that Courier-authlib can parse. If autoreply is set to 1, I want maildrop to reply to the message and store the sender address so that the sender will only get a single automated response. I have found examples of how to do this using a file in the users account, but not from a database field.

My question is - how can I access the values returned in PGSQL_AUXOPTIONS_FIELD from maildroprc? I have tried import PGSQL_AUXOPTIONS_FIELD, import options, etc, etc and none print out the value of that field. Is there a way to do this without adding code to maildrop?

Thanks

Dave