Your message dated Fri, 22 Jun 2018 17:14:09 +0200
with message-id <[email protected]>
and subject line Gone
has caused the Debian Bug report #863119,
regarding mboxgrep -P seems to match everything
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
863119: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863119
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: mboxgrep
Version: 0.7.9-1

when using the -P option, mboxgrep tends to match everything.
I have tried with simple string over a maildir, I got copy of the maildir...

short look at the code:

          if (config.headers)
            res1 = pcre_exec (pcre_pattern, hints, msg->headers,
                              (int) strlen (msg->headers), 0, 0, of, BUFSIZ);
          if (config.body)
            res2 = pcre_exec (pcre_pattern, hints, msg->body,
                              (int) strlen (msg->body), 0, 0, of, BUFSIZ);

          res1 = res1 ^ 1;
          res2 = res2 ^ 1;

I think that the results should be compared to null instead:

          res1 = (res1 != NULL);
          res2 = (res2 != NULL);


--
Matus UHLAR - fantomas, [email protected] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
"They say when you play that M$ CD backward you can hear satanic messages."
"That's nothing. If you play it forward it will install Windows."

--- End Message ---
--- Begin Message ---
Seems to be gone. Thanks,

Alberto

-- 
Alberto Gonzalez Iniesta    | Formación, consultoría y soporte técnico
mailto/sip: [email protected] | en GNU/Linux y software libre
Encrypted mail preferred    | http://inittab.com

Key fingerprint = 5347 CBD8 3E30 A9EB 4D7D  4BF2 009B 3375 6B9A AA55

--- End Message ---

Reply via email to