diff options
Diffstat (limited to 'worker/lib/parse.go')
-rw-r--r-- | worker/lib/parse.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/worker/lib/parse.go b/worker/lib/parse.go index f57a56ac..6b33d246 100644 --- a/worker/lib/parse.go +++ b/worker/lib/parse.go @@ -164,6 +164,14 @@ func parseEnvelope(h *mail.Header) (*models.Envelope, error) { return nil, err } } + irtList, err := h.MsgIDList("in-reply-to") + if err != nil { + return nil, err + } + irt := "" + if len(irtList) > 0 { + irt = irtList[0] + } date, err := parseDate(h) if err != nil { // still return a valid struct plus a sentinel date parsing error @@ -179,6 +187,7 @@ func parseEnvelope(h *mail.Header) (*models.Envelope, error) { To: to, Cc: cc, Bcc: bcc, + InReplyTo: irt, }, err } |