mirror of
https://github.com/ChronosX88/yans.git
synced 2024-11-22 03:32:18 +00:00
Set Path header when posting article
This commit is contained in:
parent
5c36bf1e71
commit
352bcf75cd
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user