all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Robert Thorpe <rt@robertthorpeconsulting.com>
To: Caleb Herbert <csh@bluehome.net>
Cc: help-gnu-emacs@gnu.org
Subject: Re: RMS Setup
Date: Sun, 28 Mar 2021 03:40:51 +0100	[thread overview]
Message-ID: <87eeg057bg.fsf@robertthorpeconsulting.com> (raw)
In-Reply-To: <9da81e36-8f5a-a184-50e3-1eeddd596d12@bluehome.net> (message from Caleb Herbert on Sat, 27 Mar 2021 16:02:26 -0500)

> This guide is a bit opaque, calling outside scripts and assuming one
> has read the man page. It reminds me of the cross-reference-heavy Arch
> Wiki, as opposed to the self-contained FreeBSD Handbook.

I have no idea exactly what setup RMS used, but I know how to setup
Rmail.  It's not very difficult to setup these days.  Here is the way I
recommend:

* 1. Install GNU Mailutils.

This is because it's much better than the version that comes with
Emacs.  It handles IMAP and some other things.

Your distro will have it, so use your distro's package manager.

* 2. Setup Rmail details.

Add the following to your init.el file:
(setq rmail-primary-inbox-list
      (cons (concat "<PROTOCOL>"
		    "<LOGIN>"
		    "@<SERVER>")
	    nil))

<PROTOCOL> should be pop:// if you use POP or imap:// if you use IMAP>

<LOGIN> this is the username for your mail server.  If it contains the
symbol "@" you have to replace that with %40.

<SERVER> is your email server (e.g. mail.someisp.com).

Now you've setup Rmail which only *receives* mail.

* 3. Setup sending mail.

This really has nothing to do with Rmail.  You can send mail with Emacs
even if you don't receive mail with Emacs (and vice versa).

(setq send-mail-function 'smtpmail-send-it)
(setq smtpmail-smtp-server "<SMTP SERVER>")

Here <STMP SERVER> will be something like smtp.someisp.com.

(setq user-mail-address "<EMAIL ADDRESS>")
(setq smtpmail-smtp-service <PORT>)

<PORT> is the port your ISP uses.  That used to always be 25, now it is
often something different like 587.

....

After all that you can tweak things.  You might want to add a
".authinfo" file to contain your SMTP server login details so you don't
have to enter them every time you send a mail.  You might also want to add a
".mu-tickets" file so you don't have to enter your POP server login
details every time you start Rmail.

The variables mail-default-headers, rmail-delete-after-output,
rmail-output-file-alist and rmail-automatic-folder-directives can be
useful for tweaking things.  The Rmail section of the Emacs manual
describes them all.  You also might want to customize send-mail-function
to something else.

BR,
Robert Thorpe



      parent reply	other threads:[~2021-03-28  2:40 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-26 21:58 RMS Setup Caleb Herbert
2021-03-26 22:26 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-27  9:27   ` Uwe Brauer
2021-03-27 14:25     ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-27 14:47     ` Gregory Heytings
2021-03-27 15:02       ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-27 16:25       ` Uwe Brauer
2021-03-26 22:33 ` [External] : " Drew Adams
2021-03-26 22:45   ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-26 22:50     ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-26 22:53     ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-26 22:58       ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-26 23:12 ` Philip Kaludercic
2021-03-26 23:19   ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-26 23:26     ` Philip Kaludercic
2021-03-26 23:33       ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-26 23:35       ` Jean Louis
2021-03-26 23:50         ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-27  7:08           ` Tomas Hlavaty
2021-03-27  7:45             ` Jean Louis
2021-03-27 14:23               ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-27 14:14             ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-26 23:34     ` Jean Louis
2021-03-26 23:48       ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-27 21:02   ` Caleb Herbert
2021-03-27 21:16     ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-03-27 21:24     ` Jean Louis
2021-03-28  2:40     ` Robert Thorpe [this message]

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

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

  git send-email \
    --in-reply-to=87eeg057bg.fsf@robertthorpeconsulting.com \
    --to=rt@robertthorpeconsulting.com \
    --cc=csh@bluehome.net \
    --cc=help-gnu-emacs@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.