unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Tim Cross <theophilusx@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: Add Maildir support to RMAIL
Date: Mon, 26 Jul 2021 11:26:21 +1000	[thread overview]
Message-ID: <87wnpdhm0s.fsf@gmail.com> (raw)
In-Reply-To: <1627225069.25819@bluehome.net>


csh <csh@bluehome.net> writes:

> Eli Zaretskii <eliz@gnu.org> wrote ..
>> > From: csh <csh@bluehome.net>
>> > Cc: ane@iki.fi, emacs-devel@gnu.org
>> > Date: Sun, 25 Jul 2021 07:18:23 -0700 (PDT)
>> > 
>> > Eli Zaretskii <eliz@gnu.org> wrote ..
>> > >   $ movemail --version
>> > 
>> > bash: movemail: command not found...
>> 
>> Then I guess you should install GNU Mailutils.
>
> I asked you what the package name was.  I told you that I cannot find it. 
>
> [liveuser@localhost-live ~]$ dnf search mailutils
> Last metadata expiration check: 1:44:35 ago on Sun 25 Jul 2021 09:07:46 AM EDT.
> No matches found.
> [liveuser@localhost-live ~]$ 
>
>> Btw, I'm not sure I understand completely what kind of Maildir support
>> do you need and why.  Your original message said:
>> 
>> > I really love the simplicity of reading mail with RMAIL, but most email providers
>> no longer use the mbox format for mail.
>
> My mail is in Maildir format.  It is not in mbox format.
>
>> What do you mean by "email providers", and how do you use that to get
>> your email before reading it in Emacs?
>
> I use bluehome.net, which stores mail in Maildir format, but I am sure Google uses 
> Maildir format for its inboxes, too.
>
> Right now, I am using the webmail Webmin interface.  Sometimes I use Evolution.  Other
> times I use Thunderbird.  I just used OfflineIMAP to fetch all my mail into ~/Mail/ on
> my local machine.

I think you have some conceptual confusion regarding how all of this
works.

How your email provider (e.g. google) stores messages is irrelevant. You
retrieve messages from your provider via imap (or possibly pop3), which
is a protocol that sits at a higher level than storage - it does not
know or care about how the messages are stored. It simply retrieves the
message and passes it through to your imap client.

In your case, your imap client is OfflineIMAP, which I believe stores the
messages using maildir format. There are of course many other similar
programs (I use mbsync). There are also a number of other alternatives,
using things like procmail, local mail servers, local imap servers and
many other options.

All that really matters is that the messages are stored in a format that
your mail reading client can understand. It has been decades since I
used Rmail, but from memory, it used its own internal format for storing
messages - it use to be that rmail would read the messages from the
traditional mbox format on local system and move them into rmail's
preferred format. Other clients did similar - for example, VM. In the
past, I use to use fetchmail and procmail to retrieve messages via imap,
run them through procmail to filter and sort, write them to mbox files
which VM would then read in and store locally in VM's own format.

These days, I use mu4e and mbsync. My messages are stored in maildir
format and I have the power of 'mu' to search/manipulate them and the
ease of mu4e for reading. The nice thing about mu4e is that it uses
Emacs' standard message mode for composing messages and Gnus' for
displaying/rendering messages (but without the overhead/confusion of a
Gnus interface). Another 'simple' mail interface which is quite popular
is 'notmuch', which I've not used, but I believe is based on similar
principals i.e. small utilities which are combined together with a nice
interface wrapper written in Emacs lisp.

The only time when you really need to worry about what storage format
your email client uses is when it comes to sorting out backups or
perhaps fixing data corruption. The maildir architecture became popular
because mbox was seen as a bit inefficient and fragile (large files
where any corruption would make all messages unavailable) or when using
multiple clients.

I think it is a bad idea to try and share the same data across clients.
I've found that even when a client claims to use maildir format, there
can be some subtle differences in implementation which can affect how
reliable the storage is. These days, with cheap storage and fast
networks, I find it better to setup all clients to have their own local
store and just use imap to keep things synchronised. Now I can read
messages from numerous different clients on different platforms and
everything is 'in sync'.




  parent reply	other threads:[~2021-07-26  1:26 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-25 12:02 Add Maildir support to RMAIL csh
2021-07-25 12:56 ` Eli Zaretskii
2021-07-25 13:08   ` Eli Zaretskii
2021-07-25 13:54     ` csh
2021-07-25 14:09       ` Eli Zaretskii
2021-07-25 14:18         ` csh
2021-07-25 14:26           ` Eli Zaretskii
2021-07-25 14:57             ` csh
2021-07-25 15:55               ` tomas
2021-07-25 15:58                 ` tomas
2021-07-25 16:21               ` Eli Zaretskii
2021-07-26  1:26               ` Tim Cross [this message]
2021-07-26  6:08                 ` Jean Louis
2021-07-26 13:03                 ` Eli Zaretskii
2021-07-27  0:23                 ` Richard Stallman
2021-07-26  5:23     ` Jean Louis
2021-07-26  9:34     ` Antoine Kalmbach
2021-07-26 10:45       ` Jean Louis
2021-07-26 10:59         ` Antoine Kalmbach
2021-07-26 13:36           ` Jean Louis
2021-07-26 21:56       ` csh
2021-07-27  6:37         ` Antoine Kalmbach
2021-07-28  1:00         ` Richard Stallman
2021-07-28  5:25           ` Yuri Khan
2021-07-25 13:50   ` csh
2021-07-26  8:35     ` Philip Kaludercic
2021-07-25 22:18   ` Eric Abrahamsen
2021-07-26  5:53     ` Paul Jarc
2021-07-26 15:42       ` Eric Abrahamsen
2021-07-26  5:19   ` Jean Louis
2021-07-26  5:29 ` Jean Louis
2021-07-26  8:35 ` Philip Kaludercic
     [not found] <1627220913.7967@bluehome.net>
2021-07-25 14:06 ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2021-07-27 22:02 csh
2021-07-28  7:13 ` Antoine Kalmbach
2021-07-28 21:31   ` csh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wnpdhm0s.fsf@gmail.com \
    --to=theophilusx@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).