mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-21 01:26:48 +00:00
Other(debug): Dump raw SMTP input to user's home dir
This commit is contained in:
@ -67,7 +67,9 @@ func (user *User) sendMail(authID string, from string, to []string, r io.Reader)
|
||||
}
|
||||
|
||||
// If running a QA build, dump to disk.
|
||||
debugDumpToDisk(b)
|
||||
if err := debugDumpToDisk(b); err != nil {
|
||||
user.log.WithError(err).Warn("Failed to dump message to disk")
|
||||
}
|
||||
|
||||
// Compute the hash of the message (to match it against SMTP messages).
|
||||
hash, err := getMessageHash(b)
|
||||
|
||||
Reference in New Issue
Block a user