Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decrypt encrypted mails turned into attachments #3315

Merged
merged 1 commit into from
May 14, 2022

Conversation

link2xt
Copy link
Collaborator

@link2xt link2xt commented May 12, 2022

Google Workspace has an option "Append footer" which appends standard
footer defined by administrator to all outgoing messages. However,
there is no plain text part in encrypted messages sent by Delta Chat,
so Google Workspace turn the message into multipart/mixed MIME, where
the first part is an empty plaintext part with a footer and the second
part is the original encrypted message.

This commit makes Delta Chat attempt to repair such messages,
similarly to how it already repairs "Mixed Up" MIME structure in
get_mixed_up_mime.

@link2xt
Copy link
Collaborator Author

link2xt commented May 12, 2022

@link2xt link2xt force-pushed the link2xt/mixed-up-google-workspace branch from 4b7f060 to f082d53 Compare May 12, 2022 19:35
@link2xt link2xt requested a review from Simon-Laux May 13, 2022 08:36
@link2xt link2xt force-pushed the link2xt/mixed-up-google-workspace branch from f082d53 to 0fcde7c Compare May 13, 2022 21:51
@link2xt link2xt marked this pull request as ready for review May 13, 2022 21:51
Copy link
Contributor

@hpk42 hpk42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Google Workspace has an option "Append footer" which appends standard
footer defined by administrator to all outgoing messages. However,
there is no plain text part in encrypted messages sent by Delta Chat,
so Google Workspace turn the message into multipart/mixed MIME, where
the first part is an empty plaintext part with a footer and the second
part is the original encrypted message.

This commit makes Delta Chat attempt to repair such messages,
similarly to how it already repairs "Mixed Up" MIME structure in
`get_mixed_up_mime`.
@link2xt link2xt force-pushed the link2xt/mixed-up-google-workspace branch from 0fcde7c to 7156642 Compare May 14, 2022 15:19
@link2xt link2xt merged commit 7156642 into master May 14, 2022
@link2xt link2xt deleted the link2xt/mixed-up-google-workspace branch May 14, 2022 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants