From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/82618 Path: news.gmane.org!not-for-mail From: asjo@koldfront.dk (Adam =?iso-8859-1?Q?Sj=F8gren?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: Getting started: splitting mail, SMIME, local copies Date: Mon, 17 Dec 2012 17:28:53 +0100 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Message-ID: <87ip80bq2i.fsf@topper.koldfront.dk> References: <50187.178.18.17.204.1355256213.squirrel@lavabit.com> <1615.77.109.139.26.1355662809.squirrel@lavabit.com> <87wqwiuoes.fsf@topper.koldfront.dk> <38584.178.18.17.204.1355677835.squirrel@lavabit.com> <87k3shvrja.fsf@topper.koldfront.dk> <58447.94.23.148.23.1355749363.squirrel@lavabit.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1355761817 1938 80.91.229.3 (17 Dec 2012 16:30:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Dec 2012 16:30:17 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M30884@lists.math.uh.edu Mon Dec 17 17:30:29 2012 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 1TkdaF-00020G-Kz for ding-account@gmane.org; Mon, 17 Dec 2012 17:30:28 +0100 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 1TkdZ6-0000bg-IK; Mon, 17 Dec 2012 10:29:16 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1TkdZ3-0000bF-63 for ding@lists.math.uh.edu; Mon, 17 Dec 2012 10:29:13 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1TkdYy-0004WO-Dq for ding@lists.math.uh.edu; Mon, 17 Dec 2012 10:29:12 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1TkdYw-0007yb-Cd for ding@gnus.org; Mon, 17 Dec 2012 17:29:06 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TkdZ7-0001Fw-Td for ding@gnus.org; Mon, 17 Dec 2012 17:29:17 +0100 Original-Received: from 2505ds5-by.0.fullrate.dk ([89.150.142.116]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Dec 2012 17:29:17 +0100 Original-Received: from asjo by 2505ds5-by.0.fullrate.dk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Dec 2012 17:29:17 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 118 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 2505ds5-by.0.fullrate.dk OpenPGP: id=21BDE416; url=http://asjo.koldfront.dk/gpg.asc X-Now-Playing: D) X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97,Q(^@xk}n4Ou rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ ^St'=VZBR Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:82618 Archived-At: On Mon, 17 Dec 2012 08:02:43 -0500 (EST), bromley@lavabit.com wrote: >> (setq gnus-select-method '(nnnil "")) > That's great, but gnus won't connect to the IMAP server if I set the > above. How can I initialize a connection? You aren't giving us much information to go on... You added an imap entry to mail-sources? You added a local mail-server to gnus-secondary-select-methods (for instance nnml)? At work I use IMAP-as-POP, and have a setup that looks like this: ; No primary server: (setq gnus-select-method '(nnnil "")) ; Get email, and store in nnml: (setq gnus-secondary-select-methods '((nnml ""))) ; Mail sources: (setq mail-sources '((file) (imap :server "something.example.com" :stream ssl :fetchflag "\\Seen" ))) I would guess that is pretty close to what you need? For archiving outgoing messages I use this: ; Archive outgoing email in nnml+archive:(mail|news)-{year}: (setq gnus-message-archive-method '(nnml "archive" (nnml-directory "~/Mail/archive") (nnml-active-file "~/Mail/archive/active") (nnml-get-new-mail nil) (nnml-inhibit-expiry t))) (setq gnus-message-archive-group '((if (message-news-p) (concat "news-" (format-time-string "%Y")) (concat "mail-" (format-time-string "%Y"))))) I use fancy splitting; a simplified version of my setup is: (setq nnmail-split-methods 'nnmail-split-fancy) (setq nnmail-split-fancy '(| ("x-trac-project" "SomeProject" "trac.someproject") ("x-trac-project" "AnotherProject" "trac.anotherproject") ("Subject" "Spam: .*" "spam") ("Subject" ".*\\[Commits\\].*" "commits.git") (: (lambda () (car (bbdb/gnus-split-method)))) ("Content-class" "urn:content-classes:calendarmessage" "kalender") ("From" "Bacula .*" "bacula") ("X-Cron-Env" ".*" "cron") (any "tracadmin@example.com" "tracadmin") (: split-on-text-calendar-in-body "kalender") "normal")) ; Each email appears in max. one email-split group: (setq nnmail-crosspost nil) (The bbdb part and the split-on-text-calendar-in-body part needs more setup; this nnmail-split-fancy is a non-complete example). >> Configure splitting or fancy splitting: >> * http://gnus.org/manual/gnus_177.html >> * http://gnus.org/manual/gnus_184.html > Thanks for the links, but I've already seen them. Then you need to ask more specific questions than "How do I split?" :-) > These links show how splitting works using various backends as > examples (e.g. nnml, nnimap), but I'm using > (setq gnus-select-method '(nnnil "")) and > (setq mail-sources '((imap ...))). There are no such examples. I think you're missing the part where you tell Gnus where, locally, you want to store the emails that are fetched. > 1. Changed (setq gnus-select-method '(nnnil "")) to > (setq gnus-select-method '(nnml "")). (Because nnnil isn't documented.) It is in the version I'm running: ,---- | File: gnus, Node: The Empty Backend, Prev: Mail-To-News Gateways, Up: Other Sources | | 6.6.5 The Empty Backend | ----------------------- | | `nnnil' is a backend that can be used as a placeholder if you have to | specify a backend somewhere, but don't really want to. The classical | example is if you don't want to have a primary select methods, but want | to only use secondary ones: | | (setq gnus-select-method '(nnnil "")) | (setq gnus-secondary-select-methods | '((nnimap "foo") | (nnml ""))) | `---- But it has only been that way for ~2 years: * http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7653 Best regards, Adam -- "Faktum er, at Delphi er det bedste all-round Adam Sjøgren værktøj, der eksisterer i dag. Og mest produktive." asjo@koldfront.dk