[Dovecot] plugin development: retrieve username -d -f inside plugins

Timo Sirainen tss at iki.fi
Mon Aug 27 12:15:49 EEST 2012


On 27.8.2012, at 12.11, Alano Conraz wrote:

> I'm trying some dovecot plugin development. I did a little plugin that suit
> my needs but i'd like to go further now... I would like to know if there is
> a kind of "getenv" function that I could call to retrieve in my plugin the
> username of the mailbox being delivered by dovecot-lda or served by imap
> server.

struct mail_user->username has it. How you get to struct mail_user depends on where you want to access it from. Note that each process is capable of handling multiple different users (although it's not commonly done).




More information about the dovecot mailing list