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: Help setting up POP3 email (rmail) Date: Wed, 24 Feb 2016 20:28:31 +0000 Message-ID: <87si0h97kg.fsf@robertthorpeconsulting.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1456345747 8262 80.91.229.3 (24 Feb 2016 20:29:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Feb 2016 20:29:07 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 24 21:28:54 2016 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 1aYg3H-0002qJ-Ve for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Feb 2016 21:28:52 +0100 Original-Received: from localhost ([::1]:38186 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYg3H-0008EU-DG for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Feb 2016 15:28:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYg36-0008EP-9u for help-gnu-emacs@gnu.org; Wed, 24 Feb 2016 15:28:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYg32-0003XZ-Tt for help-gnu-emacs@gnu.org; Wed, 24 Feb 2016 15:28:40 -0500 Original-Received: from outbound-smtp03.blacknight.com ([81.17.249.16]:54323) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYg32-0003XN-Ks for help-gnu-emacs@gnu.org; Wed, 24 Feb 2016 15:28:36 -0500 Original-Received: from mail.blacknight.com (pemlinmail03.blacknight.ie [81.17.254.16]) by outbound-smtp03.blacknight.com (Postfix) with ESMTPS id 6C2309853D for ; Wed, 24 Feb 2016 20:28:32 +0000 (UTC) Original-Received: (qmail 7829 invoked from network); 24 Feb 2016 20:28:32 -0000 Original-Received: from unknown (HELO RTLaptop) (rt@robertthorpeconsulting.com@[93.107.66.221]) by 81.17.254.9 with ESMTPSA (DHE-RSA-AES128-SHA encrypted, authenticated); 24 Feb 2016 20:28:32 -0000 In-Reply-To: (cptvlaze@tutamail.com) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 81.17.249.16 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:109296 Archived-At: writes: > Thanks for the quick response. Is wondering if it was strictly necessary = to=20 > enter my password inside my code, wouldn't it be a major security > issue? It can be a security issue, though most graphical mail clients store it in a config file somewhere, which is just as bad. As I said, if it's a problem then don't mention passwords anywhere. If I remember correctly, if you don't have an authinfo file then Message-mode will ask you the password the first time you send an email. You can also make an authinfo.gpg file which is the encrypted version of authinfo, you can read about that on the web. For rmail just don't include the password: (setq rmail-primary-inbox-list (cons (concat "pop3://" "your_username" "@your_pop3_server.com") nil)) Rmail will prompt you for the password when you receive mail. BR, Robert Thorpe > I also have a problem with my init file, as emacs can't detect it. I have= =20 > created one at ~/.emacs.d/init.el, but this folder is protected (only=20 > accessible via su), which forces me to use emacs under sudo. Is there > any way to solve these problems?=C2=A0 Thanks again. > > 24. Feb 2016 01:41 por rt@robertthorpeconsulting.com: > > >> <> cptvlaze@tutamail.com> > writes: >> >>> Good afternoon. I've started using emacs today, so I'm a total newbie >>> at this time. I want to read my GMX email from emacs, using POP3 and >>> rmail, but I just don't know where to start. I've read lots of wikis >>> and manuals and I'm completely lost. Could somebody throw a bit of >>> light over this? Thank you. >> >> There are two parts to this. Firstly, there's setting up outgoing >> mail. That uses the part of Emacs called "Message" (which is the same >> for GNUs and Rmail). The second step is to setup Rmail for receiving >> mail. >> >> You need to find the names of the servers to communicate with. You need >> the SMTP server for outgoing mail and the POP3 server for incoming >> mail. If you're already using a mail program you can find that info in >> it's settings. >> >> Your init file maybe init.el or .emacs. Either way, put the following >> into it: >> >> ;; Firstly setup SMTP. >> (setq send-mail-function 'smtpmail-send-it) >> smtpmail-smtp-server "your_smtp_server.com" >> smtpmail-smtp-service 587 >> user-mail-address "> your_email_address@domain.com> ") >> ;; The line below puts sent items into an mbox file. >> (setq mail-default-headers "FCC: ~/Mail/Sent") >> ;; This puts my name correctly in email To/From lines. >> (setq user-full-name "Your Name") >> >> ;; Setup Rmail >> (setq rmail-primary-inbox-list >> (cons (concat "pop3://" >> "your_username" >> "your_password" >> "@your_pop3_server.com") nil)) >> >> I only use the "concat" above so I can separate out the various >> elements. If you omit the password then Emacs will ask you the first >> time you recieve mail. >> >> Finally, you can setup an ".authinfo" file. This is for sending mail >> with Message-mode. It avoids entering the password. >> >> Create a file called .authinfo in your ~/ directory. It only needs to >> contain one line: >> "machine your_smtp_server.com login your_username port 587 password >> your_password" >> >> Many ISP prefer you to use port 587 for outgoing emails rather than port >> 25, which was the traditional port. That's why I used "587" above in >> .authinfo and smtpmail-smtp-service. If your ISP is a traditionalist >> and prefers 25 then replace those numbers with 25. >> >> You can also setup encryption, see the manuals to Message and Rmail. >> Evaluate the lines below with C-x C-e. >> (info "(message) Top") >> (info "(emacs) Rmail"). >> >> If you have a username with a "@" symbol in it that will activate a bug >> in Rmail. I have a solution for that if it's a problem. >> >> BR, >> Robert Thorpe