mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-26 03:12:45 +01:00
Skip already handled incoming emails
It seems like (at least on my machine) that every mail is processed twice. Added a check if the email is already handled and if so, skip it.
This commit is contained in:
parent
162b840100
commit
b796694cd5
1 changed files with 5 additions and 0 deletions
|
@ -219,6 +219,11 @@ loop:
|
|||
}
|
||||
|
||||
err := func() error {
|
||||
if handledSet.Contains(msg.SeqNum) {
|
||||
log.Debug("Skipping already handled message")
|
||||
return nil
|
||||
}
|
||||
|
||||
r := msg.GetBody(section)
|
||||
if r == nil {
|
||||
return fmt.Errorf("could not get body from message: %w", err)
|
||||
|
|
Loading…
Reference in a new issue