25 Jun
2003
25 Jun
'03
1:51 p.m.
On Wed, 2003-06-25 at 04:41, seth vidal wrote:
silly request:
if dovecot does not have a .subscription yet but it does find a .mailboxlist file could it copy that file and try to use it automatically?
or would there be a way of providing modules that can perform certain commands as login modules for dovecot?
Something like this:
gcc -shared uwfix.c -o /usr/local/lib/dovecot/imap/uwfix.so
#include <stdlib.h> #include <sys/stat.h> #include <errno.h>
void uwfix_init(void) { if (stat("mail/.subscription") < 0 && errno == ENOENT && stat(".mailboxlist") == 0) { system("/bin/cp .mailboxlist mail/.subscriptions"); } }
void uwfix_deinit(void) {}