Bug#923077: pyzor: crashes on certain emails

2021-01-10 Thread gustavo panizzo

While preparing a NMU for pyzor with this patch [1] I got stuck in this
piuparts error

```
0m31.1s ERROR: FAIL: silently overwrites files via directory symlinks:
  /usr/share/javascript/jquery/jquery.js (libjs-jquery) != 
/usr/share/nodejs/jquery/dist/jquery.js (node-jquery)
/usr/share/javascript/jquery -> ../nodejs/jquery/dist
  /usr/share/javascript/jquery/jquery.min.js (libjs-jquery) != 
/usr/share/nodejs/jquery/dist/jquery.min.js (?)
/usr/share/javascript/jquery -> ../nodejs/jquery/dist
  /usr/share/javascript/jquery/jquery.min.js.brotli (libjs-jquery) != 
/usr/share/nodejs/jquery/dist/jquery.min.js.brotli (?)
/usr/share/javascript/jquery -> ../nodejs/jquery/dist
  /usr/share/javascript/jquery/jquery.min.js.gz (libjs-jquery) != 
/usr/share/nodejs/jquery/dist/jquery.min.js.gz (?)
/usr/share/javascript/jquery -> ../nodejs/jquery/dist
  /usr/share/javascript/jquery/jquery.min.map (libjs-jquery) != 
/usr/share/nodejs/jquery/dist/jquery.min.map (?)
/usr/share/javascript/jquery -> ../nodejs/jquery/dist
  /usr/share/javascript/jquery/jquery.min.map.brotli (libjs-jquery) != 
/usr/share/nodejs/jquery/dist/jquery.min.map.brotli (?)
/usr/share/javascript/jquery -> ../nodejs/jquery/dist
  /usr/share/javascript/jquery/jquery.min.map.gz (libjs-jquery) != 
/usr/share/nodejs/jquery/dist/jquery.min.map.gz (?)
/usr/share/javascript/jquery -> ../nodejs/jquery/dist
```

I'm not sure it is related to pyzor-doc but I'm not very familiar how Debian 
ships js files, if anybody has a clue I'd speed up the NMU, ty!

[1] - https://github.com/SpamExperts/pyzor/issues/64#issuecomment-370238062

--
IRC: gfa
GPG: 0x27263FA42553615F904A7EBE2A40A2ECB8DAD8D5
OLD GPG: 0x44BB1BA79F6C6333



Bug#923077: pyzor: crashes on certain emails

2021-01-09 Thread Timo van Roermund
I encounter the same issue with the latest version of Pyzor 
(1:1.0.0-3.1) in testing.


I concur with the observations above (by Matthijs) that:
- The issue is known, and has been fixed, in upstream: 
https://github.com/SpamExperts/pyzor/issues/64
- There is unfortunately no new release that incorporates these changes: 
https://github.com/SpamExperts/pyzor/issues/54


The following patch fixes this issue: 
https://github.com/SpamExperts/pyzor/issues/64#issuecomment-370238062


Could this patch be included in the Debian package for pyzor, please?

This would probably also close the following bugs, which seem to be 
duplicates:

- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=928661
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=968656

Best regards,

Timo



Bug#923077: pyzor: crashes on certain emails

2020-06-01 Thread matthijs
Package: pyzor
Version: 1:1.0.0-3
Followup-For: Bug #923077

Hi,

this problem is reported upstream as
https://github.com/SpamExperts/pyzor/issues/64 and in Ubuntu as
https://bugs.launchpad.net/ubuntu/+source/pyzor/+bug/1852433

It is fixed in upstream master, but not included in any release yet.
People have been asking for a new release
(https://github.com/SpamExperts/pyzor/issues/54) but if that does not
come along soon, maybe this fix would be worthwile to backport? It's
just a oneline change (see upstream bug).

Gr.

Matthijs



Bug#923077: pyzor: crashes on certain emails

2019-02-23 Thread nijel
Package: pyzor
Version: 1:1.0.0-3
Severity: normal

Dear Maintainer,

some tested emails make pyzor crash. I haven't collected the problematic
email, but I can probably do that as there is about one in a hour going
to my mail server and spamassasin complains with "internal error, python
traceback seen in response". If you have hints how to save the processed
email in that case, it would help.

The pyzor crashes with:

Traceback (most recent call last):
 File "/usr/bin/pyzor", line 408, in 
   main()
 File "/usr/bin/pyzor", line 152, in main
   if not dispatch(client, servers, config):
 File "/usr/bin/pyzor", line 237, in check
   for digested in get_input_handler(style):
 File "/usr/bin/pyzor", line 174, in _get_input_msg
   msg = email.message_from_file(sys.stdin)
 File "/usr/lib/python3.7/email/__init__.py", line 54, in message_from_file
   return Parser(*args, **kws).parse(fp)
 File "/usr/lib/python3.7/email/parser.py", line 54, in parse
   data = fp.read(8192)
 File "/usr/lib/python3.7/codecs.py", line 322, in decode
   (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x92 in position 1041: 
invalid start byte

Michal

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages pyzor depends on:
ii  python3  3.7.2-1

pyzor recommends no packages.

Versions of packages pyzor suggests:
pn  pyzor-doc  

-- no debconf information