]> Sergey Matveev's repositories - public-inbox.git/commit
lei ls-mail-sync: fix handling of non-wildcard filters
authorEric Wong <e@80x24.org>
Tue, 4 May 2021 05:14:19 +0000 (05:14 +0000)
committerEric Wong <e@80x24.org>
Tue, 4 May 2021 05:14:53 +0000 (05:14 +0000)
commit5822bd37808c1ac21863d37161b19f1021657a58
tree3c7a6f0529815b629a3a3a597174a82e3123806b
parent7453aefc22817eb0de9c7afafa3c43acde0e0b07
lei ls-mail-sync: fix handling of non-wildcard filters

If lei_ls_mail_sync() is given a filter without any wildcards
and --globoff is unspecified, glob2re() will return undef,
resulting in the final regular expression being undefined.
Always use a fallback value when there's no RE.

Based-on-patch-by: Kyle Meyer <kyle@kyleam.com>
Link: https://public-inbox.org/meta/20210504044559.12941-5-kyle@kyleam.com/
lib/PublicInbox/LeiLsMailSync.pm