forked from Silverfish/proton-bridge
Importing to sent and inbox
This commit is contained in:
@ -173,6 +173,9 @@ func (c *IMAPClient) AppendBody(mailboxName, subject, from, to, body string) *IM
|
||||
msg := fmt.Sprintf("Subject: %s\r\n", subject)
|
||||
msg += fmt.Sprintf("From: %s\r\n", from)
|
||||
msg += fmt.Sprintf("To: %s\r\n", to)
|
||||
if mailboxName != "Sent" {
|
||||
msg += "Received: by 2002:0:0:0:0:0:0:0 with SMTP id 0123456789abcdef; Wed, 30 Dec 2020 01:23:45 0000\r\n"
|
||||
}
|
||||
msg += "\r\n"
|
||||
msg += body
|
||||
msg += "\r\n"
|
||||
|
||||
Reference in New Issue
Block a user