I'm looking for a decent imap server that supports hierarchical folders.
My first try was Cyrus, but that one is too pedantic when accepting
legacy emails. Other suggestions were Courier and Dovecot with maildir
storage format.
Now I have lots of folders with dots in their names. And both Courier
and Dovecot treat the dot as hierarchy separator. Frequently, domain
names (as in mail.google.com) are used as folder names in my system, and
these get messed up.
Is there a way in either Courier or Dovecot to allow dots '.' in folder
names?
Cyrus has "Unix Hierarchy Convention", that appears to work well.
With Dovecot, I tried to set 'separator' to '/' in the 'namespace'
construct, but it did not help.
How can I get this Unix Hierarchy Convention in Courier or Dovecot?
Thanks,
Gordon
Nate Duehr wrote:
Joe wrote:
Public Mailing Lists wrote:
Hi,
I'm looking for a decent imap server with hierarchical folders. I
tried Cyrus, but Cyrus does not accept the emails that I'm trying to
copy onto it. Which other imap server has hierarchical folders? Any
experiences for share?
Thanks,
Gordon
IMAP does this by definition. I'm using Courier. Assuming a default
Debian exim4 installation, you need to switch it to using maildir
rather than mbox format, I believe all IMAP servers require this.
Courier can be set up to support maildir or mbox formats. Of course,
maildir is better.
Nate
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
05-27-2008, 07:58 PM
Ron Johnson
dot in folder name in Courier or Dovecot
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 05/27/08 12:38, Public Mailing Lists wrote:
> Hi,
>
> I'm looking for a decent imap server that supports hierarchical folders.
> My first try was Cyrus, but that one is too pedantic when accepting
> legacy emails. Other suggestions were Courier and Dovecot with maildir
> storage format.
>
> Now I have lots of folders with dots in their names. And both Courier
> and Dovecot treat the dot as hierarchy separator. Frequently, domain
> names (as in mail.google.com) are used as folder names in my system, and
> these get messed up.
>
> Is there a way in either Courier or Dovecot to allow dots '.' in folder
> names?
It's not Courier and Dovecot, that are the problem, but that
*Maildir* uses dots as hierarchy separator, Could you change the
dots to underscores?
BTW, you seem to be using a 2 year old version of Mozilla. Time to
upgrade!!!!
> Cyrus has "Unix Hierarchy Convention", that appears to work well.
> With Dovecot, I tried to set 'separator' to '/' in the 'namespace'
> construct, but it did not help.
> How can I get this Unix Hierarchy Convention in Courier or Dovecot?
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
05-27-2008, 08:27 PM
Public Mailing Lists
dot in folder name in Courier or Dovecot
Hi Ron,
brilliant observation. :-) I can't wait to upgrade from this ancient
Mozilla, once I get this imap stuff to work...
No, I can't change the dots to underscores, sorry. Cyrus appers to be
really smart about dots and change them secretly to charets, or
something. Is it possible to have any other imap server do this the same
way, i.e. transparently?
Would using mbox make it any better? Actually, I like the idea of
maildir of having each message in a single file, even though I don't
understand why maildir uses a dot for folder hierarchy instead of using
a directory hierarchy provided by the file system...
Cheers,
Gordon
Ron Johnson wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 05/27/08 12:38, Public Mailing Lists wrote:
Hi,
I'm looking for a decent imap server that supports hierarchical folders.
My first try was Cyrus, but that one is too pedantic when accepting
legacy emails. Other suggestions were Courier and Dovecot with maildir
storage format.
Now I have lots of folders with dots in their names. And both Courier
and Dovecot treat the dot as hierarchy separator. Frequently, domain
names (as in mail.google.com) are used as folder names in my system, and
these get messed up.
Is there a way in either Courier or Dovecot to allow dots '.' in folder
names?
It's not Courier and Dovecot, that are the problem, but that
*Maildir* uses dots as hierarchy separator, Could you change the
dots to underscores?
BTW, you seem to be using a 2 year old version of Mozilla. Time to
upgrade!!!!
Cyrus has "Unix Hierarchy Convention", that appears to work well.
With Dovecot, I tried to set 'separator' to '/' in the 'namespace'
construct, but it did not help.
How can I get this Unix Hierarchy Convention in Courier or Dovecot?
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
05-27-2008, 09:00 PM
Ron Johnson
dot in folder name in Courier or Dovecot
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 05/27/08 15:27, Public Mailing Lists wrote:
> Hi Ron,
>
> brilliant observation. :-) I can't wait to upgrade from this ancient
> Mozilla, once I get this imap stuff to work...
>
> No, I can't change the dots to underscores, sorry. Cyrus appers to be
> really smart about dots and change them secretly to charets, or
> something. Is it possible to have any other imap server do this the same
> way, i.e. transparently?
Escaping the . might work. I tried it, from within Icedove, though,
and it didn't work. Maybe from the command line.
> Would using mbox make it any better?
Depends on your definition of "better". uw-imapd and (maybe)
Dovecot support mbox-backed-IMAP, so maybe that's the route you
should take.
> Actually, I like the idea of
> maildir of having each message in a single file, even though I don't
> understand why maildir uses a dot for folder hierarchy instead of using
> a directory hierarchy provided by the file system...
The courier-imap list would probably have that kind of historical
knowledge.
> Cheers,
> Gordon
>
>
> Ron Johnson wrote:
>>
>> On 05/27/08 12:38, Public Mailing Lists wrote:
>>
>>
>>> Hi,
>>>
>>> I'm looking for a decent imap server that supports hierarchical folders.
>>> My first try was Cyrus, but that one is too pedantic when accepting
>>> legacy emails. Other suggestions were Courier and Dovecot with maildir
>>> storage format.
>>>
>>> Now I have lots of folders with dots in their names. And both Courier
>>> and Dovecot treat the dot as hierarchy separator. Frequently, domain
>>> names (as in mail.google.com) are used as folder names in my system, and
>>> these get messed up.
>>>
>>> Is there a way in either Courier or Dovecot to allow dots '.' in folder
>>> names?
>>>
>>
>> It's not Courier and Dovecot, that are the problem, but that
>> *Maildir* uses dots as hierarchy separator, Could you change the
>> dots to underscores?
>>
>> BTW, you seem to be using a 2 year old version of Mozilla. Time to
>> upgrade!!!!
>>
>>
>>
>>> Cyrus has "Unix Hierarchy Convention", that appears to work well.
>>> With Dovecot, I tried to set 'separator' to '/' in the 'namespace'
>>> construct, but it did not help.
>>> How can I get this Unix Hierarchy Convention in Courier or Dovecot?
>>>
>
>
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
05-28-2008, 01:20 AM
Ron Johnson
dot in folder name in Courier or Dovecot
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 05/27/08 16:00, Ron Johnson wrote:
> On 05/27/08 15:27, Public Mailing Lists wrote:
>> Hi Ron,
>
>> brilliant observation. :-) I can't wait to upgrade from this ancient
>> Mozilla, once I get this imap stuff to work...
>
>> No, I can't change the dots to underscores, sorry. Cyrus appers to be
>> really smart about dots and change them secretly to charets, or
>> something. Is it possible to have any other imap server do this the same
>> way, i.e. transparently?
>
> Escaping the . might work. I tried it, from within Icedove, though,
> and it didn't work. Maybe from the command line.
Ok, it *is* possible to create Maildir folders with dots in them.
$ maildirmake -f test.ing Maildir
$#
$ dir Maildir/.test.ing/
total 32
drwx------ 6 me me 4096 2008-05-27 20:00 ./
drwx-w---- 88 me me 4096 2008-05-27 19:59 ../
- -rw-r--r-- 1 me me 43 2008-05-27 20:00 courierimapacl
drwx------ 2 me me 4096 2008-05-27 20:01 courierimapkeywords/
- -rw-r--r-- 1 me me 84 2008-05-27 20:01 courierimapuiddb
drwx------ 2 me me 4096 2008-05-27 20:01 cur/
- -rw------- 1 me me 0 2008-05-27 19:59 maildirfolder
drwx------ 2 me me 4096 2008-05-27 19:59 new/
drwx------ 2 me me 4096 2008-05-27 20:01 tmp/
The Python IMAP library sees that the test.ing folder has no
children, but Icedove/Tbird doesn't handle it correctly. Maybe
Sylpheed or GNOME will?
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
05-28-2008, 06:34 AM
Nicolas KOWALSKI
dot in folder name in Courier or Dovecot
Public Mailing Lists <lists@lists.cichon.com> writes:
> No, I can't change the dots to underscores, sorry. Cyrus appers to
> be really smart about dots and change them secretly to charets, or
> something. Is it possible to have any other imap server do this the
> same way, i.e. transparently?
With Dovecot, you can use a namespace to define '/' as the hierarchy
separator, even if Maildir is used as storage.
BTW, what are the problems with Cyrus ?
--
Nicolas
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
05-28-2008, 08:59 AM
Public Mailing Lists
dot in folder name in Courier or Dovecot
Yes, I defined '/' as separator in the namespace with Dovecot. I'm able
to create folders that contain dots in their name, and they get messed
up in Thunderbird, as Ron confirms.
With Cyrus, I can create folders with subfolders with dots in their name
correctly. That also works with Thunderbird. So, it looks like it's not
Thunderbird's fault.
The problem with Cyrus is that Cyrus refuses to accept a large number of
emails that it considers to be not "standard compliant". E.g. it rejects
specific "From"-headers that Mozilla is using. Even though this applies
to only 1% of all email, it is still an enormous number of them.
On the web, it is suggested to use a sed-script to remove these
offending headers from the mbox files before copying them to Cyrus.
However, Mozilla's own index files (.msf) get confused if the underlying
mbox files change, and some emails just disappear. (There are also
emails disappearing if the .msf file is deleted).
BTW, mbox/Dovecot does not support hierarchical folders.
Nicolas KOWALSKI wrote:
Public Mailing Lists <lists@lists.cichon.com> writes:
No, I can't change the dots to underscores, sorry. Cyrus appers to
be really smart about dots and change them secretly to charets, or
something. Is it possible to have any other imap server do this the
same way, i.e. transparently?
With Dovecot, you can use a namespace to define '/' as the hierarchy
separator, even if Maildir is used as storage.
BTW, what are the problems with Cyrus ?
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
05-28-2008, 09:10 AM
Nicolas KOWALSKI
dot in folder name in Courier or Dovecot
On Wed, May 28, 2008 at 10:59:57AM +0200, Public Mailing Lists wrote:
> Yes, I defined '/' as separator in the namespace with Dovecot. I'm
> able to create folders that contain dots in their name, and they get
> messed up in Thunderbird, as Ron confirms.
Sorry, I misread your initial post.
> The problem with Cyrus is that Cyrus refuses to accept a large number
> of emails that it considers to be not "standard compliant". E.g. it
> rejects specific "From"-headers that Mozilla is using. Even though
> this applies to only 1% of all email, it is still an enormous number
> of them.
You can patch the Cyrus sources to accept them; that's what I did (at a
previous work and at home).
In the imap/message.c file, search for IMAP_MESSAGE_CONTAINSNULL,
IMAP_MESSAGE_CONTAINSNL and IMAP_MESSAGE_BADHEADER; they are mostly used
as error return values when appending new messages in the
"message_copy_strict" function. Comment out the offending code, and it
will work.
--
Nicolas
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
05-28-2008, 02:16 PM
Michelle Konzack
dot in folder name in Courier or Dovecot
Hi Gordon and *,
Am 2008-05-27 19:38:28, schrieb Public Mailing Lists:
> Now I have lots of folders with dots in their names. And both Courier
> and Dovecot treat the dot as hierarchy separator. Frequently, domain
> names (as in mail.google.com) are used as folder names in my system, and
> these get messed up.
>
> Is there a way in either Courier or Dovecot to allow dots '.' in folder
> names?
No, since it is its convention.
> How can I get this Unix Hierarchy Convention in Courier or Dovecot?
Convert your "DOT" folders...
Since I am using since arround 8 years "courier" and "procmail" I have
done some heavy coding and scripting around it...
I am using procmail recipes for filtering my mailinglists and one of
them is:
Note: Currently I am preparing a new private debian package (very
complex) for "courier" and "procmail" and will put it under
the name "tdtools-procmail" onto my website and mirror at
<http://www.debian.tamay-dogan.net/> but haveing some
problems with my Devel-Station (broken) to build the packages.
Thanks, Greetings and nice Day
Michelle Konzack
Systemadministrator
24V Electronic Engineer
Tamay Dogan Network
Debian GNU/Linux Consultant
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
+49/177/9351947 50, rue de Soultz MSN LinuxMichi
+33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
05-28-2008, 02:33 PM
Ron Johnson
dot in folder name in Courier or Dovecot
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 05/28/08 03:59, Public Mailing Lists wrote:
[snip]
>
> On the web, it is suggested to use a sed-script to remove these
> offending headers from the mbox files before copying them to Cyrus.
> However, Mozilla's own index files (.msf) get confused if the underlying
> mbox files change, and some emails just disappear. (There are also
> emails disappearing if the .msf file is deleted).
Shut down [Mozilla], delete the .msf files, restart [Mozilla] and it
will re-generate the msf files.