Gnus development mailing list
 help / color / mirror / Atom feed
From: "Michael Teichgräber" <mt@wmipf.in-berlin.de>
Cc: ding@gnus.org
Subject: Re: Using different backends
Date: Fri, 02 May 2003 15:03:49 +0200	[thread overview]
Message-ID: <87fznxzemr.fsf@wmipf.in-berlin.de> (raw)
In-Reply-To: <u8ptn7kbeq.fsf@gromit.moeb> (Andreas Jaeger's message of "Sun, 27 Apr 2003 21:06:37 +0200")

[-- Attachment #1: Type: text/plain, Size: 2279 bytes --]

Andreas Jaeger <aj@suse.de> writes:

> Can anybody help me here?  I looked through the manual and through the
> sources but couldn't find anything.  The idea sounds fine,

In my case procmail is splitting mail into mbox-folders within two
directories 'incoming-nnfolder' and 'incoming-nnml'. Gnus will copy
per-folder from these directories via 'mail-sources' into nnfolder and
nnml groups.

The only way I got this working is by changing the key binding of 'g'
for getting new mail to a function that runs gnus-group-get-new-news
twice in different environments:

------------------------------------------------------------>8----------
(setq gnus-select-method '(nntp "news.vr.in-berlin.de"))

(setq gnus-secondary-select-methods '((nnfolder "") (nnml "")))

(defun my-gnus-group-get-new-news (&optional foo) (interactive "i")
  (let (mail-sources)
    (let ((gnus-secondary-select-methods '((nnml "") (nnfolder ""))))
      (setq mail-sources
            '((directory :path "~/Mail/incoming-nnml"
                         :suffix ""
                         :plugged t)))
      (gnus-group-get-new-news))
    (setq mail-sources
          '((file :plugged t)
            (directory :path "~/Mail/incoming-nnfolder"
                       :suffix ""
                       :plugged t)))
    (gnus-group-get-new-news)))

(add-hook 'gnus-group-mode-hook
          '(lambda()
             (local-set-key ?g 'my-gnus-group-get-new-news)))
----------8<------------------------------------------------------------

This approach was suggested some time ago in a News posting.

It makes Gnus check twice for new News articles as well. Trying to
avoid this, I have set gnus-select-method first to (nnml "")
                   and gnus-secondary-select-method to nil,

so that new News articles would be checked for only once. But, for
unknown reasons the process of getting mail from these local folders
then gets quite slow.

Since Gnus does not support this way of using two backends for local
mail retrieval, there is probably something strange with this
approach. Is there a better one, that allows using procmail to split
mails, and makes Gnus getting it into nnml or nnfolder groups,
depending on folder name?

-- 
Michael

[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]

  reply	other threads:[~2003-05-02 13:03 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-27 12:22 Andreas Jaeger
2003-04-27 15:25 ` Kai Großjohann
2003-04-27 19:06   ` Andreas Jaeger
2003-05-02 13:03     ` Michael Teichgräber [this message]
2003-05-02 13:30       ` Kai Großjohann
2003-05-02 14:26         ` Michael Teichgräber
2003-05-02 14:47           ` Kai Großjohann
2003-05-02 15:15             ` Michael Teichgräber
2003-05-03 15:51               ` mail-sources backend specific? (was: Using different backends) Michael Teichgräber
2003-05-03 17:25                 ` mail-sources backend specific? Kai Großjohann
2003-05-03 20:00                   ` Michael Teichgräber
2003-05-03 20:57                     ` Kai Großjohann
2003-05-04  2:40                       ` Michael Teichgräber
2003-05-04 13:29                         ` Kai Großjohann
2003-05-05 16:38                           ` Paul Jarc
2003-05-06 16:31                             ` Kai Großjohann
2003-05-06 19:55                               ` Paul Jarc
2003-05-29 14:27                                 ` Kai Großjohann
2003-05-29 16:14                                   ` Paul Jarc
2003-10-18 12:53                                     ` Lars Magne Ingebrigtsen
2003-05-03 17:21               ` Using different backends Kai Großjohann
2003-05-03 19:00                 ` Michael Teichgräber
2003-05-03 20:00                   ` Kai Großjohann
2003-04-28 18:58 ` Paul Jarc
2003-04-29  5:45   ` Andreas Jaeger
2003-04-29 15:23     ` Paul Jarc

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=87fznxzemr.fsf@wmipf.in-berlin.de \
    --to=mt@wmipf.in-berlin.de \
    --cc=ding@gnus.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).