all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* nnmairix
@ 2014-03-10 14:05 Phillip Lord
  2014-03-12  1:08 ` nnmairix Michael Heerdegen
  2014-03-12  6:57 ` nnmairix Glyn Millington
  0 siblings, 2 replies; 13+ messages in thread
From: Phillip Lord @ 2014-03-10 14:05 UTC (permalink / raw
  To: help-gnu-emacs



I've been trying nnmairix out recently because it looked like it might
be a nice search tool.

It seems to be working -- after searching I get a directory like so...

Mail/zz_mairix-default-1/cur 

which contains symlinks. I have these groups


  0: nnml:zz_mairix-default-1
  0:*nnml:zz_mairix-default-1.cur
  0:*nnmairix+mairix:default
 

If I open the .cur group, however, I only ever get one message in it
(although the message looks like to has come from the search).


Does anyone have any experience with nnmairix? Any pointers what I might
be doing wrong?

Phil



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: nnmairix
  2014-03-10 14:05 nnmairix Phillip Lord
@ 2014-03-12  1:08 ` Michael Heerdegen
  2014-03-17 16:06   ` nnmairix Phillip Lord
  2014-03-12  6:57 ` nnmairix Glyn Millington
  1 sibling, 1 reply; 13+ messages in thread
From: Michael Heerdegen @ 2014-03-12  1:08 UTC (permalink / raw
  To: help-gnu-emacs

phillip.lord@newcastle.ac.uk (Phillip Lord) writes:

> Does anyone have any experience with nnmairix? Any pointers what I might
> be doing wrong?

I'm running it, but getting it there was quite hard.

There was some explanation of the process in the Gnus manual, I think,
which you should follow.

Especially, it was necessary to define a suitable ~/.mairixrc.  This is
mine:

base=~/Mail/archive
mfolder=~/mairix
mh=...
mformat=mh
omit=zz_mairix-*
database=~/.mairixdatabase

I think the "mformat" specification was important.

Second, it was necessary to setup a mairix server in the Gnus server
buffer, and to subscribe the right groups from it.

Sorry that I can't help more.


Michael.




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: nnmairix
  2014-03-10 14:05 nnmairix Phillip Lord
  2014-03-12  1:08 ` nnmairix Michael Heerdegen
@ 2014-03-12  6:57 ` Glyn Millington
  2014-03-12  8:00   ` nnmairix Michael Heerdegen
  2014-03-13 16:46   ` nnmairix Phillip Lord
  1 sibling, 2 replies; 13+ messages in thread
From: Glyn Millington @ 2014-03-12  6:57 UTC (permalink / raw
  To: help-gnu-emacs

phillip.lord@newcastle.ac.uk (Phillip Lord) writes:

> I've been trying nnmairix out recently because it looked like it might
> be a nice search tool.
>
> It seems to be working -- after searching I get a directory like so...
>
> Mail/zz_mairix-default-1/cur
>
> which contains symlinks. I have these groups
>
>
>   0: nnml:zz_mairix-default-1 0:*nnml:zz_mairix-default-1.cur
> 0:*nnmairix+mairix:default
>  
>
> If I open the .cur group, however, I only ever get one message in it
> (although the message looks like to has come from the search).
>
>
> Does anyone have any experience with nnmairix? Any pointers what I
> might be doing wrong?


Can you show us .......


1. What you have in your .gnus file relating to mairix

2. Your ~/.mairixrc file ?

3. In the server buffer (hit ^ while in the group buffer) is nnmairix
mentioned?



atb




Glyn




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: nnmairix
  2014-03-12  6:57 ` nnmairix Glyn Millington
@ 2014-03-12  8:00   ` Michael Heerdegen
  2014-03-12 23:02     ` nnmairix David Engster
  2014-03-13 16:52     ` nnmairix Phillip Lord
  2014-03-13 16:46   ` nnmairix Phillip Lord
  1 sibling, 2 replies; 13+ messages in thread
From: Michael Heerdegen @ 2014-03-12  8:00 UTC (permalink / raw
  To: help-gnu-emacs

Hi again,

let me prepend:

- I store my mails in MH format.  Dunno how setup may be different for
  mbox.

- I'm the opposite of a Gnus expert

- It's long ago that I configured this, but following

   (info "(gnus) nnmairix")

 was, at the end, sufficient


> Can you show us .......
>
>
> 1. What you have in your .gnus file relating to mairix

Only quite trivial stuff:

- (require 'nnmairix)

- an entry

    (nnml "mairix")

  in `gnus-secondary-select-methods' (this belongs to the server for
  reading the matches as a group, see below)

- (add-hook
   'gnus-group-mode-hook
   (lambda ()
     (define-key gnus-group-mode-map [?s] #'nnmairix-search)))

> 2. Your ~/.mairixrc file ?

That's really all:

base=~/Mail/archive
mfolder=~/mairix
mh=...
mformat=mh
omit=zz_mairix-*
database=~/.mairixdatabase


> 3. In the server buffer (hit ^ while in the group buffer) is nnmairix
> mentioned?

Yes.  Actually, I think I had created two new servers (by hand).  The
first looks like

    {nnmairix:mairix}

that's for being able to use nnmairix as mairix backend for Gnus.  With
this you can't yet read the results from Gnus.  You must set up an nnml
server:

    {nnml:mairix}

that knows were to find the mail folder that mairix populates with
the matching messages.  Then this folder is available in the *Group*
buffer, or at least subscribable.

Don't give up, although it's a bit hairy, it's worth the trouble.  The
Info pages are quite helpful.


Good luck,

Michael.

 




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: nnmairix
  2014-03-12  8:00   ` nnmairix Michael Heerdegen
@ 2014-03-12 23:02     ` David Engster
  2014-03-13  6:17       ` nnmairix Michael Heerdegen
  2014-03-13 16:52     ` nnmairix Phillip Lord
  1 sibling, 1 reply; 13+ messages in thread
From: David Engster @ 2014-03-12 23:02 UTC (permalink / raw
  To: help-gnu-emacs

Michael Heerdegen writes:
> - an entry
>
>     (nnml "mairix")
>
>   in `gnus-secondary-select-methods' (this belongs to the server for
>   reading the matches as a group, see below)

As mentioned in the docs, if you set up an extra server for nnmairix
(which isn't necessary, by some prefer it), please *always* set
'nnml-get-new-mail' to 'nil':

      (nnml "mairix" (nnml-get-new-mail nil))

Otherwise, the server might receive mail, and it will be lost when the
mairix search results are updated.

-David




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: nnmairix
  2014-03-12 23:02     ` nnmairix David Engster
@ 2014-03-13  6:17       ` Michael Heerdegen
  0 siblings, 0 replies; 13+ messages in thread
From: Michael Heerdegen @ 2014-03-13  6:17 UTC (permalink / raw
  To: help-gnu-emacs

David Engster <deng@randomsample.de> writes:

> >     (nnml "mairix")
> >
> >   in `gnus-secondary-select-methods' (this belongs to the server for
> >   reading the matches as a group, see below)
>
> As mentioned in the docs, if you set up an extra server for nnmairix
> (which isn't necessary, by some prefer it), please *always* set
> 'nnml-get-new-mail' to 'nil':
>
>       (nnml "mairix" (nnml-get-new-mail nil))
>
> Otherwise, the server might receive mail, and it will be lost when the
> mairix search results are updated.

Thanks for mentioning this.  Actually I have it in the server
definition (i.e., not in the select method):

(nnml "mairix"
      (nnml-directory "~/mairix")
      (nnml-active-file "~/mairix/active")
      (nnml-newsgroups-file "~/mairix/newsgroups")
      (nnml-get-new-mail nil))

That seems to work ok.

Michael.




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: nnmairix
  2014-03-12  6:57 ` nnmairix Glyn Millington
  2014-03-12  8:00   ` nnmairix Michael Heerdegen
@ 2014-03-13 16:46   ` Phillip Lord
  1 sibling, 0 replies; 13+ messages in thread
From: Phillip Lord @ 2014-03-13 16:46 UTC (permalink / raw
  To: glyn.millington; +Cc: help-gnu-emacs

Glyn Millington <glyn.millington@gmail.com> writes:
>>
>>
>> Does anyone have any experience with nnmairix? Any pointers what I
>> might be doing wrong?
>
>
> Can you show us .......
>
>
> 1. What you have in your .gnus file relating to mairix

Relatively little, which is probably the problem!

I added this otherwise none of the keybindings the info manual talk
about work.

;; mairix -- my latest attempt to get search working
(add-hook 'gnus-group-mode-hook 'nnmairix-group-mode-hook)
(add-hook 'gnus-summary-mode-hook 'nnmairix-summary-mode-hook)



>
> 2. Your ~/.mairixrc file ?

base=~/
mh=Mail/*...
omit=zz_mairix-*
database=~/.mairixdatabase


> 3. In the server buffer (hit ^ while in the group buffer) is nnmairix
> mentioned?


     {nnfolder:archive} (opened)
     {nnmairix:mairix} (opened)
     {nndraft:} (opened)
     {nnml:} (opened)



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: nnmairix
  2014-03-12  8:00   ` nnmairix Michael Heerdegen
  2014-03-12 23:02     ` nnmairix David Engster
@ 2014-03-13 16:52     ` Phillip Lord
  1 sibling, 0 replies; 13+ messages in thread
From: Phillip Lord @ 2014-03-13 16:52 UTC (permalink / raw
  To: Michael Heerdegen; +Cc: help-gnu-emacs

Michael Heerdegen <michael_heerdegen@web.de> writes:
> Only quite trivial stuff:
>
> - (require 'nnmairix)
>
> - an entry
>
>     (nnml "mairix")
>
>   in `gnus-secondary-select-methods' (this belongs to the server for
>   reading the matches as a group, see below)

This could be my problem. Currently I have my select methods configured
like this...

(setq gnus-select-method '(nnnil ""))
(setq gnus-secondary-select-methods
            '((nnml "")))

If I remember I ended up with this configuration when I finally switched
off nntp and went totally to email.

Phil



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: nnmairix
  2014-03-12  1:08 ` nnmairix Michael Heerdegen
@ 2014-03-17 16:06   ` Phillip Lord
  2014-03-17 16:35     ` nnmairix Michael Heerdegen
  0 siblings, 1 reply; 13+ messages in thread
From: Phillip Lord @ 2014-03-17 16:06 UTC (permalink / raw
  To: Michael Heerdegen; +Cc: help-gnu-emacs



Michael Heerdegen <michael_heerdegen@web.de> writes:

> phillip.lord@newcastle.ac.uk (Phillip Lord) writes:
> I think the "mformat" specification was important.


Yes, you were right -- I had missed the mformat. The "cur", "next" and
that sort of stuff was the wrong mail box format. Once I got mairix
producing nnml all was good.

In the end I have...


base=~/
mh=Mail/*...
mformat=mh
omit=Mail/zz_mairix-*
database=~/.mairixdatabase


and in my .emacs...

;; mairix -- my latest attempt to get search working
(add-hook 'gnus-group-mode-hook 'nnmairix-group-mode-hook)
(add-hook 'gnus-summary-mode-hook 'nnmairix-summary-mode-hook)

Thanks for the help!

Phil



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: nnmairix
  2014-03-17 16:06   ` nnmairix Phillip Lord
@ 2014-03-17 16:35     ` Michael Heerdegen
  2014-03-17 16:58       ` nnmairix Phillip Lord
  0 siblings, 1 reply; 13+ messages in thread
From: Michael Heerdegen @ 2014-03-17 16:35 UTC (permalink / raw
  To: Phillip Lord; +Cc: help-gnu-emacs

phillip.lord@newcastle.ac.uk (Phillip Lord) writes:

> Once I got mairix producing nnml all was good.

Great to hear!

> (add-hook 'gnus-group-mode-hook 'nnmairix-group-mode-hook)
> (add-hook 'gnus-summary-mode-hook 'nnmairix-summary-mode-hook)

I'm curious why you need this - because this is already done in
nnmairix.el.  Or do I miss something?

Michael.



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: nnmairix
  2014-03-17 16:35     ` nnmairix Michael Heerdegen
@ 2014-03-17 16:58       ` Phillip Lord
  2014-03-18  5:39         ` nnmairix Sivaram Neelakantan
  0 siblings, 1 reply; 13+ messages in thread
From: Phillip Lord @ 2014-03-17 16:58 UTC (permalink / raw
  To: Michael Heerdegen; +Cc: help-gnu-emacs


Michael Heerdegen <michael_heerdegen@web.de> writes:
> phillip.lord@newcastle.ac.uk (Phillip Lord) writes:
>
>> Once I got mairix producing nnml all was good.
>
> Great to hear!
>
>> (add-hook 'gnus-group-mode-hook 'nnmairix-group-mode-hook)
>> (add-hook 'gnus-summary-mode-hook 'nnmairix-summary-mode-hook)
>
> I'm curious why you need this - because this is already done in
> nnmairix.el.  Or do I miss something?


Yeah, I know, and I don't know the answer. By default the bindings in
nnmairix just didn't get loaded. Probably I could replace the whole
thing with (require 'nnmairix)

Phil



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: nnmairix
  2014-03-17 16:58       ` nnmairix Phillip Lord
@ 2014-03-18  5:39         ` Sivaram Neelakantan
  2014-03-19 10:10           ` nnmairix Phillip Lord
  0 siblings, 1 reply; 13+ messages in thread
From: Sivaram Neelakantan @ 2014-03-18  5:39 UTC (permalink / raw
  To: help-gnu-emacs

On Mon, Mar 17 2014,Phillip Lord wrote:


[snipped 14 lines]

> Yeah, I know, and I don't know the answer. By default the bindings in
> nnmairix just didn't get loaded. Probably I could replace the whole
> thing with (require 'nnmairix)
>
> Phil
>
>

Could you please share your final configuration entries, if you don't
mind?  I too use nnml backend and would like to use mairix to index my
mails. 

 sivaram
 -- 




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: nnmairix
  2014-03-18  5:39         ` nnmairix Sivaram Neelakantan
@ 2014-03-19 10:10           ` Phillip Lord
  0 siblings, 0 replies; 13+ messages in thread
From: Phillip Lord @ 2014-03-19 10:10 UTC (permalink / raw
  To: Sivaram Neelakantan; +Cc: help-gnu-emacs

Sivaram Neelakantan <nsivaram.net@gmail.com> writes:

> On Mon, Mar 17 2014,Phillip Lord wrote:
>
>
> [snipped 14 lines]
>
>> Yeah, I know, and I don't know the answer. By default the bindings in
>> nnmairix just didn't get loaded. Probably I could replace the whole
>> thing with (require 'nnmairix)
>>
>> Phil
>>
>>
>
> Could you please share your final configuration entries, if you don't
> mind?  I too use nnml backend and would like to use mairix to index my
> mails. 

Just this....


base=~/
mh=Mail/*...
mformat=mh
omit=Mail/zz_mairix-*
database=~/.mairixdatabase


and in my .emacs...

;; mairix -- my latest attempt to get search working
(add-hook 'gnus-group-mode-hook 'nnmairix-group-mode-hook)
(add-hook 'gnus-summary-mode-hook 'nnmairix-summary-mode-hook)

Good luck



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-03-19 10:10 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-10 14:05 nnmairix Phillip Lord
2014-03-12  1:08 ` nnmairix Michael Heerdegen
2014-03-17 16:06   ` nnmairix Phillip Lord
2014-03-17 16:35     ` nnmairix Michael Heerdegen
2014-03-17 16:58       ` nnmairix Phillip Lord
2014-03-18  5:39         ` nnmairix Sivaram Neelakantan
2014-03-19 10:10           ` nnmairix Phillip Lord
2014-03-12  6:57 ` nnmairix Glyn Millington
2014-03-12  8:00   ` nnmairix Michael Heerdegen
2014-03-12 23:02     ` nnmairix David Engster
2014-03-13  6:17       ` nnmairix Michael Heerdegen
2014-03-13 16:52     ` nnmairix Phillip Lord
2014-03-13 16:46   ` nnmairix Phillip Lord

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.