[Dovecot] Manage mails from server
I've configure Dovecot with shared namespace and IMAP ACL's to make a group mailboxes. I use maildir mailboxes, and I add dovecot-shared file to each group mailbox. So each user with access to group mailbox has their own \Seen flag. And now I need automatically delete a mail from server after 2 weeks after each user has readed email in shared mailbox.
How can I from, e.g. Perl script, get \Seen flag for user and mail and then correctly delete a mail from a server? I need to create fully automatical mail system, maybe there is some HOW-TO's or examples anywhere?
And will I can in 2.0 use per-user \Deleted flag, not only \Seen?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Fri, 2 Apr 2010, Неворотин Вадим wrote:
How can I from, e.g. Perl script, get \Seen flag for user and mail and then
Use PREAUTH sessions on behalf of each user to get the user-specific flag.
Regards,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBS7sojr+Vh58GPL/cAQJcwwf/TvlJNvGEJ8BaE8h4MAPb3eAhF4kb66Ii cPYWUQkTnehlVeDz1QdEPgWGZ0+J+QY0YH8so0S71zOkCVUNQ2vXRsr4EmMVF3An 1CqdcDEKRgOIz4IeYjbotFQaR4J1cXgwbC4SMXjCgbNLIRYVU9AKagg0y6Q+dTuB oF4bXNx1VfElBX+VFvhbYdOyGcWaYhzrntksw32oQQWQBJ4NLMTqqhv8myoGBtUw BwGglp0zjPIUYTih6Nh+AqpH9Orz01UAQM7BTXGaiNRRPyXAGP/Dggtsrq08I5hP OcszBG+cyULtPObq98/k4bkXLkeAXGuEMXfk+UtDzGq51TLN8OqPZQ== =P1tL -----END PGP SIGNATURE-----
Hmm, PREAUTH is cool. But all Perl CPAN modules for IMAP can work only throw UNIX local sockets (or usual internet connection). May be there is an ability to create a socket when launchind 'dovecot --exec-mail imap' instead of working directly with STDIN/STDOUT?
On Thu, 2010-04-08 at 01:38 +0400, Неворотин Вадим wrote:
Hmm, PREAUTH is cool. But all Perl CPAN modules for IMAP can work only throw UNIX local sockets (or usual internet connection). May be there is an ability to create a socket when launchind 'dovecot --exec-mail imap' instead of working directly with STDIN/STDOUT?
With v2.0 you can add a UNIX socket listener to IMAP, but you still have to log in with it. Maybe you should enable some kind of master user logins. http://wiki.dovecot.org/Authentication/MasterUsers
Thanks! Master Users are very good solution for me.
2010/4/8 Timo Sirainen tss@iki.fi
Hmm, PREAUTH is cool. But all Perl CPAN modules for IMAP can work only
On Thu, 2010-04-08 at 01:38 +0400, Неворотин Вадим wrote: throw
UNIX local sockets (or usual internet connection). May be there is an ability to create a socket when launchind 'dovecot --exec-mail imap' instead of working directly with STDIN/STDOUT?
With v2.0 you can add a UNIX socket listener to IMAP, but you still have to log in with it. Maybe you should enable some kind of master user logins. http://wiki.dovecot.org/Authentication/MasterUsers
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, 8 Apr 2010, Неворотин Вадим wrote:
Hmm, PREAUTH is cool. But all Perl CPAN modules for IMAP can work only throw UNIX local sockets (or usual internet connection). May be there is an ability to create a socket when launchind 'dovecot --exec-mail imap' instead of working directly with STDIN/STDOUT?
Beside the master user, there is a work-around: netcat
nc -l -p $port -c "dovecot --exec-mail imap"
it creates a port and forwards the communication to the stdin/stdout of the program.
Regards,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBS72Vh7+Vh58GPL/cAQKEswf/VPFJdxXrxeAEMzHPH290CQW4I7jtz1ao kz2DJbiXgPs/yRNGDKqpnjEFkKwStfRlpNWfVadTi/VY1xGHht5RVjUbyCu8uUis Z2gZW6Vbve9br+ZKdrTU5AWDgzI7Kk8AHlJQSonQ5L/l1txtbSgUF/lIBYawhx6A /CTMGAAZhnpZ28/jkuMXiJu+dB3K1OPc1rAWfXxLgI6pVs5GPj4y4uDiyhxbE/hM pV/z4M9OaBWw/HNm5ta0vYlMLqkhhmGm1+P7kIsoTWr0IKFAQLNMlc00eRsudi0X fzaeo6gg9HvRi1lEayOAhOZiPX6+OXXDSG6WFhQ62DPDAOP3oG2HnA== =2sDP -----END PGP SIGNATURE-----
participants (3)
-
Steffen Kaiser
-
Timo Sirainen
-
Неворотин Вадим