mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-22 05:36:16 +00: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
|
@ -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