Gnus development mailing list
 help / color / mirror / Atom feed
* using nnmairix
@ 2020-04-04 13:44 Eric S Fraga
  2020-04-04 14:41 ` Eric Abrahamsen
  0 siblings, 1 reply; 11+ messages in thread
From: Eric S Fraga @ 2020-04-04 13:44 UTC (permalink / raw)
  To: ding

Hello all,

quick question: I have tried to use nnmairix for search.  Searching
works in that a group (zz-mairix-*) is created and populated with the
emails I would expect to see.  However, gnus doesn't automatically
either show that group (in my group buffer) or send me there like nnir
does.  What configuration/setting am I missing?

thank you.
-- 
Eric S Fraga via Emacs 28.0.50 & org 9.3.6 on Debian bullseye/sid



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

* Re: using nnmairix
  2020-04-04 13:44 using nnmairix Eric S Fraga
@ 2020-04-04 14:41 ` Eric Abrahamsen
  2020-04-04 14:51   ` Eric S Fraga
  0 siblings, 1 reply; 11+ messages in thread
From: Eric Abrahamsen @ 2020-04-04 14:41 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: ding

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> Hello all,
>
> quick question: I have tried to use nnmairix for search.  Searching
> works in that a group (zz-mairix-*) is created and populated with the
> emails I would expect to see.  However, gnus doesn't automatically
> either show that group (in my group buffer) or send me there like nnir
> does.  What configuration/setting am I missing?

Are you creating the group with the `nnmairix-search' command? I'm
looking at that function, and it ends with a call to
`gnus-group-read-group', so it should be dumping you into the group
directly...


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

* Re: using nnmairix
  2020-04-04 14:41 ` Eric Abrahamsen
@ 2020-04-04 14:51   ` Eric S Fraga
  2020-04-04 15:24     ` Eric S Fraga
  0 siblings, 1 reply; 11+ messages in thread
From: Eric S Fraga @ 2020-04-04 14:51 UTC (permalink / raw)
  To: ding

On Saturday,  4 Apr 2020 at 07:41, Eric Abrahamsen wrote:
> Are you creating the group with the `nnmairix-search' command? I'm
> looking at that function, and it ends with a call to
> `gnus-group-read-group', so it should be dumping you into the group
> directly...

Yes, using "G b s" in the group buffer which is bound to
nnmairix-search).  The messages buffer shows:

,----
| Deleting article .overview in zz_mairix-search-1...
| Deleting article 32375 in zz_mairix-search-1...
| Deleting article 32376 in zz_mairix-search-1...
| Deleting article 32377 in zz_mairix-search-1...
| Deleting article 32378 in zz_mairix-search-1...
| Deleting article 32379 in zz_mairix-search-1...
| Deleting article 32380 in zz_mairix-search-1...
| Creating mail directory /home/ucecesf/Mail/zz_mairix-search-1/
| Reading incoming mail from file...
| Reading incoming mail from pop...
| Reading incoming mail from pop...
| nnml: Reading incoming mail (no new mail)...done
`----

so old search cleared and new group created but nothing shown in group
buffer (where I remain).  If I manually visit the mail directory, I see
the links to the emails that satisfy my search so mairix is working.

Do I maybe need to tell gnus to automatically subscribe to new groups?
gnus-auto-subscribed-groups is set to

,----[ C-h v gnus-auto-subscribed-groups RET ]
| gnus-auto-subscribed-groups is a variable defined in ‘gnus-start.el’.
| Its value is
| "^nnml\\|^nnfolder\\|^nnmbox\\|^nnmh\\|^nnbabyl\\|^nnmaildir\\|^nnimap"
`----

which includes nnml but should it include nnmairix?

