Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: David Z Maze <dmaze@mit.edu>
To: info-gnus-english@gnu.org
Subject: Re: set mbox folder as mail sources
Date: Thu, 08 Nov 2007 16:32:20 -0500	[thread overview]
Message-ID: <y68y7d8whi3.fsf@contents-vnder-pressvre.mit.edu> (raw)
In-Reply-To: <873avgttis.fsf@gmail.com>

Teng Wang <twang.umn@gmail.com> writes:

> I am new to gnus. A couple of days before, I set up gnus as my
> newsreader. It works great. But I also want to read my email. Since I
> already set up mutt as my email client and I still want  to keep it, I
> just want to _read_ some of my emails in gnus. Because I already use
> procmail as email filter, all the coming email will directly sent to
> mbox folder. The question is  how I can use this mbox folder files in gnus.
>
> I have tried
> (setq mail-sources
>       '(file :path "path\to\mbox\file"))
> and
> (setq gnus-secondary-select-methods
>       '((nnml "mail"
>               (nnml-directory "some\folder")
>               (nnml-active-file "some\folder\active"))))

Two points here:

(1) This setup will pull all of the mail out of your mbox file and save
    them in (Gnus-specific) nnml groups; you won't be able to read your
    old mail in mutt any more.  You might look into either an nnmbox
    select method or creating a single nnmbox foreign group.

(2) Backslashes in elisp strings are escape characters; "\"" is a string
    containing a single quote.  If your OS uses backslash as its path
    separator, you probably need to double it in elisp strings, e.g.
    "path\\to\\mbox\\file".

  --dzm

  parent reply	other threads:[~2007-11-08 21:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-08 19:40 Teng Wang
2007-11-08 20:31 ` Exal de Jesus Garcia Carrillo
2007-11-08 20:58   ` Teng Wang
2007-11-08 21:32 ` David Z Maze [this message]
2007-11-08 22:52   ` Teng Wang
2007-11-09  0:33   ` Teng Wang
2007-11-09 17:39     ` Sven Bretfeld

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=y68y7d8whi3.fsf@contents-vnder-pressvre.mit.edu \
    --to=dmaze@mit.edu \
    --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).