Gnus development mailing list
 help / color / mirror / Atom feed
* nnmaildir
@ 2004-02-11 17:00 Thomas Schwinge
  2004-02-11 17:42 ` nnmaildir Paul Jarc
  2004-02-14 18:26 ` nnmaildir Kai Grossjohann
  0 siblings, 2 replies; 16+ messages in thread
From: Thomas Schwinge @ 2004-02-11 17:00 UTC (permalink / raw)


Hello!

Convinced by the power of Gnus I want to make it my default mail and
news client.

Regarding news: Converting from slrn to Gnus was no problem at all.

However regarding mail the situation is more complicated:

Since all of my mail folders are in maildir format my backend of choice
would be nnmaildir.

#v+
thomas@server:~ > ls -l Mail/ Mail-nic-nac-project/
Mail-nic-nac-project/:
total 28
drwx------    6 thomas   users         224 Feb  9 20:59 Drafts
drwxr-xr-x    6 thomas   users         224 Feb  9 20:57 INBOX
drwx------    6 thomas   users         224 Feb  9 20:58 Sent
drwxr-xr-x    6 thomas   users         152 Jan 26 18:21 lists.bincimap\.org.binc
drwxr-xr-x    6 thomas   users         152 Jan 26 18:22 lists.bincimap\.org.binc-dev
drwxr-xr-x    6 thomas   users         152 Feb  6 18:23 lists.bincimap\.org.binc-news
[...]
drwxr-xr-x    6 thomas   users         152 Jan 27 16:18 lists.gnus\.org.ding
[...]

Mail/:
total 2404
lrwxrwxrwx    1 thomas   users          30 Feb  9 20:58 Drafts -> ../Mail-nic-nac-project/Drafts
drwx------    6 thomas   users         224 Feb  9 20:55 Elektronik
drwx------    6 thomas   users         224 Feb  9 19:40 INBOX
drwx------    6 thomas   users         224 Feb  9 20:55 INBOX.TODO
lrwxrwxrwx    1 thomas   users          29 Feb  9 20:57 INBOX.nic-nac-project -> ../Mail-nic-nac-project/INBOX
[...]
lrwxrwxrwx    1 thomas   users          28 Feb  9 20:58 Sent -> ../Mail-nic-nac-project/Sent
[...]
#v-

The folders in Mail-nic-nac-project/ are synchronized between several
hosts using maildirsync <URL:http://hacks.dlux.hu/maildirsync/>.

Now you may wonder about the naming scheme, so let me explain this: This
is the IMAPdir layout <URL:http://www.bincimap.org/bincimap-imapdir.html>
used by Binc IMAP <URL:http://www.bincimap.org/> to get the folders
hierarchically displayed in the IMAP client:
#v+
Mail +- INBOX
     |    \- TODO
     +- Drafts
     +- Sent
     +- [...]
     +- lists -+- bincimap.org -+- binc
               |                |- binc-dev
               |                \- binc-news
               +- gnus.org --- ding
               +- [...]
#v-

Parallel to using IMAP I've been using mutt - operating natively on the
maildirs.

I added
#v+
(setq gnus-secondary-select-methods
  '((nnmaildir ""                (directory "~/Mail/"))
    (nnmaildir "nic-nac-project" (directory "~/Mail-nic-nac-project/"))))
#v-
to .gnus.el and the folders showed up in Gnus - although I was not able
to enter the ones whose are containing a '\': The were refused with:
#v+
Retrieving newsgroup: nnmaildir+nic-nac-project:lists.gnus.org.ding...
gnus-select-newsgroup: Couldn't activate group nnmaildir+nic-nac-project:lists.gnus.org.ding: No such group: lists.gnus.org.ding
#v-
The backslash got weeded out somewhere - amazing that this can even
happen in Lisp and not only in shell programming. :-)

The issue remaining to be resolved for me is that I'd like to have the
status flags synchronized between Gnus and the maildirs because it is
very inconvenient to see messages marked 'read' in Gnus flash up again
as 'unread' ones in mutt.
I have to care about this since I'm not able to fully switch over to
Gnus - it won't be installed on all systems I'm working on - and I don't
accept that I won't be able to use two different mail clients on the
same mail sources.

Looking at the documentation and throwing a quick glance at the list's
archives I heard about this synchronisation not being implemented into
nnmaildir at present but that nnmaildirs maintainer, Paul Jarc, would
eventually be willing to implement it.

