~sircmpwn/aerc

59c24523af859dfbd2d5d33f46ab8d5c5a347f8f — Srivathsan Murali 1 year, 2 months ago 3338dce
Parse Reply-To header while parsing envelope
1 files changed, 5 insertions(+), 0 deletions(-)

M worker/lib/parse.go
M worker/lib/parse.go => worker/lib/parse.go +5 -0
@@ 150,6 150,10 @@ func parseEnvelope(h *mail.Header) (*models.Envelope, error) {
	if err != nil {
		return nil, fmt.Errorf("could not read bcc address: %v", err)
	}
	replyTo, err := parseAddressList(h, "reply-to")
	if err != nil {
		return nil, fmt.Errorf("could not read reply-to address: %v", err)
	}
	subj, err := h.Subject()
	if err != nil {
		return nil, fmt.Errorf("could not read subject: %v", err)


@@ 163,6 167,7 @@ func parseEnvelope(h *mail.Header) (*models.Envelope, error) {
		Subject:   subj,
		MessageId: msgID,
		From:      from,
		ReplyTo:   replyTo,
		To:        to,
		Cc:        cc,
		Bcc:       bcc,