Stefan Jurisch
2009-Jan-07 14:24 UTC
[Dovecot] Obtaining the chroot-cage directory of the mailstore
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. Does such a function exist? Who can help me? Thanks in advance. Stefan -- SIEGNETZ.IT GmbH { w3o-services } Schneppenkauten 1a D-57076 Siegen Tel.: 0271 68193-0 Fax: 0271 68193-29 Gesch?ftsf?hrer: Oliver Seitz Handelsregister-Nummer: HRB4838 Registergericht: Amtsgericht Siegen -------------------------------- Das Wort ?WINDOWS? stammt aus einem alten Sioux-Dialekt und bedeutet: ?Wei?er Mann starrt durch Glasscheibe auf Sanduhr.? -------------------------------- -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Timo Sirainen
2009-Jan-07 15:55 UTC
[Dovecot] Obtaining the chroot-cage directory of the mailstore
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: signature.asc 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-0002.bin>
Stefan Jurisch
2009-Jan-07 17:27 UTC
[Dovecot] Obtaining the chroot-cage directory of the mailstore
Hello, I try to access the files within the maildir-structure directly, because I want to store some files with status data there (I try to implement some experimental ACL stuff). So I thaught that I would need the root cage's path to access it in the file system. But I think you're surely right: I might not need the path , because... *hmm* I will try this!!! Anyway: thanks for the "getenv"-command respectivly the parameter! :-) Best regards Stefan On Wed, Jan 07, 2009 at 10:55:14AM -0500, Timo Sirainen wrote:> 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"). >-- SIEGNETZ.IT GmbH { w3o-services } Schneppenkauten 1a D-57076 Siegen Tel.: 0271 68193-0 Fax: 0271 68193-29 Gesch?ftsf?hrer: Oliver Seitz Handelsregister-Nummer: HRB4838 Registergericht: Amtsgericht Siegen -------------------------------- Das Wort ?WINDOWS? stammt aus einem alten Sioux-Dialekt und bedeutet: ?Wei?er Mann starrt durch Glasscheibe auf Sanduhr.? -------------------------------- -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.