From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Robert Thorpe Newsgroups: gmane.emacs.help Subject: Re: tutorial for rmail and IMAP Date: Thu, 24 Apr 2014 00:48:30 +0100 Message-ID: <87iopzfvzl.fsf@robertthorpeconsulting.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1398296949 13754 80.91.229.3 (23 Apr 2014 23:49:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Apr 2014 23:49:09 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Sam Halliday Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 24 01:49:02 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Wd6uT-0000Oz-4K for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Apr 2014 01:49:01 +0200 Original-Received: from localhost ([::1]:35159 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wd6uS-0002ap-P6 for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Apr 2014 19:49:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57279) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wd6u9-0002ai-NK for help-gnu-emacs@gnu.org; Wed, 23 Apr 2014 19:48:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wd6u1-0004WN-Fx for help-gnu-emacs@gnu.org; Wed, 23 Apr 2014 19:48:41 -0400 Original-Received: from outbound-smtp01.blacknight.com ([81.17.249.7]:39308) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wd6u1-0004WI-9L for help-gnu-emacs@gnu.org; Wed, 23 Apr 2014 19:48:33 -0400 Original-Received: from mail.blacknight.com (pemlinmail02.blacknight.ie [81.17.254.11]) by outbound-smtp01.blacknight.com (Postfix) with ESMTP id C1B2F98B7C for ; Wed, 23 Apr 2014 23:47:01 +0000 (UTC) Original-Received: (qmail 28030 invoked from network); 23 Apr 2014 23:48:31 -0000 Original-Received: from unknown (HELO RTLaptop) (rt@robertthorpeconsulting.com@[109.78.189.215]) by 81.17.254.9 with ESMTPSA (DHE-RSA-AES128-SHA encrypted, authenticated); 23 Apr 2014 23:48:31 -0000 In-Reply-To: (message from Sam Halliday on Thu, 24 Apr 2014 00:20:13 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 81.17.249.7 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:97347 Archived-At: Sam Halliday 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