[Dovecot] Obtaining the chroot-cage directory of the mailstore

Timo Sirainen tss at iki.fi
Wed Jan 7 17:55:14 EET 2009


On Wed, 2009-01-07 at 15:24 +0100, Stefan Jurisch wrote:
> Hello,
> 
> I'd like to find a function in the sourcecode which enables me to get
> the chroot-path of the mailstore, so I can concatenate it with the
> result of mail_storage_get_mailbox_path to get the full path of a
> mailbox within the filesystem.

What do you do with it since you're already inside chroot? Anyway you
should be able to get it with getenv("RESTRICT_CHROOT").

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20090107/1fca8db0/attachment.bin 


More information about the dovecot mailing list