From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/72599 Path: news.gmane.org!not-for-mail From: Leonidas Tsampros Newsgroups: gmane.emacs.gnus.general Subject: Re: Using gnus with locally stored email (repost from users ml) Date: Tue, 05 Oct 2010 12:32:19 +0300 Message-ID: <87zkutrnmk.fsf@bifteki.lan> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1286271194 12968 80.91.229.12 (5 Oct 2010 09:33:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 5 Oct 2010 09:33:14 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M20971@lists.math.uh.edu Tue Oct 05 11:33:12 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P33tW-0004Ts-Ki for ding-account@gmane.org; Tue, 05 Oct 2010 11:33:10 +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 1P33tR-0005yu-02; Tue, 05 Oct 2010 04:33:05 -0500 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 1P33tO-0005yY-UQ for ding@lists.math.uh.edu; Tue, 05 Oct 2010 04:33:02 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1P33tN-0007u4-Pj for ding@lists.math.uh.edu; Tue, 05 Oct 2010 04:33:02 -0500 Original-Received: from mail-fx0-f44.google.com ([209.85.161.44]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1P33tM-0004Gs-00 for ; Tue, 05 Oct 2010 11:33:00 +0200 Original-Received: by fxm6 with SMTP id 6so5219205fxm.17 for ; Tue, 05 Oct 2010 02:32:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:from:to :subject:in-reply-to:references:user-agent:mail-followup-to:date :message-id:mime-version:content-type; bh=MRodBE/JbTAh4MfZl+vsGHG1vGUq00JZsGUNTLD7g4E=; b=ldM3kAOwfVzptp7W0OMKQU6VcBwUo8C9VkHRH3YZlFZgqEWFWQ4pVH0Ns2iKpXiC2n 2iRXeXAVFllZxpXYXBPmKDCGHSi7JDx1CH8tve15/PqcoMHTXJfyEToReUQZkF67a1Mv UwNAfAkgi0QaLBiye816DpXnDYAuMnb/Yzjh4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:subject:in-reply-to:references:user-agent :mail-followup-to:date:message-id:mime-version:content-type; b=OaLZkiVuGbzzkXexUu4c0d1C730CSKZmOt5PuD4aJNDxBDV1NMeSXN/TOIsuyK/7Fy 96VaAWwYYlsf6ib3KYGJjPqJ2wteCP6bDltEOx/KUvk8v+7P1RSwtLBiAFywQVCVHuON 6kZQjlCqkz0tP92FZYoYWPKCcPVTyI5PwGWZs= Original-Received: by 10.223.120.139 with SMTP id d11mr2704336far.43.1286271150604; Tue, 05 Oct 2010 02:32:30 -0700 (PDT) Original-Received: from ltsampros-laptop (vader.bytemobile-rio.ondsl.gr [83.235.57.37]) by mx.google.com with ESMTPS id b9sm2754214faq.7.2010.10.05.02.32.29 (version=SSLv3 cipher=RC4-MD5); Tue, 05 Oct 2010 02:32:29 -0700 (PDT) Original-Received: from ltsampros-laptop (localhost [127.0.0.1]) by ltsampros-laptop (Postfix) with ESMTP id 02BD4417B8 for ; Tue, 5 Oct 2010 12:32:26 +0300 (EEST) In-Reply-To: (Gary's message of "Tue, 05 Oct 2010 10:16:45 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Mail-Followup-To: ding@gnus.org X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:72599 Archived-At: Gary writes: > Sorry, I know this isn't the right place really, but I asked on the > users ml and didn't really get where I am trying to get to. > > I've got a whole pile of locally stored mail in mbox files in ~/Mail and > subdirectories thereof. Mutt is pretty easily configured to handle that, > and that's what I used exclusively until a few months ago. I'm not > married to mbox, I could also use maildir or any other format that mutt > and gnus are both capable of reading. > > As I've been moving ever more to emacs, I find myself using gnus more > and more, but haven't tried integrating locally stored email (for which > I still use fetchmail & procmail). What's my best way of doing that? I > still want to suck some email down to my own HD, and that's not going to > change, so please don't suggest using imap :) > > If I can, I would still like the email to be accessible to mutt, even if > I only rarely use it. Would nnfolder screw that up? Otherwise, that > looks like the closest to what I already have, right? > > Or do I want > (setq mail-sources > '((directory :path "/home/gary/Mail"))) > > Actually I tried just that, and nothing happened, so I guess I have to > also set something else? I'm rather confused about the > relationship/differences between mail sources and backends... Hi Gary, this is exactly the setup I use. My primary select methos is a local university nntp server we have and as the secondary methods I have the following: (setq gnus-secondary-select-methods '((nnml "") (nnimap "10.6.0.20"))) Then I have these in my .conf: (setq nnml-directory "~/Mail.Gnus") (setq mail-source-delete-incoming t) (setq mail-sources '((directory :path "~/Mail" :suffix ""))) So, Emacs now reads all Mail on all mboxes under ~/Mail, and 'ingests' them into the nnml backend which is under "~/Mail.Gnus". Now at this point and in order to emulate procmail's behaviour, I use fancy splitting: ;; fancy mail splitting (setq nnmail-resplit-incoming t) (setq nnmail-split-methods 'nnmail-split-fancy) (setq nnmail-split-fancy '(| ("list-id" "ding\\.gnus\\.org" "mail.gnus.ding"))) In case I have any mistakes in my explanations, please correct me. I hope this helps. PS: I'm really bored and I never changed the fetchmail/procmail configuration in order not to do double splitting (I just update the fancy splitting rules) Regards Leonidas