[Dovecot] 0.99.10-rc3

Timo Sirainen tss at iki.fi
Wed Jun 25 14:51:01 EEST 2003


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) {}



More information about the dovecot mailing list