Searching IMAP in Gnus

July 21st, 2005 matthias

I spent a good few hours trying to convince Gnus to search my IMAP folders, under XEmacs. Googling turned up quite a lot of stuff, but most of it is wrong/irrelevant. In the end all I needed to do was:

  • stick (require 'nnir) in my XEmacs init file
  • add (nnir-search-engine imap) to my .gnus file, like so:

    (setq gnus-secondary-select-methods
          '((nnimap "imap.lshift.net"
                    (nnimap-stream ssl)
                    (nnimap-authinfo-file "~/.authinfo")
                    (nnimap-nov-is-evil t)
                    (nnir-search-engine imap))))
    
  • re-byte-compile the nnir.el file in the XEmacs package directory for gnus - on my system that is /usr/share/xemacs21/xemacs-packages/lisp/gnus. For some reason the nnir.elc that comes with the XEmacs gnus package is broken, so unless it gets produced afresh the use of nnir results in mysterious errors.

After that, marking groups in the group buffer and hitting G G prompts for a search string and proceeds to carry out the search. Nice.

Entry Filed under: Technology, Tools

2 Comments Add your own

  • 1. tonyg  |  July 21st, 2005 at 12:17 pm

    Wow, that really does sound easy. What an age we live in.

  • 2. matthew  |  July 22nd, 2005 at 10:07 am

    I think there’s a difference between the age we live in and the age which emacs lives in…

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed

Calendar

July 2005
M T W T F S S
    Aug »
 123
45678910
11121314151617
18192021222324
25262728293031

Most Recent Posts