Skip to content

UTF-8 encoded file names like " =?UTF-8?Q?hrend_der_Corona-Pandemie.pdf?=" not decoded #3

@oricgn

Description

@oricgn

When I try to send a PDF document with an utf-8 encodes file name I get the following error message:

May  3 12:21:47 srv10232 postfix/pipe[32233]: 81BD51C20CDF: to=<mail2rm@example.org>, relay=mail2rm, delay=0.48,
delays=0.29/0.01/0/0.19, dsn=5.3.0, status=bounced (Command died with status 1: "/usr/local/bin/mail2rm". Command
output: b'uploading: [/tmp/tmp32scn_js/=?UTF-?Q?=C3=9Cbersicht_Zust=C3=A4ndigkeiten_w=C3=A4?=\n 
=?UTF-8?Q?hrend_der_Corona-Pandemie.pdf?=]...ERROR: 2021/05/03 12:21:47 main.go:18: Error:  Failed to upload file
[/tmp/tmp32scn_js/=?UTF-8?Q?=C3=9Cbersicht_Zust=C3=A4ndigkeiten_w=C3=A4?=\n 
=?UTF-8?Q?hrend_der_Corona-Pandemie.pdf?=] unsupported file extension: pdf?=\n' Traceback (most recent call last):
File "/usr/local/bin/mail2rm", line 86, in <module> mailer.run(args[0], options) File "/usr/local/bin/mail2rm", line 64, in run
proc.check_returncode()   File "/usr/lib/python3.7/subprocess.py", line 428, in check_returncode     self.stderr) 
subprocess.CalledProcessError: Command '['/usr/local/bin/rmapi', 'put', 
'/tmp/tmp32scn_js/=?UTF-8?Q?=C3=9Cbersicht_Zust=C3=A4ndigkeiten_w=C3=A4?=\n 
=?UTF-8?Q?hrend_der_Corona-Pandemie.pdf?=']' returned non-zero exit status 1. )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions