mirror of
https://github.com/ChronosX88/yans.git
synced 2024-11-09 15:11:00 +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)
|
||||
headers.Set("Message-ID", messageID)
|
||||
|
||||
// set path header
|
||||
headers.Set("Path", fmt.Sprintf("%s!not-for-mail", h.serverDomain))
|
||||
|
||||
headerJson, err := json.Marshal(headers)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user