You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Robin Bankhead (JIRA)" <ji...@apache.org> on 2013/10/02 19:14:43 UTC

[jira] [Updated] (MAILBOX-199) Maildir support for Windows

     [ https://issues.apache.org/jira/browse/MAILBOX-199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robin Bankhead updated MAILBOX-199:
-----------------------------------

    Attachment: james-server-winmaildir-v6.patch

Since I can't seem to format code in a comment, I've updated the patch to include comments where I have added Windows-specific code.

Also introduces MaildirMessageName.IS_WINDOWS (using the code from OsDetector.class, which I've removed as it is no longer used in testing). This brings consistency (and better readability) to how we test whether we're on Windows or not.

> Maildir support for Windows
> ---------------------------
>
>                 Key: MAILBOX-199
>                 URL: https://issues.apache.org/jira/browse/MAILBOX-199
>             Project: James Mailbox
>          Issue Type: New Feature
>          Components: maildir
>         Environment: Windows 7 Professional
>            Reporter: Robin Bankhead
>         Attachments: james-server-winmaildir-v5.patch, james-server-winmaildir-v6.patch
>
>
> Propose that Maildir be supported under the Windows platform. To my knowledge, the only technical bar to this is that maildir uses the colon (":") character, which is an illegal character on the NTFS (and I believe also FAT*) filesystem.
> The Maildir standard document[1] that this project refers to, specifies a colon (although quite obliquely). The "standard" clearly was never aimed at use on Windows, but its benefits as a format strike me as sufficiently great that a small deviation is justifiable in order to include it with James and thus increase platform-portability.
> The below patch alters message-naming so that, instead of a literal colon, the local system's path separator character (java.io.File.pathSeparator) is used in each case, giving a colon on *NIX and a semicolon (";") on Windows. (Critique of this particular methodology is welcome.)
> It also includes a quick fix for an issue encountered with file locking on Windows, which calls System.gc() on that platform. There may be other issues like this; I'm searching for them currently.
> [1] http://cr.yp.to/proto/maildir.html
> Discussion about this issue: http://www.mail-archive.com/server-user@james.apache.org/msg14542.html



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org