From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83478 Path: news.gmane.org!not-for-mail From: Eric S Fraga Newsgroups: gmane.emacs.gnus.general Subject: experience setting up gnus for the first time Date: Fri, 5 Jul 2013 11:18:17 +0100 Message-ID: <87r4fdtimu.fsf@ucl.ac.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1373019619 18352 80.91.229.3 (5 Jul 2013 10:20:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Jul 2013 10:20:19 +0000 (UTC) To: Original-X-From: ding-owner+M31738@lists.math.uh.edu Fri Jul 05 12:20:17 2013 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Uv37f-00083Q-QW for ding-account@gmane.org; Fri, 05 Jul 2013 12:20:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1Uv369-0001jc-NI; Fri, 05 Jul 2013 05:18:41 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1Uv367-0001jO-NY for ding@lists.math.uh.edu; Fri, 05 Jul 2013 05:18:39 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1Uv366-0006G7-97 for ding@lists.math.uh.edu; Fri, 05 Jul 2013 05:18:39 -0500 Original-Received: from ch1ehsobe006.messaging.microsoft.com ([216.32.181.186] helo=ch1outboundpool.messaging.microsoft.com) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Uv364-0004uP-Ja for ding@gnus.org; Fri, 05 Jul 2013 12:18:36 +0200 Original-Received: from mail212-ch1-R.bigfish.com (10.43.68.236) by CH1EHSOBE014.bigfish.com (10.43.70.64) with Microsoft SMTP Server id 14.1.225.22; Fri, 5 Jul 2013 10:18:26 +0000 Original-Received: from mail212-ch1 (localhost [127.0.0.1]) by mail212-ch1-R.bigfish.com (Postfix) with ESMTP id B507F30022B for ; Fri, 5 Jul 2013 10:18:26 +0000 (UTC) X-Forefront-Antispam-Report: CIP:157.56.254.245;KIP:(null);UIP:(null);IPV:NLI;H:DB3PRD0111HT004.eurprd01.prod.exchangelabs.com;RD:none;EFVD:NLI X-SpamScore: -1 X-BigFish: PS-1(zzbb2dId772h14ffIzz1f42h1ee6h1de0h1d18h1fdah2073h1202h1e76h1d1ah1d2ah1fc6hzzz2dh2a8h668h839h8e2h8e3hd24he5bhf0ah1288h12a5h12a9h12bdh12e5h137ah13b6h1441h1504h1537h153bh162dh1631h16a6h1758h18e1h1946h19b5h19ceh1ad9h1b0ah1d0ch1d2eh1d3ah1d3fh1dc1h1de2h1dfeh1dffh1e1dhbe9i1155h) Original-Received: from mail212-ch1 (localhost.localdomain [127.0.0.1]) by mail212-ch1 (MessageSwitch) id 1373019504818905_30026; Fri, 5 Jul 2013 10:18:24 +0000 (UTC) Original-Received: from CH1EHSMHS017.bigfish.com (snatpool1.int.messaging.microsoft.com [10.43.68.240]) by mail212-ch1.bigfish.com (Postfix) with ESMTP id C41BBE004C for ; Fri, 5 Jul 2013 10:18:24 +0000 (UTC) Original-Received: from DB3PRD0111HT004.eurprd01.prod.exchangelabs.com (157.56.254.245) by CH1EHSMHS017.bigfish.com (10.43.70.17) with Microsoft SMTP Server (TLS) id 14.1.225.23; Fri, 5 Jul 2013 10:18:21 +0000 Original-Received: from localhost (2.29.38.137) by pod51002.outlook.com (10.255.186.37) with Microsoft SMTP Server (TLS) id 14.16.324.0; Fri, 5 Jul 2013 10:18:20 +0000 Mail-Followup-To: ding@gnus.org X-Originating-IP: [2.29.38.137] X-UCLLIVE-SCLRULE: HASRUN X-OriginatorOrg: ucl.ac.uk X-Spam-Score: -2.9 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:83478 Archived-At: Hello all, I have been using gnus for years and my configuration is quite long and convoluted. As it (generally) works as I want it to, I haven't bothered cleaning it up. However, recently I had the opportunity to pretend to start from scratch. I broke my Android phone (a brand new Nexus 4 ) and had to go back to my previous phone, a Nokia N900 which runs a more easily customisable Linux (Maemo 5) than Android, say. I really like the N900, even though it's relatively slow, especially because it has a real keyboard. However, the default MUA is not to my liking. In any case, having upgraded the software on the N900, I noticed that I now had Emacs 24 installed! So I decided to install the latest version of gnus from git and try to use it from scratch. I thought it might help new users of gnus to see what I had to do to get a functioning setup from scratch. The three configuration files follow. The first is my .gnus.el file: #+begin_src emacs-lisp (setq gnus-secondary-select-methods '((nnimap "MainEmail" (nnimap-address "my.imap.server") (nnimap-inbox "INBOX") (nnimap-stream ssl)) ) gnus-select-method '(nnnil "") ) #+end_src This is relatively straightforward and simply defines the IMAP server to access. To specify how to access this server, I use authinfo, specifically ~/.authinfo.gpg, with contents along these lines: machine my.imap.server login userid.on.imap.server password mypassword port 993 At this point, I had enough to read my emails (well, including the loading of Ma Gnus which is in the .emacs file described below). This was all quite easy so I was happy: it was a good start. However, I could not send any emails and setting up SMTP in Emacs proved more challenging. After much playing around, my final .emacs configuration file contains the following, mostly related to the SMTP configuration: #+begin_src emacs-lisp (add-to-list 'load-path "~/git/gnus/lisp") (require 'gnus-load) (setq mail-host-address "my.mail.domain" smtpmail-mail-address "me@my.mail.domain" ) (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(gnus-posting-styles (quote ((".*" (signature-file "~/.signature-n900.txt"))))) '(gnus-use-adaptive-scoring (quote (line))) '(message-send-mail-function (quote message-smtpmail-send-it)) '(send-mail-function (quote smtpmail-send-it)) '(smtpmail-default-smtp-server "my.imap.server") '(smtpmail-local-domain "my.mail.domain") '(smtpmail-smtp-server "my.imap.server") '(smtpmail-smtp-service 587) '(smtpmail-smtp-user "userid.on.imap.server") '(smtpmail-stream-type (quote starttls)) '(user-full-name "My Full Name") '(user-mail-address "me@my.mail.domain")) #+end_src This was less obvious. Getting SMTP to work required identifying a whole slew of variables, with the various settings shown here. I am not yet sure which of these are superfluous but this full set did enable both fetching and sending of emails. The annoying aspect is having the same information (e.g. mail address, server) repeated in the configuration. On my larger systems, I do not use Emacs SMTP to send emails, relying on external tools. Hence, I had no experience in configuring this aspect of Emacs. Maybe others can chime in... The posting style and the adaptive scoring included above are *not* necessary but they are quite useful. I now have a fully functioning gnus on my little pocket computer, aka a phone! I hope this proves useful to any gnus n00bs wanting to use what is, in my opinion, the best MUA available on any system! -- : Eric S Fraga, GnuPG: 0xFFFCF67D : in Emacs 24.3.50.1 + Ma Gnus v0.8 + evil 1.0.5 : BBDB version 3.02 ($Date: 2013/05/15 13:17:58 $)