Gnus development mailing list
 help / color / mirror / Atom feed
* Searching in IMAP groups doesn't work
@ 2009-10-01 19:45 Sven Bretfeld
  2009-10-02  7:17 ` Vegard Vesterheim
  0 siblings, 1 reply; 12+ messages in thread
From: Sven Bretfeld @ 2009-10-01 19:45 UTC (permalink / raw)
  To: Gnus

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



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

* Re: Searching in IMAP groups doesn't work
  2009-10-01 19:45 Searching in IMAP groups doesn't work Sven Bretfeld
@ 2009-10-02  7:17 ` Vegard Vesterheim
  2009-10-02  7:32   ` Tassilo Horn
  2009-10-02  9:11   ` Sven Bretfeld
  0 siblings, 2 replies; 12+ messages in thread
From: Vegard Vesterheim @ 2009-10-02  7:17 UTC (permalink / raw)
  To: Sven Bretfeld; +Cc: Gnus

On 1 Oct 2009 21:45:43 +0200 "Sven Bretfeld" <sven.bretfeld@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 -



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

* Re: Searching in IMAP groups doesn't work
  2009-10-02  7:17 ` Vegard Vesterheim
@ 2009-10-02  7:32   ` Tassilo Horn
  2009-10-02  9:11   ` Sven Bretfeld
  1 sibling, 0 replies; 12+ messages in thread
From: Tassilo Horn @ 2009-10-02  7:32 UTC (permalink / raw)
  To: Vegard Vesterheim; +Cc: Sven Bretfeld, Gnus

Vegard Vesterheim <vegard.vesterheim@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



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

* Re: Searching in IMAP groups doesn't work
  2009-10-02  7:17 ` Vegard Vesterheim
  2009-10-02  7:32   ` Tassilo Horn
@ 2009-10-02  9:11   ` Sven Bretfeld
  2009-10-02 10:08     ` Vegard Vesterheim
  2009-10-02 10:38     ` Tassilo Horn
  1 sibling, 2 replies; 12+ messages in thread
From: Sven Bretfeld @ 2009-10-02  9:11 UTC (permalink / raw)
  To: Gnus

Hi

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

> On 1 Oct 2009 21:45:43 +0200 "Sven Bretfeld" <sven.bretfeld@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
doesn't work for me. That produces the error of my initial posting.

Greetings

Sven




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

* Re: Searching in IMAP groups doesn't work
  2009-10-02  9:11   ` Sven Bretfeld
@ 2009-10-02 10:08     ` Vegard Vesterheim
  2009-10-02 10:38     ` Tassilo Horn
  1 sibling, 0 replies; 12+ messages in thread
From: Vegard Vesterheim @ 2009-10-02 10:08 UTC (permalink / raw)
  To: Sven Bretfeld; +Cc: Gnus

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

> Vegard Vesterheim <vegard.vesterheim@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 -



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

* Re: Searching in IMAP groups doesn't work
  2009-10-02  9:11   ` Sven Bretfeld
  2009-10-02 10:08     ` Vegard Vesterheim
@ 2009-10-02 10:38     ` Tassilo Horn
  2009-10-02 11:11       ` Sven Bretfeld
  2009-10-02 12:02       ` Sven Bretfeld
  1 sibling, 2 replies; 12+ messages in thread
From: Tassilo Horn @ 2009-10-02 10:38 UTC (permalink / raw)
  To: Sven Bretfeld; +Cc: Gnus

"Sven Bretfeld" <sven.bretfeld@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.

> 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.

Bye,
Tassilo



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

* Re: Searching in IMAP groups doesn't work
  2009-10-02 10:38     ` Tassilo Horn
@ 2009-10-02 11:11       ` Sven Bretfeld
  2009-10-02 11:54         ` Tassilo Horn
  2009-10-02 12:02       ` Sven Bretfeld
  1 sibling, 1 reply; 12+ messages in thread
From: Sven Bretfeld @ 2009-10-02 11:11 UTC (permalink / raw)
  To: Gnus

Hi all

Tassilo Horn <tassilo@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
======================================================================
1 -> imap-opened: buffer=nil
1 <- imap-opened: nil
======================================================================
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

Greetings,

Sven




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

* Re: Searching in IMAP groups doesn't work
  2009-10-02 11:11       ` Sven Bretfeld
@ 2009-10-02 11:54         ` Tassilo Horn
  0 siblings, 0 replies; 12+ messages in thread
From: Tassilo Horn @ 2009-10-02 11:54 UTC (permalink / raw)
  To: Sven Bretfeld; +Cc: Gnus

"Sven Bretfeld" <sven.bretfeld@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)..
"
| | | | 5 -> imap-find-next-line: 
| | | | 5 <- imap-find-next-line: 195
| | | | 5 -> imap-parse-response: 
| | | | | 6 -> imap-mailbox-put: propname=search value=(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) mailbox=nil buffer=nil
| | | | | 6 <- imap-mailbox-put: t
| | | | 5 <- imap-parse-response: t
| | | | 5 -> imap-find-next-line: 
| | | | 5 <- imap-find-next-line: 41
| | | | 5 -> imap-parse-response: 
| | | | | 6 -> imap-parse-resp-text: 
| | | | | | 7 -> imap-parse-resp-text-code: 
| | | | | | 7 <- imap-parse-resp-text-code: nil
| | | | | 6 <- imap-parse-resp-text: nil
| | | | 5 <- imap-parse-response: nil
| | | | 5 -> imap-find-next-line: 
| | | | 5 <- imap-find-next-line: nil
| | | 4 <- imap-arrival-filter: nil
| | 3 <- imap-wait-for-tag: OK
| 2 <- imap-send-command-wait: OK
1 <- imap-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)
--8<---------------cut here---------------end--------------->8---

