ProtonMail / go-proton-api

Proton API library used by Go-based clients and tools
MIT License
129 stars 17 forks source link

utf-8" prefix on filenames when sending through smtp directly #114

Closed doebi closed 1 year ago

doebi commented 1 year ago

When sending mail throught the smtp connection, the file attachments have the prefix utf8" on their filename.

2023-10-19_12-43

I send mails through this service: https://github.com/ddvk/rmfakecloud

The corresponding line of code is found here: https://github.com/ddvk/rmfakecloud/blob/master/internal/email/smtp.go#L84

The utf-8 prefix is based on RFC, a stackoverflow thread related to this: https://stackoverflow.com/questions/93551/how-to-encode-the-filename-parameter-of-content-disposition-header-in-http

LBeernaertProton commented 1 year ago

go-proton-api by itself does not contain a SMTP server. Please open a ticket in the relevant project or contact proton customer support.