mirror of
https://github.com/ChronosX88/yans.git
synced 2024-11-09 15:11:00 +00:00
Add OVER to capability list
This commit is contained in:
parent
05816654d3
commit
b148a434c9
@ -337,8 +337,8 @@ func (h *Handler) handlePost(s *Session, command string, arguments []string, id
|
||||
if !parentMessage.Thread.Valid {
|
||||
var parentHeader mail.Header
|
||||
err = json.Unmarshal([]byte(parentMessage.HeaderRaw), &parentHeader)
|
||||
parentMessageID := parentHeader["Message-ID"]
|
||||
a.Thread = sql.NullString{String: parentMessageID[0], Valid: true}
|
||||
parentMessageID := parentHeader.Get("Message-ID")
|
||||
a.Thread = sql.NullString{String: parentMessageID, Valid: true}
|
||||
} else {
|
||||
a.Thread = parentMessage.Thread
|
||||
}
|
||||
|
@ -18,6 +18,7 @@ var (
|
||||
Capabilities = protocol.Capabilities{
|
||||
{Type: protocol.VersionCapability, Params: "2"},
|
||||
{Type: protocol.ImplementationCapability, Params: fmt.Sprintf("%s %s", common.ServerName, common.ServerVersion)},
|
||||
{Type: protocol.OverCapability, Params: "MSGID"},
|
||||
{Type: protocol.ModeReaderCapability},
|
||||
}
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user