From: | gregoa [...] cpan.org |
Subject: | libnet-imap-simple-perl: If possible, implement charset aware search |
We have the following bug reported to the Debian package of
Net-IMAP-Simple (https://bugs.debian.org/891912):
It doesn't seem to be a bug in the packaging, so you may want to take
a look. Thanks!
------8<-----------8<-----------8<-----------8<-----------8<-----
Package: libnet-imap-simple-perl
Version: 1.2207-1
Severity: wishlist
Tags: l10n
Dear Maintainer,
I noticed, that I found no way to search for subject lines containing umlauts with Net::IMAP::Simple.
Claws-Mail for example has no problem finding emails whoise subject contains umlauts.
So I did try to debug the issue and noticed, that there are two ways to specify a search argument.
The rist one is by specifying the argument in the search line, the second one is by specifying the
length of the argument.
Obviously the second one is the only one that is umlauts aware, as this example with UW-IMAPD shows:
a UID SEARCH CHARSET utf-8 SUBJECT 'seehü'
a BAD Missing or invalid argument to UID SEARCH
a UID SEARCH CHARSET utf-8 SUBJECT seehü
a BAD Missing or invalid argument to UID SEARCH
a UID SEARCH CHARSET utf-8 SUBJECT {6}
+ Ready for argument
seehü
* SEARCH 544130 544131 544132 544151 544320 544355 544516 546049
a OK UID SEARCH completed
Any chance to implement this second search variant in Net::Imap::Simple?
-Benoit-
-- System Information:
Debian Release: 9.3
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.14.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_CH.UTF-8, LC_CTYPE=de_CH.UTF-8 (charmap=UTF-8), LANGUAGE=de_CH:de (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages libnet-imap-simple-perl depends on:
ii perl 5.24.1-3+deb9u2
Versions of packages libnet-imap-simple-perl recommends:
ii libio-socket-inet6-perl 2.72-2
ii libio-socket-ssl-perl 2.044-1
ii libparse-recdescent-perl 1.967013+dfsg-1
libnet-imap-simple-perl suggests no packages.
-- no debconf information
------8<-----------8<-----------8<-----------8<-----------8<-----
Thanks for considering,
gregor herrmann,
Debian Perl Group