27 Aug
2012
27 Aug
'12
12:15 p.m.
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).