Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: info-gnus-english@gnu.org
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	[thread overview]
Message-ID: <87tv4b315a.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <874kwcm2qb.fsf@mat.ucm.es> (Uwe Brauer's message of "Fri, 31 Jan 2020 09:47:40 +0100")

Uwe Brauer <oub@mat.ucm.es> writes:

>>>> "EA" == Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> Uwe Brauer <oub@mat.ucm.es> 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 "imap.gmail.com")
> (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.

Eric

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

  reply	other threads:[~2020-01-31 18:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-23  8:52 Uwe Brauer
2020-01-23 16:34 ` Eric Abrahamsen
2020-01-31  8:47   ` Uwe Brauer
2020-01-31 18:56     ` Eric Abrahamsen [this message]
2020-02-01  1:45     ` Andrew Cohen
2020-02-01 10:03       ` Uwe Brauer
2020-02-04 22:32         ` Jose A. Ortega Ruiz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tv4b315a.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).