Set Path header when posting article

This commit is contained in:
ChronosX88 2022-02-05 20:14:47 +03:00
parent 5c36bf1e71
commit 352bcf75cd
Signed by: ChronosXYZ
GPG Key ID: 085A69A82C8C511A

View File

@ -297,6 +297,9 @@ func (h *Handler) handlePost(s *Session, command string, arguments []string, id
messageID := fmt.Sprintf("<%s@%s>", uuid.New().String(), h.serverDomain) messageID := fmt.Sprintf("<%s@%s>", uuid.New().String(), h.serverDomain)
headers.Set("Message-ID", messageID) headers.Set("Message-ID", messageID)
// set path header
headers.Set("Path", fmt.Sprintf("%s!not-for-mail", h.serverDomain))
headerJson, err := json.Marshal(headers) headerJson, err := json.Marshal(headers)
if err != nil { if err != nil {
return err return err