Skip to content

Commit

Permalink
Don't forward automatic replies to mailing list emails
Browse files Browse the repository at this point in the history
  • Loading branch information
SumiGovindaraju committed Mar 6, 2019
1 parent 1c2fbb2 commit 5aae0a2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mail_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,11 @@ func (message *MailMessage) handleReplyForwarding() bool {
return false
}

if strings.Contains(strings.ToLower(message.subject), "automatic reply") {
// Do not forward automatic replies
return true
}

log.Printf("Decoded reply-to addresses: %v", replyAddresses)
data := struct {
From *mail.Address
Expand Down

0 comments on commit 5aae0a2

Please sign in to comment.