Bug 74685 - Make maildir filename field separator configurable
Summary: Make maildir filename field separator configurable
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: kmail
Classification: Applications
Component: maildir (show other bugs)
Version: unspecified
Platform: Microsoft Windows Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-09 08:19 UTC by Holger Karl
Modified: 2012-08-19 00:56 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Patch for windows maildir support (uses '!' instead of ':' in mail filenames) (1.54 KB, patch)
2004-02-16 13:35 UTC, Ralf Habacker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Karl 2004-02-09 08:19:07 UTC
Version:            (using KDE KDE 3.2.0)
Installed from:    SuSE RPMs
OS:          Linux

Hello,

I would like to propose to make the "field separators" in a maildir filename configurable. 

Example: Instead of, say, 

1057322525.286.SLiW:2,S

I would like to tell kmail to name its files 

1057322525.286.SLiW.2,S

( dot instead of colon) 

Background: with the availability of kde 3.1.4 on cygwin, the colon in the filenames is the only thing that prevents someone from using kmail on a windows laptop and at the same time kmail on a linux box, with simple synchronization between the two ~/Mail directories. (Not everybody as an IMAP server at their disposal). 

Feasibility: I am sure this is doable as the kmail-on-cygwin uses the file name format as described above (dot instead of colon), as far as I can tell.

This would be an answer to at least my needs, and I imagine to many other people's problems as well. 

I'd very much appreciate this, thanks!

Cheers, 

Holger
Comment 1 Ingo Klöcker 2004-02-09 17:08:23 UTC
The problem with this is that maildir is a standardized format, so this would break compatibility with other mail clients, with mail delivery tools like procmail, with IMAP servers, with mail delivery programs like sendmail and with all other programs out there that support maildir.

Anyway, would using a semi-colon ';' be an alternative? Then we could introduce a maildir derived folder format which uses a semi-colon instead of the colon.
Comment 2 Holger Karl 2004-02-10 08:01:33 UTC
Hello Ingo,

- I understand the standardization/compatibility problem, but a (probably not uncommon) use case is to poll the mail via POP3 and just to use maildir locally (for synchronization purposes, really). I personally do not use procmail or IMAP server, for instance. 

That's why I would suggest to make this a (non-default) switch

- Whether this is ";" or "." or any other character doesn't really matter, I guess. I just suggested "." since that is what the kmail-on-cygwin is using. 

Thanks a bundle,

Holger
Comment 3 Holger Karl 2004-02-11 09:02:16 UTC
Hi,

actually, I checked the kmail-on-cygwin again, and their maildir format 
is 

1057322525.286.SLiW_2,S

so it replaces the : with an _ (makes much more sense of course not to 
increase number of dots in the filename - sorry, my mistake)

SO, there is a patch for that change already available in principle. What would be great is to make this configurable...

Cheers,

Holger
Comment 4 Ralf Habacker 2004-02-11 11:26:29 UTC
Hi, 
I have patched kmail for cygwin. The only problem on windows is the colon, which isn't supported by the os. 

Are there any other email related application known under windows, which provides maildir suppport?  It may be good to research this first and look what kind of delimiter they use. 

Regards 

Ralf 
Comment 5 Ralf Habacker 2004-02-11 11:53:31 UTC
Hi, 
... other email applications... 

courier uses a '!' instead of ':' on cygwin. (from 
http://cvs.sourceforge.net/viewcvs.py/courier/libs/maildir/configure.in?rev=1.28&view=auto)
Comment 6 Ralf Habacker 2004-02-16 13:35:20 UTC
Created attachment 4723 [details]
Patch for windows maildir support (uses '!' instead of ':' in mail filenames)

the patch is based on the kdenetwork  KDE_3_1_BRANCH tag.
Comment 7 Ralf Habacker 2004-02-16 13:52:59 UTC
My researches does not give any more maildir implementation for windows (cygwin), so I've added the used patch for kmail 3.1.4 on cygwin (see Comment #6. 
To use this suffix in an derivated maildir format on unix/linux, there is some additional logic required for choosing the recent output format based on the used operation system or already used maildir format, which isn't covered by this patch. Currently it switches completly between using ':' and '!' choosen by the #ifdef __CYGWIN__, which is cygwins os identifier. 

Note: A relating topic is if it would be possible to use maildir trees located on a linux or other unix host with cygwin over a samba share or vice versa. A research in this direction has given, that this will be only possible with the '!' suffix, because the used suffix must be supported on both os and the maildir filenames and the index file must be in sync. So implementing '!' as derivated maildir format suffix will enable maildir interoperability between unix and windows. 

Thanks for applying 
Ralf 
KDE on cygwin http://kde-cygwin.sf.net 




 


Comment 8 Alan Horkan 2005-08-27 22:03:39 UTC
fixed typo in summary
s/useability/usability
Comment 9 Thomas McGuire 2008-02-10 14:53:20 UTC
KMail now works natively on Windows and uses ! as a separator there. It is not configureable though, but I think this bug could be closed.
Comment 10 Myriam Schweingruber 2012-08-18 08:35:06 UTC
Thank you for your feature request. Kmail1 is currently unmaintained so we are closing all wishes. Please feel free to reopen a feature request for Kmail2 if it has not already been implemented.
Thank you for your understanding.
Comment 11 Luigi Toscano 2012-08-19 00:56:45 UTC
Instead of creating a new feature request, please confirm here if the wishlist is still valid for kmail2.