Steffen Kaiser <skdovecot at smail.inf.fh-brs.de> writes:> On Sun, 25 Oct 2015, Julien Cubizolles wrote: > >> Date: Sun, 25 Oct 2015 14:50:19 +0100 >> From: Julien Cubizolles <j.cubizolles at free.fr> >> To: dovecot at dovecot.org >> Subject: Can't access maildir with dovecot >> >> I'm a total newbie regarding imap servers. I'm trying to set up a >> Offlineimap/dovecot/Gnus system and Gnus complains that it cannot access >> the maildir... Here is my setup, put together by copying stuff from >> around the web without any prior knowledge of these tools... >> >> * Offlineimap is setup to use the $HOME/Maildir-free/, using >> >> --8<---------------cut here---------------start------------->8--- >> preauthtunnel = /usr/lib/dovecot/imap -o mail_location=maildir:$HOME/Maildir-free >> --8<---------------cut here---------------end--------------->8--- >> >> in the local maildir part of ~/.offlineimaprc. >> >> * The Maildir-free maildir has been correctly (I think) populated >> with a single "General" folder. >> >> /home/wilk/Maildir-free: >> total used in directory 52 available 5502852 >> drwxrwxr-x 6 wilk wilk 4096 oct. 23 11:10 . >> drwx------ 240 wilk wilk 20480 oct. 23 15:06 .. >> drwxrwxr-x 2 wilk wilk 4096 oct. 23 11:09 cur >> -rw-rw-r-- 1 wilk wilk 348 oct. 23 11:10 dovecot.index.log >> -rw-rw-r-- 1 wilk wilk 51 oct. 23 11:10 dovecot-uidlist >> -rw-rw-r-- 1 wilk wilk 8 oct. 23 11:09 dovecot-uidvalidity >> -r--r--r-- 1 wilk wilk 0 oct. 23 11:09 dovecot-uidvalidity.5629f967 >> drwx------ 6 wilk wilk 4096 oct. 23 11:16 General > > Maildir++ prefixes all Mailboxes with ".", hence it should read: .GeneralIt should be OfflineIMAP's job to name it that way, right?? I tried adding "sep = ." to the Remote Repository but it seems it only affects the subfolders, not the first-level one. Also I naively renamed the General folder to .General, and dovecot still can't access it. Thanks for your help.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 26 Oct 2015, Julien Cubizolles wrote:> Steffen Kaiser <skdovecot at smail.inf.fh-brs.de> writes: > >> On Sun, 25 Oct 2015, Julien Cubizolles wrote: >> >>> Date: Sun, 25 Oct 2015 14:50:19 +0100 >>> From: Julien Cubizolles <j.cubizolles at free.fr> >>> To: dovecot at dovecot.org >>> Subject: Can't access maildir with dovecot >>> >>> I'm a total newbie regarding imap servers. I'm trying to set up a >>> Offlineimap/dovecot/Gnus system and Gnus complains that it cannot access >>> the maildir... Here is my setup, put together by copying stuff from >>> around the web without any prior knowledge of these tools... >>> >>> * Offlineimap is setup to use the $HOME/Maildir-free/, using >>> >>> --8<---------------cut here---------------start------------->8--- >>> preauthtunnel = /usr/lib/dovecot/imap -o mail_location=maildir:$HOME/Maildir-free >>> --8<---------------cut here---------------end--------------->8--- >>> >>> in the local maildir part of ~/.offlineimaprc. >>> >>> * The Maildir-free maildir has been correctly (I think) populated >>> with a single "General" folder. >>> >>> /home/wilk/Maildir-free: >>> total used in directory 52 available 5502852 >>> drwxrwxr-x 6 wilk wilk 4096 oct. 23 11:10 . >>> drwx------ 240 wilk wilk 20480 oct. 23 15:06 .. >>> drwxrwxr-x 2 wilk wilk 4096 oct. 23 11:09 cur >>> -rw-rw-r-- 1 wilk wilk 348 oct. 23 11:10 dovecot.index.log >>> -rw-rw-r-- 1 wilk wilk 51 oct. 23 11:10 dovecot-uidlist >>> -rw-rw-r-- 1 wilk wilk 8 oct. 23 11:09 dovecot-uidvalidity >>> -r--r--r-- 1 wilk wilk 0 oct. 23 11:09 dovecot-uidvalidity.5629f967 >>> drwx------ 6 wilk wilk 4096 oct. 23 11:16 General >> >> Maildir++ prefixes all Mailboxes with ".", hence it should read: .General > > It should be OfflineIMAP's job to name it that way, right?? I tried > adding "sep = ." to the Remote Repository but it seems it only affects > the subfolders, not the first-level one. > > Also I naively renamed the General folder to .General, and dovecot still > can't access it.Add: -o mail_debug=yes run this command as the user "wilk" /usr/lib/dovecot/imap -o mail_location=maildir:/home/wilk/Maildir-free/ \ -o mail_debug=yes and check out the debug output. - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEVAwUBVi8l7nz1H7kL/d9rAQLrjQgAvXe4EnsuH+qEISCdNS/Up741jQZuzcpu +v+8b+YcR5zlyCqOCbnVg9ckbmDQ2xse4BpMJFTq57nh/kNw6jujppqQQyC56Rw8 2TNaJu/+x0NRc4oCHNbOw4D4o+OZD6Cki5LYeYVZewJRFnGsaZAvKuaUsVNA4oir SyDkYaVVsR6jlXeVq22zvadve+JRiwN7h4PWI5nfa2agbiVGC2cJndK4MzyOg5re 4o4aVzKU44RTJ6Xx5vMdH5Gi/86DR9aNVAZ7SkfWPPcwFjJ2lU43inJTLJL0BmDS Hr3AJZtoV7D7sKfu8NU8JOsy9TsOZNIeRGcpHxVb8ut5HV775Uk0Ow==TC5l -----END PGP SIGNATURE-----
Steffen Kaiser <skdovecot at smail.inf.fh-brs.de> writes:> Add: -o mail_debug=yes > > run this command as the user "wilk" > > /usr/lib/dovecot/imap -o mail_location=maildir:/home/wilk/Maildir-free/ \ > -o mail_debug=yes > > and check out the debug output.Here is what I got: Debug: Effective uid=1000, gid=1000, home=/home/wilk Debug: Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/home/wilk/Maildir-free Debug: maildir++: root=/home/wilk/Maildir-free, index=, indexpvt=, control=, inbox=/home/wilk/Maildir-free, alt But I also tried something different: I put a --8<---------------cut here---------------start------------->8--- preauthtunnel = /usr/lib/dovecot/imap -c ~/.dovecotrc --8<---------------cut here---------------end--------------->8--- line in .offlineimaprc and ~/.dovecotrc --8<---------------cut here---------------start------------->8--- protocols = imap mail_location = maildir:~/Maildir-free auth default { } --8<---------------cut here---------------end--------------->8--- And now it's working, also there are no differences in the debug logs --8<---------------cut here---------------start------------->8--- Debug: Effective uid=1000, gid=1000, home=/home/wilk Debug: Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/home/wilk/Maildir-free Debug: maildir++: root=/home/wilk/Maildir-free, index=, indexpvt=, control=, inbox=/home/wilk/Maildir-free, alt--8<---------------cut here---------------end--------------->8--- Thanks for your help. Julien.