Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Richard Riley <rileyrg@googlemail.com>
To: info-gnus-english@gnu.org
Subject: Re: read mail in mbox files
Date: Tue, 18 Jan 2011 15:09:15 +0100	[thread overview]
Message-ID: <ih46ub$gvp$2@quimby.gnus.org> (raw)
In-Reply-To: <mailman.2.1295358933.21909.info-gnus-english@gnu.org>

Gary <gnus@garydjones.name> writes:

> Funny. I didn't see the OP. Anyway...
>
> Richard Riley wrote:
>> ernest <nfdisco@gmail.com> writes:
>>
>>> Hi,
>>> This is my setup: I use fetchmail to get mail from
>>> different POP/IMAP servers, then split the incoming
>>> mail with procmail into different mbox files in ~/Mail.
>>> What I'd like is gnus to work directly on these mbox
>>> files. Is this possible? What backend do I need?
>>> I'd say I don't even want a backend, because I don't
>>> want to copy mail anywhere!
>
>> You're not alone! This is *probably* the nnml backend.
>>
>>    (setq gnus-select-method '(nnml "nnml"))
>>
>> That said I dont know for sure ;)
>
> I asked something similar before, but never really got anything that
> worked so asked on the other gnus list (basically, the dev
> list). Leonidas Tsampros said the following:
>
> ,----[ Leonidas Tsampros ]
> | 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")))
> `----
>
> But, rather embarassingly, I haven't had time to try it out yet.
>
>> But a point : despite using Gnus for a few years now I am not clear
>> on what "incoming mail" means in the context.  Possibly it looks in
>> /var/spool/mail. But since your mail is already there, I dunno. 
>
> Does the above help, Richard?

Yes & No ;(

It doesnt use spam-split. 

But it DOES explain the "incoming" and "nnml" backend better!

Had it mentioned how and why ~/Mail got its mail (system mail) all the
better. But a good set up.

>
> Potentially I suppose one could do away with procmail, and set
> mail-sources to /var/spool/mail, and it will end up split into

Thats my current set up.

> ~/Mail.Gnus. @ernest I'd be very happy if you posted the results of
> whatever you do, as I have a similar current setup to you, and the same
> desire to read my email in mbox files using gnus.

I'm interested why mbox? You mean existing mbox?

  parent reply	other threads:[~2011-01-18 14:09 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-17 22:38 ernest
2011-01-17 23:08 ` Richard Riley
2011-01-18 10:20   ` Leonidas Tsampros
     [not found]   ` <mailman.5.1295346040.7593.info-gnus-english@gnu.org>
2011-01-18 12:41     ` Richard Riley
2011-01-18 13:04       ` Adam Sjøgren
2011-01-18 13:59         ` Richard Riley
2011-01-18 17:24           ` Adam Sjøgren
2011-01-18 17:46             ` Richard Riley
2011-01-18 18:08               ` Adam Sjøgren
2011-01-18 18:29                 ` Richard Riley
2011-01-18 18:34                   ` Adam Sjøgren
2011-01-18 19:09                     ` Richard Riley
2011-01-19 16:15                       ` Richard Riley
2011-01-19 17:31                         ` Richard Riley
2011-01-18 18:49                   ` Peter Münster
2011-01-18 13:55   ` Gary
     [not found]   ` <mailman.2.1295358933.21909.info-gnus-english@gnu.org>
2011-01-18 14:09     ` Richard Riley [this message]
2011-01-18 20:48       ` Leonidas Tsampros
2011-01-21 10:36       ` Gary
2011-01-18 14:51     ` Richard Riley
2011-01-18 17:10       ` Adam Sjøgren
2011-01-18 17:28         ` Richard Riley
2011-01-18 17:42           ` Adam Sjøgren
2011-01-18 18:54           ` Glyn Millington
     [not found]           ` <mailman.3.1295377815.19159.info-gnus-english@gnu.org>
2011-01-18 19:19             ` Richard Riley
2011-01-18 21:47               ` Glyn Millington
     [not found]               ` <mailman.4.1295387630.19799.info-gnus-english@gnu.org>
2011-01-19 13:47                 ` Richard Riley
2011-01-18 13:35 ` Peter Münster
2011-01-18 14:11   ` ernest
2011-01-18 14:48     ` Peter Münster
2011-01-18 18:38       ` ernest

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='ih46ub$gvp$2@quimby.gnus.org' \
    --to=rileyrg@googlemail.com \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).