Protonmail Bridge setup fails for second email address

Description

Fails to setup a second Protonmail Bridge account.

To Reproduce…

  1. Steps to reproduce the behavior:
  2. Set up Protonmail Bridge with the Split Addresses option
  3. Setup a first Protonmail bridge account, fill out the server details etc and add the account. This succeeds.
    Subsequent accounts fail to add and fail with a message:
    The SMTP server would not relay a message. You may need to authenticate. (SMTP)View Log
    The log shows:

----------IMAP----------
connect mailcore::IMAPSession:0x7ffdcd3a97a0

  • OK [CAPABILITY ID IDLE IMAP4rev1 MOVE STARTTLS UIDPLUS UNSELECT] Proton Mail Bridge 03.04.02 - gluon session ID 189
    ssl connect 127.0.0.1 1143 2
    connect ok
    login
    1 LOGIN “xxxxxx@xxx.xx” *********
    1 OK [CAPABILITY ID IDLE IMAP4rev1 MOVE STARTTLS UIDPLUS UNSELECT] Logged in
    2 LIST “” “”
  • LIST (\Noselect) “/” “”
    2 OK LIST
    login ok
    3 LIST “” “*”
  • LIST (\Marked \Noinferiors \Trash) “/” “Trash”
  • LIST (\Archive \Marked \Noinferiors) “/” “Archive”
  • LIST (\Noselect \Unmarked) “/” “Folders”
  • LIST (\Marked) “/” “Folders/Snoozed”
  • LIST (\Noselect \Unmarked) “/” “Labels”
  • LIST (\Marked) “/” “Labels/IMPORTANT”
  • LIST (\Marked \Noinferiors) “/” “INBOX”
  • LIST (\Marked \Noinferiors \Sent) “/” “Sent”
  • LIST (\Flagged \Marked \Noinferiors) “/” “Starred”
  • LIST (\Drafts \Marked \Noinferiors) “/” “Drafts”
  • LIST (\Junk \Marked \Noinferiors) “/” “Spam”
    3 OK LIST

----------SMTP----------
220 127.0.0.1 ESMTP Service Ready
init
EHLO me
250-Hello me
250-PIPELINING
250-8BITMIME
250-ENHANCEDSTATUSCODES
250-CHUNKING
250-AUTH PLAIN LOGIN
250 SIZE
AUTH PLAIN ZG9iQG9wc2EuY2gAZG9iQG9wc2EZTRgAVFdla1VDOGd4cmp5V2xudjlQZXloUQ==
235 2.0.0 Authentication succeeded
MAIL FROM:xxxxxx@xxx.xx
250 2.0.0 Roger, accepting mail from xxxxxx@xxx.xx
RCPT TO:xxxxxx@xxx.xx
250 2.0.0 I’ll make sure xxxxxx@xxx.xx gets this
DATA
354 2.0.0 Go ahead. End your data with .
Date: Fri, 22 Sep 2023 22:43:09 +0200
From: Mailspring Team xxxxxx@xxx.xx
Reply-To: xxxxxx@xxx.xx
To: xxxxxx@xxx.xx
Message-ID: 0727ff82-503c-4781-bf8b-224de43e3127@me
Subject: Mailspring SMTP Test Email
X-Mailer: Mailspring
MIME-Version: 1.0
Content-Type: text/plain; charset=“utf-8”
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

This is an email sent by Mailspring while we were testing your account config.

As you’ve received it, everything must be a-ok.

Kind regards,
The Mailspring Team

P.S. a massive thank you for using Mailspring. We’ll love you always!
.
554 5.0.0 Error: transaction failed, blame it on the weather: failed to parse message: failed to collect attachments: mime: invalid media parameter

SASL_PATH: /snap/mailspring/523/usr/share/mailspring/resources/app.asar.unpacked

SMTP Last Response Code: 554
SMTP Last Response: 5.0.0 Error: transaction failed, blame it on the weather: failed to parse message: failed to collect attachments: mime: invalid media parameter

Expected Behavior

The second and consequent accounts should add. Deleting the account and trying to add a new “first” account also failed with same problem.

Screenshots

Setup

  • OS and Version: Ubuntu 22.04.3 LTS
    • Installation Method: snapcraft
  • Mailspring Version: 1.11.0-6193b33c

Additional Context

Tried setting up another account not on Protonmail bridge works