Add OVER to capability list

This commit is contained in:
ChronosX88 2022-02-05 21:51:43 +03:00
parent 05816654d3
commit b148a434c9
Signed by: ChronosXYZ
GPG Key ID: 085A69A82C8C511A
2 changed files with 3 additions and 2 deletions

View File

@ -337,8 +337,8 @@ func (h *Handler) handlePost(s *Session, command string, arguments []string, id
if !parentMessage.Thread.Valid { if !parentMessage.Thread.Valid {
var parentHeader mail.Header var parentHeader mail.Header
err = json.Unmarshal([]byte(parentMessage.HeaderRaw), &parentHeader) err = json.Unmarshal([]byte(parentMessage.HeaderRaw), &parentHeader)
parentMessageID := parentHeader["Message-ID"] parentMessageID := parentHeader.Get("Message-ID")
a.Thread = sql.NullString{String: parentMessageID[0], Valid: true} a.Thread = sql.NullString{String: parentMessageID, Valid: true}
} else { } else {
a.Thread = parentMessage.Thread a.Thread = parentMessage.Thread
} }

View File

@ -18,6 +18,7 @@ var (
Capabilities = protocol.Capabilities{ Capabilities = protocol.Capabilities{
{Type: protocol.VersionCapability, Params: "2"}, {Type: protocol.VersionCapability, Params: "2"},
{Type: protocol.ImplementationCapability, Params: fmt.Sprintf("%s %s", common.ServerName, common.ServerVersion)}, {Type: protocol.ImplementationCapability, Params: fmt.Sprintf("%s %s", common.ServerName, common.ServerVersion)},
{Type: protocol.OverCapability, Params: "MSGID"},
{Type: protocol.ModeReaderCapability}, {Type: protocol.ModeReaderCapability},
} }
) )