Sven Bretfeld | 1 Oct 2009 21:45
Picon
Picon

Searching in IMAP groups doesn't work

Hi

In the group-buffer a query with `GG' returns "Must specify Groups for
IMAP searching". In a summary-buffer `GG' asks for a message-ID. 

Nothing is ever found. How can I specify groups? 

I'm using Emacs 23 and Gnus v5.13. 

This is in my .gnus.el:

(require 'nnir)
(setq nnir-search-engine 'imap)

Thanks for help

Sven

Vegard Vesterheim | 2 Oct 2009 09:17
X-Face
Picon
Picon

Re: Searching in IMAP groups doesn't work

On 1 Oct 2009 21:45:43 +0200 "Sven Bretfeld" <sven.bretfeld <at> gmx.ch> wrote:

> Hi
>
> In the group-buffer a query with `GG' returns "Must specify Groups for
> IMAP searching". In a summary-buffer `GG' asks for a message-ID. 
>
> Nothing is ever found. How can I specify groups? 

You must mark groups first. 

(gnus-group-mark-group, gnus-topic-mark-topic) 

 - Vegard V -

Tassilo Horn | 2 Oct 2009 09:32
Picon
Gravatar

Re: Searching in IMAP groups doesn't work

Vegard Vesterheim <vegard.vesterheim <at> uninett.no> writes:

Hi!

>> In the group-buffer a query with `GG' returns "Must specify Groups
>> for IMAP searching". In a summary-buffer `GG' asks for a message-ID.
>>
>> Nothing is ever found. How can I specify groups? 
>
> You must mark groups first.
>
> (gnus-group-mark-group, gnus-topic-mark-topic) 

Normally, if there are no marks, it should search the group point is
on.  So maybe the OP was on a topic line when he tried it...

Bye,
Tassilo

Sven Bretfeld | 2 Oct 2009 11:11
Picon
Picon

Re: Searching in IMAP groups doesn't work

Hi

Vegard Vesterheim <vegard.vesterheim <at> uninett.no> writes:

> On 1 Oct 2009 21:45:43 +0200 "Sven Bretfeld" <sven.bretfeld <at> gmx.ch> wrote:
>
>> Hi
>>
>> In the group-buffer a query with `GG' returns "Must specify Groups for
>> IMAP searching". In a summary-buffer `GG' asks for a message-ID. 
>>
>> Nothing is ever found. How can I specify groups? 
>
> You must mark groups first. 
>
> (gnus-group-mark-group, gnus-topic-mark-topic) 

That brings me a step further, thanks. But it's still not working. I
marked two or three groups and searched for some common strings that are
included in more than one Mail in those groups. But the result is
always:

`Couldn't request groups. Search produced empty results.'

This message turns up immediately. Gnus cannot have searched through
anything. Do I first have to prepare an index as in a mairix query or
something? I didn't read about that. And I have no idea how to do that
with messages stored on a remote IMAP server.

By the way, Tassilo, querying a group under the point without marking it
(Continue reading)

Vegard Vesterheim | 2 Oct 2009 12:08
X-Face
Picon
Picon

Re: Searching in IMAP groups doesn't work

On 2 Oct 2009 11:11:00 +0200 "Sven Bretfeld" <sven.bretfeld <at> gmx.ch> wrote:

> Vegard Vesterheim <vegard.vesterheim <at> uninett.no> writes:

>> You must mark groups first. 
>>
>> (gnus-group-mark-group, gnus-topic-mark-topic) 
>
> That brings me a step further, thanks. But it's still not working. I
> marked two or three groups and searched for some common strings that are
> included in more than one Mail in those groups. But the result is
> always:
>
> `Couldn't request groups. Search produced empty results.'
> This message turns up immediately. Gnus cannot have searched through
> anything. Do I first have to prepare an index as in a mairix query or
> something? 

I assume that you are using the 'imap' nnir engine (C-h v
nnir-search-engine).  You do not need to prepare an index, you are
doing a native IMAP SEARCH on your IMAP server.

If you are using IMAP search, have a look in the buffer named
'*imap-log*', you may find some clues there.

 - Vegard V -

Tassilo Horn | 2 Oct 2009 12:38
Picon
Gravatar

Re: Searching in IMAP groups doesn't work

"Sven Bretfeld" <sven.bretfeld <at> gmx.ch> writes:

Hi Sven,

> That brings me a step further, thanks. But it's still not working. I
> marked two or three groups and searched for some common strings that
> are included in more than one Mail in those groups. But the result is
> always:
>
> `Couldn't request groups. Search produced empty results.'
>
> This message turns up immediately. Gnus cannot have searched through
> anything.  Do I first have to prepare an index as in a mairix query or
> something?

No, the nnir imap search just delegates the search request to your imap
server, and that should do the actual searching.  If the search always
produces empty results, it might also be the server's fault.

Try setting

(setq imap-debug   t
      imap-log     t
      nnimap-debug t)

and have a look at the relevant buffers (*<varname>*).  Maybe there's
something relevant.

You might also want to try searching you imap boxes with another email
client.
(Continue reading)

Sven Bretfeld | 2 Oct 2009 13:11
Picon
Picon

Re: Searching in IMAP groups doesn't work

Hi all

Tassilo Horn <tassilo <at> member.fsf.org> writes:

> Try setting
>
> (setq imap-debug   t
>       imap-log     t
>       nnimap-debug t)
>
> and have a look at the relevant buffers (*<varname>*).  Maybe there's
> something relevant.

imap-log says nothing. The imap-debug buffer protocols the following,
when I start the query. It doesn't tell me anything without seeing a
"positive" example. But `imap-opened: nil', `port=nil' etc. doesn't
sound good. I will try to search with Mutt. Maybe it's the server's
fault.

======================================================================
1 -> imap-opened: buffer=" *nnimap* "
1 <- imap-opened: nil
======================================================================
1 -> imap-open: server="" port=nil stream=nil auth=nil buffer=" *nnimap* "
| 2 -> imap-opened: buffer=" *nnimap* "
| 2 <- imap-opened: nil
| 2 -> imap-open-1: buffer=" *nnimap* "
| | 3 -> imap-network-open: name="imap" buffer=" *nnimap* " server="" port=nil
| 2 <- imap-open-1: nil
1 <- imap-open: nil
(Continue reading)

Tassilo Horn | 2 Oct 2009 13:54
Picon
Gravatar

Re: Searching in IMAP groups doesn't work

"Sven Bretfeld" <sven.bretfeld <at> gmx.ch> writes:

Hi Sven,

> imap-log says nothing. The imap-debug buffer protocols the following,
> when I start the query. It doesn't tell me anything without seeing a
> "positive" example. But `imap-opened: nil', `port=nil' etc. doesn't
> sound good. I will try to search with Mutt. Maybe it's the server's
> fault.
>
> [imap debug output stripped]

That's the output I get when searching.  I stripped thousands of line,
but that looks most relevant.

--8<---------------cut here---------------start------------->8---
1 -> imap-search: predicate="TEXT \"Daniel\" TEXT \"Janke\"" buffer=" *nnimap* Uni"
| 2 -> imap-mailbox-put: propname=search value=dummy mailbox=nil buffer=nil
| 2 <- imap-mailbox-put: t
| 2 -> imap-send-command-wait: command="UID SEARCH TEXT \"Daniel\" TEXT \"Janke\"" buffer=nil
| | 3 -> imap-send-command: command="UID SEARCH TEXT \"Daniel\" TEXT \"Janke\"" buffer=nil
| | | 4 -> imap-send-command-1: cmdstr="1339 UID SEARCH TEXT \"Daniel\" TEXT \"Janke\""
| | | 4 <- imap-send-command-1: nil
| | 3 <- imap-send-command: 1339
| | 3 -> imap-wait-for-tag: tag=1339 buffer=nil
| | | 4 -> imap-arrival-filter: proc=#<process imap> string="* SEARCH 223 230 365 366 608 612 614 646 674 765
767 785 846 847 857 858 1132 1133 1248 1288 1296 2489 2492 2495 2532 2536 2599 2610 2611 2616 2631 2633 2634
2642 2669 2945 2979 3062 3088 3281.
1339 OK Search completed (0.021 secs)..
"
(Continue reading)

Sven Bretfeld | 2 Oct 2009 14:02
Picon
Picon

Re: Searching in IMAP groups doesn't work

Hi Tassilo

Tassilo Horn <tassilo <at> member.fsf.org> writes:

> You might also want to try searching you imap boxes with another email
> client.

Kmail is doing fine. So, the server seems not to be the problem.

>> By the way, Tassilo, querying a group under the point without marking
>> it doesn't work for me. That produces the error of my initial posting.
>
> That's strange.  What Emacs/Gnus version do you use?  Form me it works
> perfectly with Emacs 23 from CVS and the Gnus version (including nnir)
> that's bundled with it.
>
> Maybe you use an outdated nnir.el?  Try M-x list-load-path-shadows RET
> to check that.

It's the nnir of the gnus-bonus package in Ubuntu (Jaunty):

,----M-x list-load-path-shadows
| ...
| /usr/share/emacs-snapshot/site-lisp/gnus-bonus-el/nnir hides
| /usr/share/emacs/23.0.91/lisp/gnus/nnir
| ...
`----

`hides' probably means `overrides'. Then it might be an older version
that's loaded here, while the probably newer one from Emacs-snapshot is
(Continue reading)

Sven Bretfeld | 2 Oct 2009 14:15
Picon
Picon

Re: Searching in IMAP groups doesn't work [Solved!]

"Sven Bretfeld" <sven.bretfeld <at> gmx.ch> writes:

>> Maybe you use an outdated nnir.el?  Try M-x list-load-path-shadows RET
>> to check that.
>
> It's the nnir of the gnus-bonus package in Ubuntu (Jaunty):
>
> ,----M-x list-load-path-shadows
> | ...
> | /usr/share/emacs-snapshot/site-lisp/gnus-bonus-el/nnir hides
> | /usr/share/emacs/23.0.91/lisp/gnus/nnir
> | ...
> `----
>
> `hides' probably means `overrides'. Then it might be an older version
> that's loaded here, while the probably newer one from Emacs-snapshot is
> "hidden". 

That's what it was all about. After inserting 

(load-library "/usr/share/emacs/23.0.91/lisp/gnus/nnir.elc")

to ~/.gnus.el everything works fine. Damn double packages!

Thank you very much, you both helped me a lot. I would never have found
the mistake alone.

Have a nice day,

Sven
(Continue reading)


Gmane