With nnmaildir the marks are stored under
[maildir]/.nnmaildir/marks/[type of mark]/[message indentifier].

The problem however is that Gnus uses more marks than the current
maildir specification <URL:http://cr.yp.to/proto/maildir.html> provides:
#v+
[file names in maildir/cur are of the form uniq:info]

info is morally equivalent to the Status field used by mbox readers.
It'd be useful to have MUAs agree on the meaning of info, so I'm keeping a list of info semantics.
Here it is.

info starting with "1,": Experimental semantics.

info starting with "2,": Each character after the comma is an independent flag.

    * Flag "P" (passed): the user has resent/forwarded/bounced this message to someone else.
    * Flag "R" (replied): the user has replied to this message.
    * Flag "S" (seen): the user has viewed this message, though perhaps he didn't read all the way through it.
    * Flag "T" (trashed): the user has moved this message to the trash; the trash will be emptied by a later user action.
    * Flag "D" (draft): the user considers this message a draft; toggled at user discretion.
    * Flag "F" (flagged): user-defined flag; toggled at user discretion. 

New flags may be defined later. Flags must be stored in ASCII order: e.g., "2,FRS".
#v-

I was not yet able to figure out which of the possible marks from
<URL:http://www.gnus.org/manual/gnus_64.html> are actually used and
stored on disk by nnmaildir - and btw.: How is this problem handled e.g.
with Gnus' imap backend? - but the ones also being part of maildir's
specification could easily be used and for the others (dormant, ...)
we could either try to convince DJB to add them to the specification
or the 'experimental semantics' described above could be used.

What do you think?

Regards,
 Thomas



^ permalink raw reply	[flat|nested] 16+ messages in thread
* db-backed mail back end
@ 2002-01-22 23:33 Lars Magne Ingebrigtsen
  2002-01-23  0:23 ` Daniel Pittman
  0 siblings, 1 reply; 16+ messages in thread
From: Lars Magne Ingebrigtsen @ 2002-01-22 23:33 UTC (permalink / raw)


Now that there are nice, free SQL-based database servers out there
(PostgreSQL, and, er, PostgreSQL), would it be an idea to have a
db-backed mail back end?  What would you gain by such a beast, and
what would you lose?

1) You would be able to search
2) You could create new groupings on-the-fly -- by altering
   the "splitting" criteria, you would alter which messages
   end up where (perhaps) (or not)
3) erm...

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2004-02-15  3:33 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-11 17:00 nnmaildir Thomas Schwinge
2004-02-11 17:42 ` nnmaildir Paul Jarc
2004-02-11 22:05   ` nnmaildir Thomas Schwinge
2004-02-11 23:23     ` nnmaildir Paul Jarc
2004-02-12 14:35       ` nnmaildir Thomas Schwinge
2004-02-12 16:36         ` nnmaildir Paul Jarc
2004-02-12 22:45           ` nnmaildir Thomas Schwinge
2004-02-12 22:57             ` nnmaildir Paul Jarc
2004-02-13 14:02               ` nnmaildir Thomas Schwinge
2004-02-14  3:34                 ` nnmaildir Paul Jarc
2004-02-14 18:26 ` nnmaildir Kai Grossjohann
2004-02-14 18:38   ` #v+, #v- (was: nnmaildir) lawrence mitchell
2004-02-14 22:18     ` #v+, #v- Kai Grossjohann
2004-02-15  3:33       ` Karl Pflästerer
  -- strict thread matches above, loose matches on Subject: below --
2002-01-22 23:33 db-backed mail back end Lars Magne Ingebrigtsen
2002-01-23  0:23 ` Daniel Pittman
2002-01-23  0:36   ` Lars Magne Ingebrigtsen
2002-01-24  0:50     ` Russ Allbery
2002-01-24  1:24       ` Lars Magne Ingebrigtsen
2002-01-24 17:11         ` Paul Jarc
2002-01-24 17:58           ` nnmaildir (was: db-backed mail back end) Josh Huber
2002-01-24 18:14             ` Harry Putnam
2002-01-24 18:43               ` Paul Jarc
2002-01-24 22:05                 ` Harry Putnam
2002-01-24 22:51                   ` nnmaildir Paul Jarc
2002-01-24 18:39             ` nnmaildir Paul Jarc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).