mirror of
https://github.com/ChronosX88/yans.git
synced 2024-11-24 20:32:19 +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 {
|
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
|
||||||
}
|
}
|
||||||
|
@ -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},
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user