read mail in mbox files

2011-01-18 Thread ernest
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!
Frankly, I'm a bit confused :/
Cheers,
Ernest
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: read mail in mbox files

2011-01-18 Thread ernest
Thanks for the comments.

On 18 Gen, 14:35, pmli...@free.fr (Peter Münster) wrote:
 ernest nfdi...@gmail.com writes:
  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?

 Perhaps yes. But it's not recommended. Gnus does not use any locking like
 sendmail or procmail, so whenever new mail arrives at the same time as
 Gnus is working on the mbox, you'll get problems.

  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 can use the mbox backend and tell procmail to save all incoming
 messages in ~/.mail/*.spool. Then you set

 (setq mail-sources '((file) (directory :path ~/.mail))

 and you'll get mbox files in ~/Mail for every spool file in ~/.mail
 Just be sure, that only Gnus works on the files in ~/Mail.

If I understand correctly, this will copy the spool files in ~/.mail
to ~/Mail, and leave everything in ~/.mail unchanged. This is not
exactly what I wanted though.

The idea is that mbox being an open format one would say it
should be possible to use the same mailboxes with different MUAs,
for instance mutt and gnus, at the same time (maybe not
simultaneously, ok, but you get the idea). In theory it should be
easy, but in practice it is not.

Cheers.
Ernest
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english


Re: read mail in mbox files

2011-01-18 Thread ernest
On 18 Gen, 15:48, pmli...@free.fr (Peter Münster) wrote:
 ernest nfdi...@gmail.com writes:
  If I understand correctly, this will copy the spool files in ~/.mail
  to ~/Mail, and leave everything in ~/.mail unchanged. This is not
  exactly what I wanted though.

  The idea is that mbox being an open format one would say it
  should be possible to use the same mailboxes with different MUAs,
  for instance mutt and gnus, at the same time (maybe not
  simultaneously, ok, but you get the idea). In theory it should be
  easy, but in practice it is not.

 No problem if you don't use the 2 MUAs simultaneously and you don't use
 the incoming spools. The only problem with Gnus is the locking, that's
 why it uses some movemail program that locks correctly and saves the
 incoming email somewhere at $HOME.

 At least 2 options:

 1.)
 /var/mail/user   -   ~/.mail/*.spool  with procmail
 ~/.mail/*.spool  -   ~/Mail/*         with Gnus
 Managing ~/Mail/* with Gnus or mutt, but not at the same time.

 2.) Use maildir: no locking problems.
 /var/mail/user   -   ~/Mail/...       with procmail
 Managing ~/Mail/... with Gnus or mutt, or both at the same time!

Ah, I think I finally got it!
First, I switched to maildir. Then I put this in .gnus.el:

(setq gnus-select-method'(nnnil ))
(setq gnus-secondary-select-methods
  '((nnmaildir  (directory ~/Mail/

Started gnus, hit L, and the maildir folders appeared right there.
Still need some adjustments, but I'm definitely on the right track
:)
Thanks to everyone.

Cheers,
Ernest
___
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english