all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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: Thu, 24 Apr 2014 00:48:30 +0100	[thread overview]
Message-ID: <87iopzfvzl.fsf@robertthorpeconsulting.com> (raw)
In-Reply-To: <CALR_T9AZeHjhAFWeiF2LpAC2q0h6cO6D2LrCR+UfnY8YVtvS-A@mail.gmail.com> (message from Sam Halliday on Thu, 24 Apr 2014 00:20:13 +0100)

Sam Halliday <sam.halliday@gmail.com> writes:
> Yes, Gmail usernames have the @ symbol, so I would greatly appreciate your
> workaround.

First try things as they are and see if it works.  There maybe something
wrong with my setup that causes the workaround to be needed.

If you need it this is what I did....  First specify your username using
%40 instead of @.
(setq rmail-primary-inbox-list ("imap://username%40yourserver.com@yourimapserver.com"))

Secondly, fish the function rmail-insert-inbox-text out of rmail.el and
put it in a separate .el file.  Then after the bit:

      ;; At this point, TOFILE contains the name to read:
      ;; Either the alternate name (if we renamed)
      ;; or the actual inbox (if not renaming).

I added:
      (with-temp-buffer
	(insert tofile)
	(goto-char (point-min))
	(replace-string "%40" "@")
	(setq tofile (buffer-string)))

I require rmail in my .emacs file and load the .el file containing the
modified version of rmail-insert-inbox-text.  You could modify Emacs
directly, I don't like doing that though.

> I'd really like to avoid putting passwords in plain text files, especially
> emacs configuration. Can I set up rmail to prompt me for the password when
> I first open the mode?

If you omit ":password" in rmail-primary-inbox-list then rmail will ask
you for it every time you start it.  It stores the password for the
session AFAIK.

BR,
Robert Thorpe



  reply	other threads:[~2014-04-23 23:48 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
2014-04-23 23:20   ` Sam Halliday
2014-04-23 23:48     ` Robert Thorpe [this message]
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

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

  git send-email \
    --in-reply-to=87iopzfvzl.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.
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.