Helmut K. C. Tessarek
2019-Mar-12 23:07 UTC
Re: “doveadm mailbox” command fails with UTF-8 mailboxes
On 2019-03-12 17:23, Timo Sirainen via dovecot wrote> https://wiki2.dovecot.org/MailLocationSorry, this might be off-topic, but while reading up on the link you sent, I've noticed the following sentence: Use only absolute paths. Even if relative paths would appear to work, they might just as well break some day. Yet, all examples in the documentation use ~ which is a relative path. Also, using an absolute path is impossible, if your users are located in different parent home directories. e.g.: /home2/<uname> /home3/<uname> /home4/<uname> /var/users/<uname> So how am I supposed to use an absolue path in such a case? (If I wanted to have the maildir in their home directories and not in a central location?) Cheers, K. C. -- regards Helmut K. C. Tessarek KeyID 0x172380A011EF4944 Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944 /* Thou shalt not follow the NULL pointer for chaos and madness await thee at its end. */ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: <https://dovecot.org/pipermail/dovecot/attachments/20190312/e8d5ee48/attachment.sig>
Timo Sirainen
2019-Mar-12 23:17 UTC
Re: “doveadm mailbox” command fails with UTF-8 mailboxes
On 13 Mar 2019, at 1.07, Helmut K. C. Tessarek <tessarek at evermeet.cx> wrote:> > On 2019-03-12 17:23, Timo Sirainen via dovecot wrote >> https://wiki2.dovecot.org/MailLocation > > Sorry, this might be off-topic, but while reading up on the link you sent, > I've noticed the following sentence: > > Use only absolute paths. Even if relative paths would appear to work, they > might just as well break some day. > > Yet, all examples in the documentation use ~ which is a relative path.Well, I suppose it depends on definitions.. But I'm not calling ~/ relative paths, because it expands to an absolute path. The problem is using paths like "mail/" where it depends on the current chdir.
Helmut K. C. Tessarek
2019-Mar-13 00:20 UTC
Re: “doveadm mailbox” command fails with UTF-8 mailboxes
On 2019-03-12 19:17, Timo Sirainen wrote:> Well, I suppose it depends on definitions.. But I'm not calling ~/ relative paths, because it expands to an absolute path. The problem is using paths like "mail/" where it depends on the current chdir.Thank you for clearing this up. IMO the ~ is still a relative path until it has been expanded to an absolute path. Depending on the framework/API/code, expansion might not even work. A path mail/ could also be expanded to an absolute path, so I don't see a difference there. It's just that the output of getcwd might not be as predictable, that's all. But I agree, it's a matter of definition. In that case, I'd kindly ask you to state in the documentation that ~ is not considered a relative path. If one wants to get very pedantic, ~ is neither an absolute, nor a relative path. But I'm not here to be a smartass. Thanks again for clearing this up for me. Cheers, K. C. -- regards Helmut K. C. Tessarek KeyID 0x172380A011EF4944 Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944 /* Thou shalt not follow the NULL pointer for chaos and madness await thee at its end. */ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: <https://dovecot.org/pipermail/dovecot/attachments/20190312/c7d3d479/attachment.sig>