(I'll try that in any case...)

thank you.
-- 
Eric S Fraga via Emacs 28.0.50 & org 9.3.6 on Debian bullseye/sid



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

* Re: using nnmairix
  2020-04-04 14:51   ` Eric S Fraga
@ 2020-04-04 15:24     ` Eric S Fraga
  2020-04-04 15:53       ` Eric Abrahamsen
  0 siblings, 1 reply; 11+ messages in thread
From: Eric S Fraga @ 2020-04-04 15:24 UTC (permalink / raw)
  To: ding

On Saturday,  4 Apr 2020 at 15:51, Eric S Fraga wrote:
> Do I maybe need to tell gnus to automatically subscribe to new groups?
> gnus-auto-subscribed-groups is set to
>
> ,----[ C-h v gnus-auto-subscribed-groups RET ]
> | gnus-auto-subscribed-groups is a variable defined in ‘gnus-start.el’.
> | Its value is
> | "^nnml\\|^nnfolder\\|^nnmbox\\|^nnmh\\|^nnbabyl\\|^nnmaildir\\|^nnimap"
> `----
>
> which includes nnml but should it include nnmairix?

I've added that but it seems to have only a little difference.

When I search, I do see my nnmairix group appear in my group buffer but
with "0" messages.  If I navigate to the line in the group buffer and
hit M-G, it updates the count correctly and I can then enter the group.

Rather clumsy... I'm obviously missing something.

I have searched the mailing list etc.  I have the nnmairix group in my
server buffer and I have this in my .gnus.el:

#+begin_src emacs-lisp
  (add-to-list 'gnus-secondary-select-methods
               (quote (nnml "search" (nnml-get-new-mail nil))))
#+end_src 

where "search" is the name of my mairix server.

-- 
Eric S Fraga via Emacs 28.0.50 & org 9.3.6 on Debian bullseye/sid



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

* Re: using nnmairix
  2020-04-04 15:24     ` Eric S Fraga
@ 2020-04-04 15:53       ` Eric Abrahamsen
  2020-04-06  8:40         ` Eric S Fraga
  0 siblings, 1 reply; 11+ messages in thread
From: Eric Abrahamsen @ 2020-04-04 15:53 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: ding

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> On Saturday,  4 Apr 2020 at 15:51, Eric S Fraga wrote:
>> Do I maybe need to tell gnus to automatically subscribe to new groups?
>> gnus-auto-subscribed-groups is set to
>>
>> ,----[ C-h v gnus-auto-subscribed-groups RET ]
>> | gnus-auto-subscribed-groups is a variable defined in ‘gnus-start.el’.
>> | Its value is
>> | "^nnml\\|^nnfolder\\|^nnmbox\\|^nnmh\\|^nnbabyl\\|^nnmaildir\\|^nnimap"
>> `----
>>
>> which includes nnml but should it include nnmairix?
>
> I've added that but it seems to have only a little difference.
>
> When I search, I do see my nnmairix group appear in my group buffer but
> with "0" messages.  If I navigate to the line in the group buffer and
> hit M-G, it updates the count correctly and I can then enter the group.
>
> Rather clumsy... I'm obviously missing something.
>
> I have searched the mailing list etc.  I have the nnmairix group in my
> server buffer and I have this in my .gnus.el:
>
> #+begin_src emacs-lisp
>   (add-to-list 'gnus-secondary-select-methods
>                (quote (nnml "search" (nnml-get-new-mail nil))))
> #+end_src 
>
> where "search" is the name of my mairix server.

Well I'm sort of guessing here, but the end of `nnmairix-search' first
checks the active value of the new search group, and if it's equal to
'(1 . 0), it doesn't enter the group. The fact that you have to M-g on
the group to get the correct message count seems to confirm that the
active count is not getting set correctly when the group is first
created. The correct active value should be getting set in
`nnmairix-update-and-clear-marks', which is called right before the
group would be opened. So I guess something is going wrong in there?
Maybe you can step through that function with edebug?

Eric


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

* Re: using nnmairix
  2020-04-04 15:53       ` Eric Abrahamsen
@ 2020-04-06  8:40         ` Eric S Fraga
  2020-04-06 15:32           ` Eric Abrahamsen
  2020-09-28 23:59           ` Angel de Vicente
  0 siblings, 2 replies; 11+ messages in thread
From: Eric S Fraga @ 2020-04-06  8:40 UTC (permalink / raw)
  To: Eric Abrahamsen; +Cc: ding

On Saturday,  4 Apr 2020 at 08:53, Eric Abrahamsen wrote:
> Maybe you can step through that function with edebug?

Okay, thank you.  Time to learn edebug!  I'll report back if/when I find
some time to play on this.

-- 
Eric S Fraga via Emacs 28.0.50 & org 9.3.6 on Debian bullseye/sid


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

* Re: using nnmairix
  2020-04-06  8:40         ` Eric S Fraga
@ 2020-04-06 15:32           ` Eric Abrahamsen
  2020-04-06 19:51             ` Eric S Fraga
  2020-09-28 23:59           ` Angel de Vicente
  1 sibling, 1 reply; 11+ messages in thread
From: Eric Abrahamsen @ 2020-04-06 15:32 UTC (permalink / raw)
  To: ding


On 04/06/20 09:40 AM, Eric S Fraga wrote:
> On Saturday,  4 Apr 2020 at 08:53, Eric Abrahamsen wrote:
>> Maybe you can step through that function with edebug?
>
> Okay, thank you.  Time to learn edebug!

It's a skill that will pay dividends! And open up new doors to wasting
time :)


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

* Re: using nnmairix
  2020-04-06 15:32           ` Eric Abrahamsen
@ 2020-04-06 19:51             ` Eric S Fraga
  0 siblings, 0 replies; 11+ messages in thread
From: Eric S Fraga @ 2020-04-06 19:51 UTC (permalink / raw)
  To: ding

On Monday,  6 Apr 2020 at 08:32, Eric Abrahamsen wrote:
> On 04/06/20 09:40 AM, Eric S Fraga wrote:
>> Okay, thank you.  Time to learn edebug!
>
> It's a skill that will pay dividends! And open up new doors to wasting
> time :)


Yes to the former; worried about the latter. ;-)

-- 
Eric S Fraga via Emacs 28.0.50 & org 9.3.6 on Debian bullseye/sid



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

* Re: using nnmairix
  2020-04-06  8:40         ` Eric S Fraga
  2020-04-06 15:32           ` Eric Abrahamsen
@ 2020-09-28 23:59           ` Angel de Vicente
  2020-09-30 13:00             ` Eric S Fraga
  2020-10-07 23:51             ` Eric Abrahamsen
  1 sibling, 2 replies; 11+ messages in thread
From: Angel de Vicente @ 2020-09-28 23:59 UTC (permalink / raw)
  To: ding

Hello,

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> On Saturday,  4 Apr 2020 at 08:53, Eric Abrahamsen wrote:
>> Maybe you can step through that function with edebug?
>
> Okay, thank you.  Time to learn edebug!  I'll report back if/when I find
> some time to play on this.

did you ever make this work? I was using mairix no problem for searching
until a few weeks ago. I recently changed my computer, and for some
reason I cannot get it to work anymore...

-- 
Ángel de Vicente
http://angel-de-vicente.blogspot.com/



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

* Re: using nnmairix
  2020-09-28 23:59           ` Angel de Vicente
@ 2020-09-30 13:00             ` Eric S Fraga
  2020-10-07 23:51             ` Eric Abrahamsen
  1 sibling, 0 replies; 11+ messages in thread
From: Eric S Fraga @ 2020-09-30 13:00 UTC (permalink / raw)
  To: ding

On Tuesday, 29 Sep 2020 at 00:59, Angel de Vicente wrote:
> did you ever make this work? I was using mairix no problem for searching
> until a few weeks ago. I recently changed my computer, and for some
> reason I cannot get it to work anymore...

No, sorry.  I gave up (life's too short and I got swamped by COVID-19
related work).  I switched to notmuch which works very well.

-- 
Eric S Fraga via Emacs 28.0.50 & org 9.4 on Debian bullseye/sid



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

* Re: using nnmairix
  2020-09-28 23:59           ` Angel de Vicente
  2020-09-30 13:00             ` Eric S Fraga
@ 2020-10-07 23:51             ` Eric Abrahamsen
  1 sibling, 0 replies; 11+ messages in thread
From: Eric Abrahamsen @ 2020-10-07 23:51 UTC (permalink / raw)
  To: ding

Angel de Vicente <angel.vicente.garrido@gmail.com> writes:

> Hello,
>
> Eric S Fraga <e.fraga@ucl.ac.uk> writes:
>
>> On Saturday,  4 Apr 2020 at 08:53, Eric Abrahamsen wrote:
>>> Maybe you can step through that function with edebug?
>>
>> Okay, thank you.  Time to learn edebug!  I'll report back if/when I find
>> some time to play on this.
>
> did you ever make this work? I was using mairix no problem for searching
> until a few weeks ago. I recently changed my computer, and for some
> reason I cannot get it to work anymore...

One thing to note is that, in Emacs master, there's no real need for
nnmairix anymore. AFAIK its main selling point was persistent search
groups, and nnselect can do that now, using mairix as a search backend.
It'll probably be more reliable, too.



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

end of thread, other threads:[~2020-10-07 23:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-04 13:44 using nnmairix Eric S Fraga
2020-04-04 14:41 ` Eric Abrahamsen
2020-04-04 14:51   ` Eric S Fraga
2020-04-04 15:24     ` Eric S Fraga
2020-04-04 15:53       ` Eric Abrahamsen
2020-04-06  8:40         ` Eric S Fraga
2020-04-06 15:32           ` Eric Abrahamsen
2020-04-06 19:51             ` Eric S Fraga
2020-09-28 23:59           ` Angel de Vicente
2020-09-30 13:00             ` Eric S Fraga
2020-10-07 23:51             ` Eric Abrahamsen

Gnus development mailing list

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/ding

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 ding ding/ http://inbox.vuxu.org/ding \
		ding@inbox.vuxu.org
	public-inbox-index ding

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.emacs.gnus.general


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git