After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 231745 - multiple namespaces not supported for IMAP
multiple namespaces not supported for IMAP
Status: RESOLVED NOTABUG
Product: evolution
Classification: Applications
Component: Shell
pre-1.5 (obsolete)
Other All
: Normal major
: ---
Assigned To: Evolution Shell Maintainers Team
Evolution QA team
: 236625 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-10-04 12:57 UTC by Bret Whissel
Modified: 2013-09-10 14:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
output of CAMEL_VERBOSE_DEBUG=1, loading remote mailstore (49.49 KB, text/plain)
2002-10-04 22:53 UTC, Bret Whissel
  Details
CAMEL_DEBUG_VERBOSE=1 for loading with "show only subscribed folders" active (150.41 KB, text/plain)
2002-10-04 23:08 UTC, Bret Whissel
  Details
hacky workaround (2.00 KB, patch)
2003-06-16 07:35 UTC, Not Zed
none Details | Review

Description Bret Whissel 2002-10-04 12:57:39 UTC
Please fill in this template when reporting a bug, unless you know what you
are doing.
Description of Problem: Folders in the #mh namespace served by IMAP are not
selectable (selection bounces back to last selectable entry); remote e-mail
is therefore inaccessible. (Using UW IMAPd, if that's important.) Remote
INBOX is still selectable, however.

Steps to reproduce the problem:
1. Setup #mh mailstore
2. Configure Evolution for IMAP access to remote mailstore

Actual Results: #mh folder list is generated, but folders are not
selectable (selection bounces back to last selectable folder, i.e., non-#mh
folder)

Expected Results: that a selected mail folder would display table of contents


How often does this happen? every time an attempt is made to select an #mh
folder


Additional Information: Verified that IMAP server is not returning
\noselect flag for folders.
Comment 1 Jeffrey Stedfast 2002-10-04 18:27:45 UTC
export CAMEL_VERBOSE_DEBUG=1; killev; evolution-mail

wait till evo-mail says it's ready and then start evolution

everything that gets dumped to the evoloution-mail terminal, paste it
here so we can take a look.
Comment 2 Bret Whissel 2002-10-04 22:53:13 UTC
Created attachment 41566 [details]
output of CAMEL_VERBOSE_DEBUG=1, loading remote mailstore
Comment 3 Bret Whissel 2002-10-04 23:08:59 UTC
Created attachment 41567 [details]
CAMEL_DEBUG_VERBOSE=1 for loading with "show only subscribed folders" active
Comment 4 Bret Whissel 2002-10-04 23:14:43 UTC
First attachment was generated with "Override server-supplied folder
namespace" active, set to "#mh/%". (I had been playing around with
this yesterday, trying to get at my mail.)  After I realized my
mistake, I generated new output with "Show only subscribed..." active,
"Override..." disabled.  Neither configuration allowed me to select
folders in the #mh namespace, however.
Comment 5 Jeffrey Stedfast 2002-10-05 04:04:41 UTC
I'm confused... you set the namespace to "#mh/%" ?
you should just set it to "#mh"

I'll see if I can make a mh directory structure come monday and try to
reproduce this and see what the problem is.

in the meantime, could you also get a log of what happens when you try
to select a folder? That's mostly what I wanted to see before actually :-)

not that the above info isn't also useful. sorry, I should have been
more specific.

you might also want to do fix this:

received: * NO Mailbox vulnerable - directory /var/mail must have 1777
protection
Comment 6 Jeffrey Stedfast 2002-10-05 04:07:04 UTC
for faster LSUB responses, you might also want to edit the imap
server's ~/.mailboxlist file and remove all the duplicate "#mh"
entires (you must have like 50 of them).
Comment 7 Bret Whissel 2002-10-05 05:22:30 UTC
I did attempt to select folders.  Nothing obvious showed up in the
logs.  However, since I cannot select those folders from within
evolution, I would not expect the IMAP machinery to be invoked.  If
there's another debug flag I should set to dump output from higher up
the food chain (i.e., closer to the GUI), let me know.

As I mentioned in my previous entry, the Override = "#mh/%" was an
attempt at getting access to my mail.  It was the last trial of
several experiments.  I posted the output before I realized my
mistake, hence the second attachment.

