[GNU EMACS] smtpmail package and queue
[notmuch-archives.git] / 3e / e98799bdda7b468d18cb2afbc87ff5f938be21
1 Return-Path: <tassilo@member.fsf.org>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 522F8431FBC\r
6         for <notmuch@notmuchmail.org>; Fri, 27 Nov 2009 14:10:38 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 Received: from olra.theworths.org ([127.0.0.1])\r
9         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
10         with ESMTP id mi68uJQP2oI4 for <notmuch@notmuchmail.org>;\r
11         Fri, 27 Nov 2009 14:10:34 -0800 (PST)\r
12 Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com\r
13         [66.111.4.28])\r
14         by olra.theworths.org (Postfix) with ESMTP id 92AAB431FAE\r
15         for <notmuch@notmuchmail.org>; Fri, 27 Nov 2009 14:10:34 -0800 (PST)\r
16 Received: from compute2.internal (compute2.internal [10.202.2.42])\r
17         by gateway1.messagingengine.com (Postfix) with ESMTP id 19C45C192B;\r
18         Fri, 27 Nov 2009 17:10:34 -0500 (EST)\r
19 Received: from heartbeat2.messagingengine.com ([10.202.2.161])\r
20         by compute2.internal (MEProxy); Fri, 27 Nov 2009 17:10:34 -0500\r
21 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com;\r
22         h=from:to:cc:subject:references:date:in-reply-to:message-id:mime-version:content-type;  s=smtpout; bh=DiiGdYCXW5mE/fKyHWAsfBEZNSE=;\r
23         b=uKX8CWXjg8uA3ApoKQVj5kES2h5op8iSQFbXYeL+PTFozqPa958oU9LNceq9GbjbN8qZYLk1kzVVHc+zxD5nMqBwHfpcyeJcv4w4kTDu4ZRGfpNSmwMfTJl+dvxOvAthw5SztsBIbfyMUg8n8NrbxEMN7TaN/+D7WKPsYvOQju8=\r
24 X-Sasl-enc: Dw+XAqs3q3D+oP7mPYJ/DykcmCgDY6+q3NwRC+zzSFQy 1259359833\r
25 Received: from thinkpad.tsdh.de (p54AF2603.dip0.t-ipconnect.de [84.175.38.3])\r
26         by mail.messagingengine.com (Postfix) with ESMTPA id EA5D41786B;\r
27         Fri, 27 Nov 2009 17:10:32 -0500 (EST)\r
28 From: Tassilo Horn <tassilo@member.fsf.org>\r
29 To: Carl Worth <cworth@cworth.org>\r
30 References: <87zl6cl595.fsf@thinkpad.tsdh.de>\r
31         <87d434qek6.fsf@yoom.home.cworth.org>\r
32 Date: Fri, 27 Nov 2009 23:10:30 +0100\r
33 In-Reply-To: <87d434qek6.fsf@yoom.home.cworth.org> (Carl Worth's message of\r
34         "Fri, 27 Nov 2009 05:31:53 -0800")\r
35 Message-ID: <87r5rjk4a1.fsf@thinkpad.tsdh.de>\r
36 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)\r
37 MIME-Version: 1.0\r
38 Content-Type: text/plain; charset=us-ascii\r
39 Cc: notmuch@notmuchmail.org\r
40 Subject: Re: [notmuch] Snippet to jump to message in Gnus from notmuch-show\r
41         buffer\r
42 X-BeenThere: notmuch@notmuchmail.org\r
43 X-Mailman-Version: 2.1.12\r
44 Precedence: list\r
45 List-Id: "Use and development of the notmuch mail system."\r
46         <notmuch.notmuchmail.org>\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
50 List-Post: <mailto:notmuch@notmuchmail.org>\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
54 X-List-Received-Date: Fri, 27 Nov 2009 22:10:38 -0000\r
55 \r
56 Carl Worth <cworth@cworth.org> writes:\r
57 \r
58 Hi Carl,\r
59 \r
60 > On Tue, 24 Nov 2009 09:02:46 +0100, Tassilo Horn <tassilo@member.fsf.org> wrote:\r
61 >> I'm a Gnus user and use notmuch mostly for searching.  When I want to\r
62 >> reply to a message, I need to get back to Gnus, so that my Gnus\r
63 >> posting styles (gcc into that group, right email address, correct\r
64 >> signature,...)  are applied.\r
65 >\r
66 > Oh, good. I've been hoping to be able to get some advice from gnus\r
67 > users. I want to figure out how to get gnus support for viewing\r
68 > encrypted messages, etc.\r
69 \r
70 Oh, I don't have any clue about encryption.  EasyPG is a keyword, that I\r
71 can provide, though.\r
72 \r
73 > Do you happen to know some good documentation for how to get started\r
74 > with gnus for reading mail? I'd be happy even with the bare minimum to\r
75 > just get gnus to view one single message from out of my mail\r
76 > store. (Which is something I tried to figure out from the gnus manual,\r
77 > but I never succeeded at.)\r
78 \r
79 Well, if you only want to have a look at a maildir or mbox, and don't\r
80 want to make the group permanent and let gnus fetch mail, then this\r
81 should do the trick.\r
82 \r
83   M-x gnus RET ;; brings you into the *Group* buffer, and then\r
84 \r
85 ,----[ (info "(gnus)Foreign Groups") ]\r
86 | `G m'\r
87 |      Make a new group (`gnus-group-make-group').  Gnus will prompt you\r
88 |      for a name, a method and possibly an "address".  For an easier way\r
89 |      to subscribe to NNTP groups (*note Browse Foreign Server::).\r
90 `----\r
91 \r
92 >> Therefore, I created this small snippet.  Now C-c C-c inside some\r
93 >> message in the *notmuch-show* buffer opens this article in a Gnus\r
94 >> *Summary* buffer, where I can reply to it, forward it, ...\r
95 >\r
96 > And this would be exactly the thing I would want for exploring gnus,\r
97 > if only I could get it working.\r
98 \r
99 This does only work if the group already exists inside Gnus.  So you\r
100 might consider setting it up properly, although it's a bit first-time\r
101 effort.\r
102 \r
103 > If I just try to run it, I get:\r
104 >\r
105 >       Symbol's function definition is void: org-gnus-follow-link\r
106 \r
107 Do you use Emacs 23?  If yes, put a (require 'org-gnus) before the\r
108 call.  If not, you have to install org-mode manually.\r
109 \r
110 > And I suppose that's expected since I don't have gnus "running". If I\r
111 > try to start gnus with "M-x gnus", I get:\r
112 >\r
113 >       Unable to open server nntp+news, go offline? (y or n) \r
114 \r
115 Hm, I can reproduce that with "emacs -Q".  Looks wrong to me, probably a\r
116 bug...  Normally, an unconfigured Gnus should start having one nndoc\r
117 server providing some groups with static Gnus infos (FAQ and stuff).\r
118 \r
119 > What's the simplest way for me to tell gnus that I won't be using it\r
120 > in any other way than with the "nnimap+" folder I can tell you're\r
121 > using in your snippet?\r
122 \r
123 Here's a quick walkthrough my .gnus.el with only the basics (getting\r
124 mail/news).\r
125 \r
126 --8<---------------cut here---------------start------------->8---\r
127 ;; Gnus has the concept of one select method, and a list of so-called\r
128 ;; secondary select methods.  I set the former to a do-nothing backend\r
129 ;; and only use the secondary ones, so that it's a bit more uniformly.\r
130 \r
131 (setq gnus-select-method '(nnnil))\r
132 \r
133 ;; Fetch news from my university's nntp server\r
134 (add-to-list 'gnus-secondary-select-methods\r
135              '(nntp "Uni"\r
136                     (nntp-address "news.uni-koblenz.de")\r
137                     (nntp-open-connection-function nntp-open-tls-stream)\r
138                     (nntp-port-number 563)))\r
139 \r
140 ;; Fetch mail from some POP3 accounts and split them according to\r
141 ;; address\r
142 \r
143 ;; The mails are stored in an nnml group at the given directory\r
144 (add-to-list 'gnus-secondary-select-methods\r
145              '(nnml "Popmail"\r
146                     (nnml-directory   "~/Mail/Popmail")\r
147                     (nnml-active-file "~/Mail/Popmail/active")))\r
148 \r
149 ;; Here the mails are fetched\r
150 (setq mail-sources `((pop :server "pop.gmx.de"\r
151                           :user "xxxxx@gmx.de"\r
152                           :password ,th-gnus-gmx-password)\r
153                      (pop :server "pop3.freenet.de"\r
154                           :user "xxxxx@freenet.de"\r
155                           :password ,th-gnus-freenet-password)))\r
156 \r
157 ;; Split them into the groups nnml+Popmail:gmx, freenet, and misc\r
158 (setq nnmail-split-methods 'nnmail-split-fancy\r
159       nnmail-split-fancy\r
160       '(| (any "xxxxx@gmx.de"     "gmx")\r
161           (any "xxxxx@freenet.de" "freenet")\r
162           "misc"))\r
163 \r
164 ;; Get mail from my local Dovecot IMAP server which I sync with my\r
165 ;; different accounts using OfflineIMAP\r
166 (add-to-list 'gnus-secondary-select-methods\r
167              '(nnimap "Fastmail"\r
168                       (nnimap-address "localhost")\r
169                       (nnimap-stream network)\r
170                       (nnimap-authenticator login)))\r
171 \r
172 (add-to-list 'gnus-secondary-select-methods\r
173              '(nnimap "Uni"\r
174                       (nnimap-address "localhost")\r
175                       (nnimap-stream network)\r
176                       (nnimap-authenticator login)))\r
177 --8<---------------cut here---------------end--------------->8---\r
178 \r
179 HTH,\r
180 Tassilo\r