Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Julien Cubizolles <j.cubizolles@free.fr>
To: info-gnus-english@gnu.org
Subject: nnir-notmuch-remove-prefix isn't a group parameter?
Date: Wed, 11 Nov 2015 14:44:33 +0100	[thread overview]
Message-ID: <87h9ksd51a.fsf_-_@free.fr> (raw)
In-Reply-To: <87y4e5h0ot.fsf@tullinup.koldfront.dk>

asjo@koldfront.dk (Adam Sjøgren) writes:

> Julien writes:
>
>> asjo@koldfront.dk (Adam Sjøgren) writes:
>
>>> Can you read those from Gnus? I.e. do they belong to a group in Gnus?
>
>> Yes I can and yes they do.
>
> Curiouser and curiouser. What backend do you use to access them?

I finally could fix it: my nnml was stored in ~/email/Local/ so notmuch
had to remove some prefix (which it didn't need to in your setup since
yours is in ~/Mail)

The following is working

--8<---------------cut here---------------start------------->8---
(setq gnus-select-method 
      '(nnml "Local"
	     (nnml-directory "~/email/Local")
	     (nnml-active-file "~/email/Local/active")
	     (nnml-get-new-mail nil)
	     (nnir-search-engine notmuch)
	     (nnir-notmuch-remove-prefix "/home/wilk/email/Local/")
	     )
      )
--8<---------------cut here---------------end--------------->8---

However, I also have 2 Maildirs (in /home/wilk/email/Maildir/Free for
instance) along with the nnml folder, and I wanted to try notmuch on
them too. I have set up some secondary methods like:

--8<---------------cut here---------------start------------->8---
(setq gnus-secondary-select-methods
      '(
	(nnimap "FreeOffline"
		(nnimap-stream shell)
		;; (nnimap-shell-program "/usr/lib/dovecot/imap -c /home/wilk/.dovecotrc-free")
		(nnimap-shell-program "/usr/lib/dovecot/imap -o mail_location=maildir:$HOME/email/Maildir/Free:LAYOUT=fs")
		(nnimap-split-methods default)
		(nnimap-inbox "INBOX")
		(nnir-search-engine notmuch)
		(nnir-notmuch-remove-prefix "/home/wilk/email/Maildir/Free/")
		)
)
--8<---------------cut here---------------end--------------->8---

but nnir-notmuch-remove-prefix seems to be always set to the value
defined in the primary method. So I guess that
nnir-notmuch-remove-prefix is not a group parameter. It would make sense
that it were, don't you think ?

For the time being I'll stick to the imap engine for nnir on the
maildir.

Julien.


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

  reply	other threads:[~2015-11-11 13:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-09 15:48 Jump from notmuch to Gnus for nnml, nnfolder? Julien Cubizolles
2015-11-09 17:20 ` Adam Sjøgren
2015-11-10 17:59   ` Julien Cubizolles
2015-11-10 21:45     ` Adam Sjøgren
2015-11-10 23:32       ` Julien Cubizolles
2015-11-10 23:52         ` Adam Sjøgren
2015-11-11 13:44           ` Julien Cubizolles [this message]
2015-11-11 13:49             ` nnir-notmuch-remove-prefix isn't a group parameter? Adam Sjøgren
2015-11-11 17:21               ` Julien Cubizolles
2015-11-11 18:32                 ` Julien Cubizolles

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=87h9ksd51a.fsf_-_@free.fr \
    --to=j.cubizolles@free.fr \
    --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).