The ~/.mailboxlist file contains no duplicate entries.  I have not
read the code too deeply, but I don't understand what all the LSUB
requests are for.  In the 2nd attachment above, A00003 LSUB "" "*"
returns the entire subscription list (which corresponds exactly with
the contents of the ~/.mailboxlist file), at least on my UW IMAP
server. However, several subsequent LSUB requests are issued, and I
would argue that the server's response to LSUB "" "%" (the multiple
#mh entries) is correct, since it returns an item for every entry in
the subscription list up to the first delimiter.  If one wanted just
the first level folders, the request should be something along the
lines of LSUB "#mh/" "%" (again, this works according to the UW IMAP
server).

Comment 8 Jeffrey Stedfast 2002-10-09 20:06:16 UTC
seems to be a shell issue (shell see s a # in the name and says "nope,
won't select that")

doesn't seem mailer related at all thankfully
Comment 9 Gerardo Marin 2003-02-10 17:45:35 UTC
*** bug 236625 has been marked as a duplicate of this bug. ***
Comment 10 Jos Vos 2003-02-28 14:41:00 UTC
Any activity on this bug?  As far as I know, even with Evolution 1.2.2
(I tried the latest RH beta) it is still not possible to use MH
folders via IMAP.  Is you are relying on this, this is an extremely
severe problem that makes Evolution useless for some people and forces
them to downgrade to 1.0.8.

If anyone did succeed in using MH folders via IMAP in Evolution 1.2.x,
please tell so.
Comment 11 Etienne Schellerup 2003-03-28 09:48:32 UTC
Workaround: By replacing # by %23 in all the entries in the .mailboxlist file,  
Evolution is able to read and write in the #shared namespace on UW Imapd 
(problem mentioned in bug 236625).  
The folder then appears as %23shared, but has the expected behaviour. 
This should also be the case with the #mh namspace (not tested).  
Comment 12 Bret Whissel 2003-03-28 13:18:49 UTC
Replacing # by %23 in the .mailboxlist file on the IMAP server does
not make the #mh folders accessible from an Evolution client:  rather,
the folders disappear altogether from the folder list.  (The % is also
an IMAP protocol metacharacter.  There may be some fluke interactions
between Evolution, the IMAP server, and a single-level directory which
allowed this workaround to work at all.)
Comment 13 jdy 2003-06-12 15:38:14 UTC
I am having exactly the same problem on redhat 9 with evo 1.4.  I can
access the mh folders just fine with balsa.
Comment 14 Not Zed 2003-06-16 07:34:21 UTC
after spending too much time just working out how to make the server
output a #mh folder, ...

This is a bug in the shell code (at least, possibly other places in
mailer), its using the decoded path directly as a url path part, and
also using a uri fragment (i.e. anything after '#') for its own purposes.

e.g. e-shell-view.c:display_uri()

there are numerous places in that file and others where uri's are
incorrectly formed by doing a strconcat or sprintf.

a quick hack might be to change the camel code not to send out encoded
#'s, but the shell code should be fixed anyway.

the problem with a quick hack solution is it will later break the imap
cache and any imap filters setup, if it gets fixed properly later on.
Comment 15 Not Zed 2003-06-16 07:35:08 UTC
Created attachment 42534 [details] [review]
hacky workaround
Comment 16 Not Zed 2003-06-16 07:46:19 UTC
note that you probably need to rm the
~/evolution/mail/imap/user@host/.ev-store-summary file of the given
account if you've previously accessed the folders.

imap filters and cache will also be affected (but if you couldn't open
the given folders, its not a problem).
Comment 17 Jos Vos 2003-06-16 09:51:42 UTC
The workaround doesn't work for me.  I applied the patch on 1.2.2,
generated an rpm, removed the .ev-store-summary file, but no MH
folders show up (I use "#mh/" as folder namespace as before).
Comment 18 jdy 2003-07-14 02:10:13 UTC
Even with ximian built 1.4.3 on rh 9 this problem still happens.

Could someone provide a step by step procedure beginning with
cleaning up what evolution remembers thru account set up?

I've tried many combinations of #mh and #mh/ and deleting files
etc. and nothing seems to work.  It works just fine with balsa.

Thanks, Joel
Comment 19 Jeffrey Stedfast 2004-06-11 22:41:41 UTC
*** bug 251461 has been marked as a duplicate of this bug. ***
Comment 20 Jeffrey Stedfast 2004-06-11 22:43:07 UTC
no longer relevant to 1.5