[neomutt-users] server-side ('l =b <pattern>') search claims "Success", yet index not limited

Brian Parent bparent at ucsd.edu
Sun May 17 19:11:43 CEST 2020


Using ~b to for body searches correctly displays the limited matching set of messages in the index,
but using =b for the same search string results in displaying all messages in the index.

Using debug level 5, the search claims "Success".
Indeed, when the search fails, the index list is empty, as expected.
So, the failure doesn't appear to be the search itself, but in the resulting index display.

The problem exists in NeoMutt 20200424, but not in NeoMutt 20180716.

I installed 20200424 using MacPorts "port install neomutt +gdbm +sasl"

After noticing the failure, I restored the previous (20180716) version, and the problem went away.

Here's the relevant debug output ('l =b fileset'):

	2020-05-17 09:26:57]<M> mutt_pattern_func() Compiling search pattern...
	[2020-05-17 09:26:57]<2> mutt_socket_write_d() 8> a0015 UID SEARCH (BODY "fileset")
	[2020-05-17 09:26:57]<5> mutt_socket_readln_d() 8< * SEARCH 55168 55660 55662 55663 55664 55666 55668 55672 55675 92292 109204 146858 151348 155782 175552 175553 175558 175588 175590 175600 175601 175659 175663 175670 175689 175701 175702
	[2020-05-17 09:26:57]<2> cmd_parse_search() Handling SEARCH
	[2020-05-17 09:26:57]<5> mutt_socket_readln_d() 8< a0015 OK SEARCH completed (Success)
	[2020-05-17 09:26:57]<3> imap_cmd_step() IMAP queue drained
	[2020-05-17 09:26:57]<4> mutt_progress_update() updating progress: 0
	[2020-05-17 09:26:57]<4> mutt_progress_update() updating progress: 0
	[2020-05-17 09:26:57]<4> mutt_progress_update() updating progress: 100
	[2020-05-17 09:26:57]<4> mutt_progress_update() updating progress: 200
	[2020-05-17 09:26:57]<4> mutt_progress_update() updating progress: 300
	...
	[2020-05-17 09:26:57]<4> mutt_progress_update() updating progress: 3000
	[2020-05-17 09:26:57]<4> mutt_progress_update() updating progress: 3100
	[2020-05-17 09:26:57]<M> mutt_index_menu() To view all messages, limit to "all"
	[2020-05-17 09:26:57]<5> mutt_addr_is_user() no, all failed
	[2020-05-17 09:26:57]<5> mutt_addr_is_user() no, all failed
	[2020-05-17 09:26:57]<5> mutt_addr_is_user() no, all failed
	[2020-05-17 09:26:57]<5> mutt_addr_is_user() no, all failed
	[2020-05-17 09:26:57]<5> mutt_addr_is_user() no, all failed
	[2020-05-17 09:26:57]<5> mutt_addr_is_user() no, all failed
	[2020-05-17 09:26:57]<5> mutt_addr_is_user() no, all failed
	[2020-05-17 09:26:57]<5> mutt_addr_is_user() no, all failed
	[2020-05-17 09:26:57]<5> mutt_addr_is_user() no, all failed
	...

The mutt_progress_update() lines show evidence that all messages are getting listed in the index, though the search should have limited the index items to one or two messages.

	[calvin bparent ~] [22:48]: neomutt -v
	NeoMutt 20200424
	Copyright (C) 1996-2016 Michael R. Elkins and others.
	NeoMutt comes with ABSOLUTELY NO WARRANTY; for details type 'neomutt -vv'.
	NeoMutt is free software, and you are welcome to redistribute it
	under certain conditions; type 'neomutt -vv' for details.

	System: Darwin 19.4.0 (x86_64)
	ncurses: ncurses 6.2.20200212 (compiled with 6.2.20200212)
	libiconv: 1.16
	libidn: 1.35 (compiled with 1.35)
	GPGME: 1.13.1-unknown
	OpenSSL: OpenSSL 1.1.1g  21 Apr 2020
	storage: gdbm

	Configure options: --prefix=/opt/local --with-idn=/opt/local --with-ncurses=/opt/local --with-nls=/opt/local --with-ssl=/opt/local --with-gdbm=/opt/local --with-gpgme=/opt/local --with-sasl=/opt/local

	Compilation CFLAGS: -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch x86_64 -std=c99 -D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D__EXTENSIONS__ -I/opt/local/include -DNCURSES_WIDECHAR

	Default options:
	  +attach_headers_color +compose_to_sender +compress +cond_date +debug 
	  +encrypt_to_self +forgotten_attachments +forwref +ifdef +imap +index_color 
	  +initials +limit_current_thread +multiple_fcc +nested_if +new_mail +nntp +pop 
	  +progress +quasi_delete +regcomp +reply_with_xorig +sensible_browser +sidebar 
	  +skip_quoted +smtp +status_color +timeout +tls_sni +trash 

	Compile options:
	  -autocrypt +bkgdset +color +curs_set +fcntl -flock -fmemopen +futimens 
	  +getaddrinfo -gnutls +gpgme -gss +hcache -homespool +idn -inotify 
	  -locales_hack -lua -lz4 +meta -mixmaster +nls -notmuch +openssl +pgp +regex 
	  +sasl +smime -sqlite +start_color +sun_attachment +typeahead -zlib -zstd 
	MAILPATH="/var/mail"
	PKGDATADIR="/opt/local/share/neomutt"
	SENDMAIL="/usr/sbin/sendmail"
	SYSCONFDIR="/opt/local/etc"

	To learn more about NeoMutt, visit: https://neomutt.org
	If you find a bug in NeoMutt, please raise an issue at:
	    https://github.com/neomutt/neomutt/issues
	or send an email to: <neomutt-devel at neomutt.org>


My googlefu didn't turn up anyone else complaining about this, and I checked the archives for this list by reviewing subjects over the past 16 months (too bad the archives aren't searchable), with no luck.  At this point, it seems like a bug, but I thought I'd check on this users list first.

For now, I can continue to use the older version, but it would be nice to be able to get more current.



More information about the neomutt-users mailing list