Opened 7 years ago

Closed 7 years ago

#1483816 closed Bugs (fixed)

Inbox doesn't appear in folder list when imap_root is set

Reported by: paulschreiber Owned by: richs
Priority: 5 Milestone: 0.1-beta2
Component: PHP backend Version: 0.1-beta
Severity: normal Keywords:
Cc:

Description

I have a Dovecot IMAP server running in mbox mode. Each of my users has mail in /var/mail/username and ~username/Mail/.

If I set the imap_root to ' ' (empty -- space is there to prevent WikiFormatting), I see everything in the sidebar, including all the non-mail folders in the users' home directories.

If I set the imap_root to '~/Mail', this works much better -- I only see the mail folders, and the inbox mail appears by default. However, the inbox itself doesn't appear in the folder list. To get back to the inbox, you have to click "E-Mail" in the top navbar.

(Also, the green arrow button doesn't work | but there's a fix for that.)

Change History (10)

comment:1 Changed 7 years ago by richs

  • Owner set to richs

Using Dovecot-1.0beta7 with "default_mail_env = default_mail_env = maildir:/var/mail/%u/Maildir". Roundcube's "imap_root" set to null, I can't reproduce this in current SVN.

Please double-check that your Dovecot namespace config for INBOX (mine is entirely commented out to use the defaults).

comment:2 Changed 7 years ago by richs

  • Resolution set to worksforme
  • Status changed from new to closed

comment:3 Changed 7 years ago by justin

  • Resolution worksforme deleted
  • Status changed from closed to reopened

I've had this same problem with RC since I installed it, and up through the current (as of this comment) SVN version. I'm using UW IMAP, with my imap_root set to 'mail/' for the same reason above. When imap_root is set to an empty string, Inbox shows up correctly, but of course, the folders do not.

comment:4 Changed 7 years ago by chasd

I have the same issue using UW IMAP server. Another webmail project has different code for different IMAP servers to work around each server's idiosyncrasies.

comment:5 Changed 7 years ago by AlexRezid

I'm also using roundcube (RC1) with dovecot imap, and have no problem. All my mail folders appears and work fine with :
imap_root = ' ' (no space between ' and ')

and dovecot configured as follow :
default_mail_env = mbox:~/.mail/:INBOX=/var/mail/%u

There are no problem with it. I see only mail folders...

Check out your dovecot config.

Alex

comment:6 Changed 7 years ago by AlexRezid

  • Resolution set to worksforme
  • Status changed from reopened to closed

comment:7 Changed 7 years ago by tdeath

  • Resolution worksforme deleted
  • Status changed from closed to reopened

I'm still having the same issues reported on this ticket with uw-imap 2004.357, the inbox is not present, and when I do create it unfortunately it remains empty. So I've been using the 'email' button at the top of the page to return to inbox as a workaround, also the green back arrow doesn't work as well, which I see someone else reported there is a fix for, I would be grateful. I've gone over the config multiple times and tried settings for the imap_root - the best seems to be what I used for squirrelmail.. If I'm doing this wrong let me know, I've never used a ticket system before, don't want to step on anyones toes :)

Jeremy

comment:8 Changed 7 years ago by richs

  • Severity changed from major to normal

It sounds like you need to specify "INBOX" as your mail root in UW IMAP. Right now, it seems like your root is null, "".

That means you'd need to set your "default_imap_folders" in RC to include instead of 'INBOX'. However, there would be no way to display that.

The "imap_root" option in RC can and should be "", unless you want to specificially limit users into a specific part of their mail folder (I believe).

Please see your UW IMAP configuration for specifying a mail root. Also, as far as non-mail directories showing up, I believe the "restrictBox" configuration in UW IMAP can fix that.

comment:9 Changed 7 years ago by tdeath

I just upgraded to SVN 282, same issues with the back button, and for some reason the 'check for new messages' button does not work, though it says it is checking for messages and shows an imapd login in maillog. I'm wondering if this is all related to uw imap as well. I have always had message caching off, wonder if this could have something to do with it.

comment:10 Changed 7 years ago by thomasb

  • Component changed from Interface to PHP backend
  • Resolution set to fixed
  • Status changed from reopened to closed

INBOX was always translated with the imap_root path by RoundCube. According to RFC 2060 [1] this was wrong because INBOX is a special mailbox name. This is now fixed in Rev. 292

[1] http://asg.web.cmu.edu/rfc/rfc2060.html#sec-5.1

Note: See TracTickets for help on using tickets.