Package: sup-mail
Version: 0.19.0-1
Severity: normal

Dear Maintainer,

Hello I tried to use sup-tweak-labels to modify in bunch the labels of
some mailing list that I had imported with the following command:

   sup-tweak-labels -e --all-sources -n -r inbox -q "label:ML"

Unfortunately it crashed with the following traceback:

   /usr/lib/ruby/vendor_ruby/sup/index.rb:531:in `parse_query':
   Redwood::Index::ParseError (Redwood::Index::ParseError)
       from /usr/bin/sup-tweak-labels:88:in `<main>'

A quick glance at the code shows that I should have use "AND
label:ML". And indeed it worked but it is quite counterintuitive.

I suggest to automatically add the 'AND' in the line 140 of
/usr/bin/sup-tweak-labels when opts[:query] (but it's the first time
that I read ruby code so there might be a better fix).

-- System Information:
Debian Release: jessie/sid
 APT prefers unstable
 APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages sup-mail depends on:
ii  ruby                        1:2.1.0.4
ii  ruby-chronic                0.10.2-2
ii  ruby-highline               1.6.21-1
ii  ruby-locale                 2.1.0-2
ii  ruby-lockfile               2.1.3-1
ii  ruby-mime-types             1.25-2
ii  ruby-ncurses                1.4.8-1
ii  ruby-rubymail               1.0.0-2
ii  ruby-trollop                2.0-1
ii  ruby-unicode                0.4.4-2+b3
ii  ruby-xapian                 1.2.18-1
ii  ruby2.1 [ruby-interpreter]  2.1.3-1

Versions of packages sup-mail recommends:
ii  ruby-gpgme  2.0.5-1+b2

sup-mail suggests no packages.

-- no debconf information

--
(°> Nicolas Évrard
( ) Liège
`¯

Attachment: signature.asc
Description: Digital signature

Reply via email to