Bye,
Tassilo



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

* Re: Searching in IMAP groups doesn't work
  2009-10-02 10:38     ` Tassilo Horn
  2009-10-02 11:11       ` Sven Bretfeld
@ 2009-10-02 12:02       ` Sven Bretfeld
  2009-10-02 12:15         ` Searching in IMAP groups doesn't work [Solved!] Sven Bretfeld
  1 sibling, 1 reply; 12+ messages in thread
From: Sven Bretfeld @ 2009-10-02 12:02 UTC (permalink / raw)
  To: Gnus

Hi Tassilo

Tassilo Horn <tassilo@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
"hidden". 

Greetings,

Sven



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

* Re: Searching in IMAP groups doesn't work [Solved!]
  2009-10-02 12:02       ` Sven Bretfeld
@ 2009-10-02 12:15         ` Sven Bretfeld
  2009-10-02 12:57           ` Tassilo Horn
  2009-10-02 14:39           ` gnus-bonus-el harmful (was: Searching in IMAP groups doesn't work [Solved!]) Reiner Steib
  0 siblings, 2 replies; 12+ messages in thread
From: Sven Bretfeld @ 2009-10-02 12:15 UTC (permalink / raw)
  To: Gnus

"Sven Bretfeld" <sven.bretfeld@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



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

* Re: Searching in IMAP groups doesn't work [Solved!]
  2009-10-02 12:15         ` Searching in IMAP groups doesn't work [Solved!] Sven Bretfeld
@ 2009-10-02 12:57           ` Tassilo Horn
  2009-10-02 14:39           ` gnus-bonus-el harmful (was: Searching in IMAP groups doesn't work [Solved!]) Reiner Steib
  1 sibling, 0 replies; 12+ messages in thread
From: Tassilo Horn @ 2009-10-02 12:57 UTC (permalink / raw)
  To: Sven Bretfeld; +Cc: Gnus

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

Hi Sven!

> 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.

I was bitten by some load-path shadowing problem some time ago, too.
Since then, that's always the first thing I check. ;-)

Bye,
Tassilo



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

* gnus-bonus-el harmful (was: Searching in IMAP groups doesn't work [Solved!])
  2009-10-02 12:15         ` Searching in IMAP groups doesn't work [Solved!] Sven Bretfeld
  2009-10-02 12:57           ` Tassilo Horn
@ 2009-10-02 14:39           ` Reiner Steib
  1 sibling, 0 replies; 12+ messages in thread
From: Reiner Steib @ 2009-10-02 14:39 UTC (permalink / raw)
  To: Sven Bretfeld; +Cc: ding

On Fri, Oct 02 2009, Sven Bretfeld wrote:

> "Sven Bretfeld" <sven.bretfeld@gmx.ch> writes:
>> ,----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!

AFAICS, most of the "bonus" stuff from gnus-bonus-el is obsolete.

,----[ http://packages.ubuntu.com/de/hardy/news/gnus-bonus-el ]
| This package contains:
| 
|  gnus-eyecandy - enhance the group buffer by adding icons.
|  gnus-filterhist - add a buffer which display the message filtering
|  gnus-junk - semi-automatic replies to junk e-mails;
|  gnus-pers - an alternative to gnus-posting-styles.

Dunno about these.

|  message-x - customizable completion in message headers;

Integrated in Gnus for a long time (since Oort aka 5.10).

|  nnir - searchable mail backend;

Integrated in No Gnus.

|  nnnil - empty, read-only backend;

Integrated in Gnus for a long time.

|  nntodo - manage to-do items;

Dunno.

|  spam-stat - spam-detector based on statistics.
`----

Integrated in Gnus for a long time.

At least the gnus-bonus-el directory should be appended at the end of
the load-path.  Please report it as a bug against your distribution
(Debian, Ubuntu, ...).

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/



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

end of thread, other threads:[~2009-10-02 14:39 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-01 19:45 Searching in IMAP groups doesn't work Sven Bretfeld
2009-10-02  7:17 ` Vegard Vesterheim
2009-10-02  7:32   ` Tassilo Horn
2009-10-02  9:11   ` Sven Bretfeld
2009-10-02 10:08     ` Vegard Vesterheim
2009-10-02 10:38     ` Tassilo Horn
2009-10-02 11:11       ` Sven Bretfeld
2009-10-02 11:54         ` Tassilo Horn
2009-10-02 12:02       ` Sven Bretfeld
2009-10-02 12:15         ` Searching in IMAP groups doesn't work [Solved!] Sven Bretfeld
2009-10-02 12:57           ` Tassilo Horn
2009-10-02 14:39           ` gnus-bonus-el harmful (was: Searching in IMAP groups doesn't work [Solved!]) Reiner Steib

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).