> I just want to check my understanding here: > > couriertcpd calls imaplogin to authenticate. > If imaplogin is satisfied it calls "imapd Maildir"
Right. > So imapd isn't a daemon but rather called each time? Does it re-read > it's config each time? Yes. imapd is started each time by couriertcpd as needed. imapd doesn't read a configuration file - it gets its configuration from the environment variables of its parent process, ie. couriertcpd. Since that reads its config only once, at startup, you can only change global imap settings by restarting couriertcpd. > What I am trying to get at is, if the IMAP_EMTPYTRASH variable was > changed to something like > > IMAP_EMPTYTRASH=`getUserTrashSettings` > > would it call that program for each connection? No. That would work only once. > I also guess that imapd is called under the user's name? Right. If you want to modify per-user settings, then you need something like: couriertcpd ... imaplogin ... shell-script.sh where shell-script.sh is something like: #!/bin/sh # # modify environment settings here.... # exec imapd Maildir > Just trying to get things sorted in my head. > > Peter Johnson > > > On Sun, 2003-01-12 at 10:22, Sam Varshavchik wrote: > > Juri Haberland writes: > > > > > Jesse Cablek wrote: > > >> Peter Johnson <[EMAIL PROTECTED]> scribbled; > > >>> > > >>> I like the feature in IMAPD that allows for messages older than a > > >>> certain day count to be automatically deleted by the server. It would > > >>> be nice if there was a file that each user could create whereby they > > >>> could nominate certain folders and day counts for message removal. > > >>> > > >>> e.g. > > >>> "Mailing Lists.Courier Users":7 > > >>> > > >>> This would purge messages older than 7 days from my > > >>> "Mailing Lists.Courier Users" folder. > > > Write a wrapper for imapd that sets the environment variable just prior to > > invoking imapd. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
