Alano Conraz
2012-Aug-27 09:11 UTC
[Dovecot] plugin development: retrieve username -d -f inside plugins
Hello, i don't know if it a the right place to ask my question related to the development of dovecot plugins, please correct me if it is not. 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. For example, when I use the deliver with "cat file.txt | deliver -d " user at domain.net" -f "me at domain.net" I would like to call a function that could return for me the argument of "-d" or "-f". i'm working with dovecot 2.0.17 by now. Thank you
Timo Sirainen
2012-Aug-27 09:15 UTC
[Dovecot] plugin development: retrieve username -d -f inside plugins
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).
Maybe Matching Threads
- use sieve plugin with variable and folders
- Dovecor 1.2 : Command output: Fatal: Unknown argument: flags=DRhu Usage: deliver [-c <config file>] [-a <address>] [-d <username>] [-p <path>] [-f <envelope sender>] [-m <mailbox>] [-n] [-s] [-e] [-k] )
- Maildir permissions on creation?
- Questions about hardlinks, alternate storage and compression]
- Indexer error after upgrade to 2.3.11.3