[Dovecot] plugin development: retrieve username -d -f inside plugins
Timo Sirainen
tss at iki.fi
Mon Aug 27 16:51:03 EEST 2012
On 27.8.2012, at 16.47, Alano Conraz wrote:
> 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).
>
> i'm not sure to understand the last part. mail_user->username is a char *, right ? What is the content of the string if there is multiple users ?
> Thanks for your answer btw.
Each user has a separate struct mail_user. I was mainly trying to say that that's the reason for why there's no global variable or such where you can get access to the username.
More information about the dovecot
mailing list