You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/services
KN4CK3R fc037b4b82
Add support for incoming emails (#22056)
closes #13585
fixes #9067
fixes #2386
ref #6226
ref #6219
fixes #745

This PR adds support to process incoming emails to perform actions.
Currently I added handling of replies and unsubscribing from
issues/pulls. In contrast to #13585 the IMAP IDLE command is used
instead of polling which results (in my opinion 😉) in cleaner code.

Procedure:
- When sending an issue/pull reply email, a token is generated which is
present in the Reply-To and References header.
- IMAP IDLE waits until a new email arrives
- The token tells which action should be performed

A possible signature and/or reply gets stripped from the content.

I added a new service to the drone pipeline to test the receiving of
incoming mails. If we keep this in, we may test our outgoing emails too
in future.

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2 years ago
..
agit Rename almost all Ctx functions (#22071) 2 years ago
asymkey Implement FSFE REUSE for golang files (#21840) 2 years ago
attachment Add API management for issue/pull and comment attachments (#21783) 2 years ago
auth Improve utils of slices (#22379) 2 years ago
automerge refactor some functions to support ctx as first parameter (#21878) 2 years ago
context Implement FSFE REUSE for golang files (#21840) 2 years ago
convert Use context parameter in models/git (#22367) 2 years ago
cron Add doctor command for full GC of LFS (#21978) 2 years ago
externalaccount Implement FSFE REUSE for golang files (#21840) 2 years ago
forms Secrets storage with SecretKey encrypted (#22142) 2 years ago
gitdiff Implement FSFE REUSE for golang files (#21840) 2 years ago
issue Always reuse transaction (#22362) 2 years ago
lfs Use context parameter in models/git (#22367) 2 years ago
mailer Add support for incoming emails (#22056) 2 years ago
markup Implement FSFE REUSE for golang files (#21840) 2 years ago
migrations Update golang deps (#22410) 2 years ago
mirror Implement FSFE REUSE for golang files (#21840) 2 years ago
org Implement FSFE REUSE for golang files (#21840) 2 years ago
packages refactor auth interface to return error when verify failure (#22119) 2 years ago
pull Use context parameter in models/git (#22367) 2 years ago
release Add API management for issue/pull and comment attachments (#21783) 2 years ago
repository Continue GCing other repos on error in one repo (#22422) 2 years ago
task Implement FSFE REUSE for golang files (#21840) 2 years ago
user Unify hashing for avatar (#22289) 2 years ago
webhook fix: omit avatar_url in discord payload when empty (#22393) 2 years ago
wiki Improve utils of slices (#22379) 2 years ago