[Dovecot] Can you POP a specific folder in Dovecot?

Timo Sirainen tss at iki.fi
Thu Oct 28 14:52:56 EEST 2010


On 28.10.2010, at 12.26, Peter Reinhold wrote:

> For instance, logging in with user at example.com would pop INBOX, and logging in with user-folder at example.com would pop just that specific folder.

Might be possible.. Assuming you're using Maildir?

First you'll need to extract the folder from the username in passdb and change the username to user at example.com. Put the folder into userdb_folder or something, so that you can access it in post-login script. The post-login script then would do something like:

if [ "$FOLDER" != "" ]; then
  MAIL=maildir:$HOME/Maildir/.$FOLDER
fi

Probably needs some more complexity, but basically I think that idea should work.


More information about the dovecot mailing list