unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Robert Thorpe <rt@robertthorpeconsulting.com>
To: Sam Halliday <sam.halliday@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: tutorial for rmail and IMAP
Date: Wed, 23 Apr 2014 23:45:02 +0100	[thread overview]
Message-ID: <87lhuvfyxd.fsf@robertthorpeconsulting.com> (raw)
In-Reply-To: <38e264d5-378f-416b-a303-4e3e43ed26f7@googlegroups.com> (message from Sam Halliday on Wed, 23 Apr 2014 12:11:12 -0700 (PDT))

Sam Halliday <sam.halliday@gmail.com> writes:

> I'm seriously considering using emacs as my mail client and I should like to give rmail a try.
>
> However, despite several google searches and having a look at the rmail website, I cannot find any tutorials for an rmail beginner.

As Eli mentions the Emacs manual describes rmail in detail.

> Does anybody know of an rmail tuturial that will:
>
> 1. get me set up with IMAP (specifically gmail)

It's quite simple.  First you have to install "Movemail" from GNU
Mailutils.  You can use the package manager to do that.  The movemail
that comes with Emacs doesn't handle IMAP.

Then put in.
(setq rmail-primary-inbox-list ("imap://username:password@yourimapserver.com"))

You also have to setup outgoing mail.  I use internal Emacs smtp:
(setq smtpmail-smtp-server "smtp.yoursmtpserver.com")

My username and password are so long that this spans several lines, so
I've used concat to split it across lines.

There seems to be a little bug if your username has a "@" in it.  I can
tell you how to fix that if it happens to you.
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16946

> 2. auto-complete recipients using my google address book

I don't know how to do that, it might not be possible.

> 3. typical use-cases (receiving mail, sorting mail, responding, etc)

They're all described well in the manual.


A couple of other things worth mentioning....  

* Gmail.
People have told me that gmail has some wierd limitation on the number
of IMAP logins you can do with them per day.  I don't use it so I don't
know.

* IMAP.
Rmail is a mode for viewing and editing mbox files.  Movemail does the
mail receiving, it always copies everything to a local mbox file
("RMAIL") and rmail views that.  The IMAP system where all the mail sits
on the IMAP server doesn't work well with this.

You can still use rmail from several PCs though.  What I do is I have
one PC where all mail is kept.  I have a set of rules that move
everything out of the local inbox to subject specific mbox
files.  On other machines I set: (setq rmail-preserve-inbox t).  That
means that movemail doesn't delete email in the IMAP inbox, so it can be
picked up later by my main PC which stores mail.  On those other
machines I delete everything in the local inbox after reading.

* Rules.
I have lots of simple rules that copy things into other mbox files:
(setq rmail-delete-after-output t
      rmail-output-file-alist
      '(("contains this regexp" . "~/Mail/Goes_In_This_File.mbox")
        ("another regexp" . "~/Mail/Another_File.mbox")))

* Sorting.
Rmail sorts actually resort the whole mbox file.  If you save it then
it's saved in the new order, so it's best to sort look for what you need
then revert.  You can also open mbox files in fundamental mode and use
occur on them, which is sometimes useful.

BR,
Robert Thorpe



  parent reply	other threads:[~2014-04-23 22:45 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-23 19:11 tutorial for rmail and IMAP Sam Halliday
2014-04-23 19:23 ` David Hume
2014-04-23 20:45   ` Sam Halliday
2014-05-01  7:28   ` James Freer
     [not found]   ` <mailman.430.1398929317.1147.help-gnu-emacs@gnu.org>
2014-05-01  8:19     ` David Hume
2014-05-01  8:45       ` James Freer
2014-05-02 22:29       ` James Freer
2014-04-23 19:32 ` Eli Zaretskii
2014-04-23 22:45 ` Robert Thorpe [this message]
2014-04-23 23:20   ` Sam Halliday
2014-04-23 23:48     ` Robert Thorpe
2014-04-24  2:43   ` Eli Zaretskii
2014-04-26  5:34   ` James Freer
2014-04-26  9:40     ` Robert Thorpe
2014-04-26 12:03       ` James Freer
     [not found]     ` <mailman.79.1398505245.1147.help-gnu-emacs@gnu.org>
2014-04-26 13:01       ` Sam Halliday
2014-04-26 15:11         ` Robert Thorpe
2014-04-26 16:12           ` Sam Halliday
2014-04-26 16:06         ` Robert Thorpe
2014-04-24  2:59 ` Hans BKK
     [not found] <87mwf7yept.wl%hskuhra@eumx.net>
2014-04-30  0:50 ` Robert Thorpe
2014-04-30 20:18   ` Sam Halliday

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=87lhuvfyxd.fsf@robertthorpeconsulting.com \
    --to=rt@robertthorpeconsulting.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=sam.halliday@gmail.com \
    /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.
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).