forgejo/services/mailer/incoming
forgejo-backport-action 50b7009603 [v7.0/forgejo] Add inline attachments to comments and prevent double handling of mails (#3566)
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/3504

If incoming email is configured and an email is sent, inline attachments are currently not added to the comment if it has the `Content-Disposition: inline` instead of `Content-Disposition: attachment` as e.g. with Apple Mail.

This adds inline attachments (`Content-Disposition: inline`) that *have a filename* as attachment to the comment. Other elements with `Content-Disposition: inline` are not attached as attachment to the comment.

In addition, a check has been added to prevent mails from being processed twice.

Fixes #3496

Co-authored-by: Beowulf <beowulf@beocode.eu>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/3566
Reviewed-by: Beowulf <beowulf@beocode.eu>
Co-authored-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
Co-committed-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
2024-05-01 12:19:38 +00:00
..
payload Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
incoming.go [v7.0/forgejo] Add inline attachments to comments and prevent double handling of mails (#3566) 2024-05-01 12:19:38 +00:00
incoming_handler.go fix(incoming): allow replies to comments 2024-04-22 22:43:16 +00:00
incoming_test.go [v7.0/forgejo] Add inline attachments to comments and prevent double handling of mails (#3566) 2024-05-01 12:19:38 +00:00