[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: reading email via imap, make one virtual group consisting of all UNR

From: Eric Abrahamsen
Subject: Re: reading email via imap, make one virtual group consisting of all UNREAD mails in the imap folders
Date: Fri, 31 Jan 2020 10:56:49 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Uwe Brauer <> writes:

>>>> "EA" == Eric Abrahamsen <> writes:
>> Uwe Brauer <> writes:
>>> Hi
>>> I am reading my emails, via the nnimap backend and sometimes I start
>>> thunderbird first, which then first moves unread emails to certain folders
>>> using filter rules.
>>> Here comes the question: can I create a gnus virtual group which would
>>> display only the unread emails, of the groups I am subscribed to in gnus?
>> You should be able to create a persistent nnir search group, where the
>> search terms are just "UNSEEN".
> Thanks, but it seems not to work.
> In the group buffer I first visited a group which contains one unread
> message, I left that group and typed outside 
> G G
> unseen
> and received the following *error* message
> Debugger entered--Lisp error: (error "Couldn’t request group 
> nnir:nnir-87a764m2w8.fsf: S...")
> signal(error ("Couldn’t request group nnir:nnir-87a764m2w8.fsf: S..."))
> error("Couldn't request group %s: %s" "nnir:nnir-87a764m2w8.fsf" "Search 
> produced empty results.")
> gnus-select-newsgroup("nnir:nnir-87a764m2w8.fsf" t nil)
> gnus-summary-read-group-1("nnir:nnir-87a764m2w8.fsf" t t nil nil nil)
> gnus-summary-read-group("nnir:nnir-87a764m2w8.fsf" t t nil nil nil nil)
> gnus-group-read-group(t t "nnir:nnir-87a764m2w8.fsf" nil)
> gnus-group-read-ephemeral-group("nnir-87a764m2w8.fsf" (nnir "nnir")
> nil nil nil nil ((nnir-specs (nnir-query-spec (query . "unseen"))
> (nnir-group-spec ("nnimap:UCMgmail" ("nnimap+UCMgmail:Karp"))))))
> gnus-group-make-nnir-group(nil)
> funcall-interactively(gnus-group-make-nnir-group nil)
> call-interactively(gnus-group-make-nnir-group nil nil)
> command-execute(gnus-group-make-nnir-group)
> My setting is 
> (nnimap "UCMgmail"
> (nnimap-address "")
> (nnimap-server-port 993)
> ;; (nnimap-authinfo-file "~/.authinfo.gpg")
> (nnimap-authinfo-file "~/.authinfo")
> (nnimap-stream ssl)
> ;;(nnimap-stream starttls)
> (nnimap-fetch-partial-articles t)
> (nnir-search-engine imap))

My guess is that you'll have to set `nnir-imap-default-search-key' to
"imap": that allows your query string to use the full imap search
syntax. Otherwise you're stuck using `nnir-imap-default-search-key'. The
whole system is very odd.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]