Testausserveri / koirameili

SMTP server to receive emails in Discord DM's
0 stars 1 forks source link

Sometimes too long custom_id field #1

Open ahnl opened 2 years ago

ahnl commented 2 years ago

A mail will not be delivered to Discord when value of custom_id exceeds 100 characters. Thecustom_id field contains base64 encoded from and to values of an email.

A solution could be to save from and to values in the database, and point custom_id to the database row.

Reproduction

  1. Send an email to thisisaverylongemailaddress+yourmailbox@koira.testausserveri.fi
  2. Following error will occur and mail will not be delivered to Discord
    app_1  | DiscordAPIError: Invalid Form Body
    app_1  | components[0].components[0].custom_id: Must be 100 or fewer in length.