Bug 261253 - mail/pyzor: Fix encoding issues: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa3 in position 2649: invalid start byte
Summary: mail/pyzor: Fix encoding issues: UnicodeDecodeError: 'utf-8' codec can't deco...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Danilo G. Baio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-16 17:34 UTC by Danilo G. Baio
Modified: 2022-01-20 18:57 UTC (History)
1 user (show)

See Also:
chalpin: maintainer-feedback+
dbaio: merge-quarterly+


Attachments
pyzor-encode-fix.patch (2.25 KB, patch)
2022-01-16 17:34 UTC, Danilo G. Baio
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Danilo G. Baio freebsd_committer freebsd_triage 2022-01-16 17:34:40 UTC
Created attachment 231049 [details]
pyzor-encode-fix.patch

Add upstream patches to fix encoding issues.

https://github.com/SpamExperts/pyzor/commit/67b471dd168db9468548aef3ffadca9554164ac0
https://github.com/SpamExperts/pyzor/commit/6332a429ed415187599ecce7d8a169ee19f0bbe5

Common error:

spamd[58219]: internal error, python traceback seen in response: Traceback (most recent call last):\n File "/usr/local/bin/pyzor", line 409, in <module>\n main()\n File "/usr/local/bin/pyzor", line 152, in main\n if not dispatch(client, servers, config):\n File "/usr/local/bin/pyzor", line 238, in check\n for digested in get_input_handler(style):\n File "/usr/local/bin/pyzor", line 174, in _get_input_msg\n msg = email.message_from_file(sys.stdin)\n File "/
Comment 1 Corey Halpin 2022-01-19 21:09:32 UTC
Looks good to me, passes `poudriere testport`, built package works in my testing. I approve this patch. Thank you!

However, I'm no longer actively using pyzor and as such am probably not the best person to maintain it. Please remove me as MAINTAINER.
Comment 2 Danilo G. Baio freebsd_committer freebsd_triage 2022-01-20 16:58:26 UTC
(In reply to Corey Halpin from comment #1)

I'm testing it in production, and it looks good.

Thanks for all your work on this port; I'll take maintainer'ship.
Comment 3 commit-hook freebsd_committer freebsd_triage 2022-01-20 17:58:03 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e0559f08171d8b4dc1d95feeccfd01e9924c6eb8

commit e0559f08171d8b4dc1d95feeccfd01e9924c6eb8
Author:     Danilo G. Baio <dbaio@FreeBSD.org>
AuthorDate: 2022-01-16 17:31:28 +0000
Commit:     Danilo G. Baio <dbaio@FreeBSD.org>
CommitDate: 2022-01-20 17:56:06 +0000

    mail/pyzor: Fix encoding issues

    Add upstream patches to fix encoding issues:
       https://github.com/SpamExperts/pyzor/issues/38
       https://github.com/SpamExperts/pyzor/issues/64

    Take MAINTAINER'ship.

    PR:             261253
    Approved by:    chalpin@cs.wisc.edu (maintainer)

 mail/pyzor/Makefile | 7 ++++++-
 mail/pyzor/distinfo | 5 +++++
 2 files changed, 11 insertions(+), 1 deletion(-)
Comment 4 commit-hook freebsd_committer freebsd_triage 2022-01-20 18:35:09 UTC
A commit in branch 2022Q1 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=58ba8736c29bc1a98d492380df49c07ac91c1f6f

commit 58ba8736c29bc1a98d492380df49c07ac91c1f6f
Author:     Danilo G. Baio <dbaio@FreeBSD.org>
AuthorDate: 2022-01-16 17:31:28 +0000
Commit:     Danilo G. Baio <dbaio@FreeBSD.org>
CommitDate: 2022-01-20 18:31:12 +0000

    mail/pyzor: Fix encoding issues

    Add upstream patches to fix encoding issues:
       https://github.com/SpamExperts/pyzor/issues/38
       https://github.com/SpamExperts/pyzor/issues/64

    Take MAINTAINER'ship.

    PR:             261253
    Approved by:    chalpin@cs.wisc.edu (maintainer)

    (cherry picked from commit e0559f08171d8b4dc1d95feeccfd01e9924c6eb8)

 mail/pyzor/Makefile | 7 ++++++-
 mail/pyzor/distinfo | 5 +++++
 2 files changed, 11 insertions(+), 1 deletion(-)
Comment 5 commit-hook freebsd_committer freebsd_triage 2022-01-20 18:57:14 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/doc/commit/?id=5bed896fe2d37fc99f12e49c6633f0fb7c5157e9

commit 5bed896fe2d37fc99f12e49c6633f0fb7c5157e9
Author:     Danilo G. Baio <dbaio@FreeBSD.org>
AuthorDate: 2022-01-20 18:52:58 +0000
Commit:     Danilo G. Baio <dbaio@FreeBSD.org>
CommitDate: 2022-01-20 18:56:02 +0000

    Add Corey Halpin to contributors

    Maintainer of: devel/re2c
          mail/fetchmail
          mail/fetchmailconf
          mail/hashcash
          mail/pyzor (former)
          mail/rss2email3
          security/clamassassin

    PR:             261253

 shared/contrib-additional.adoc | 1 +
 1 file changed, 1 insertion(+)