From: Drew DeVault <sir@cmpwn.com>
To: 9front@9front.org, sir@cmpwn.com
Subject: [PATCH] upas/Mail: add In-Reply-To to replies
Date: Sun, 16 Feb 2020 18:34:22 -0500 [thread overview]
Message-ID: <C67912AA9F52283CD5C3A0C19F516C8B@cmpwn.com> (raw)
# HG changeset patch
# User Drew DeVault <sir@cmpwn.com>
# Date 1581895466 18000
# Node ID 5142c37315c57642b747aae1b16b8562d5482d21
# Parent 1d345066125a340bfae117459393f4167700096c
upas/Mail: add In-Reply-To to replies
diff -r 1d345066125a -r 5142c37315c5 sys/src/cmd/upas/Mail/dat.h
--- a/sys/src/cmd/upas/Mail/dat.h Fri Oct 04 18:54:01 2019 +0200
+++ b/sys/src/cmd/upas/Mail/dat.h Sun Feb 16 18:24:26 2020 -0500
@@ -70,6 +70,7 @@
char *disposition;
char *filename;
char *digest;
+ char *messageid;
Message *next; /* next in this mailbox */
Message *prev; /* prev in this mailbox */
diff -r 1d345066125a -r 5142c37315c5 sys/src/cmd/upas/Mail/mesg.c
--- a/sys/src/cmd/upas/Mail/mesg.c Fri Oct 04 18:54:01 2019 +0200
+++ b/sys/src/cmd/upas/Mail/mesg.c Sun Feb 16 18:24:26 2020 -0500
@@ -129,7 +129,7 @@
/* m->inreplyto = */ free(line(p, &p));
/* m->date = */ free(line(p, &p));
/* m->sender = */ free(line(p, &p));
- /* m->messageid = */ free(line(p, &p));
+ m->messageid = line(p, &p);
/* m->lines = */ free(line(p, &p));
/* m->size = */ free(line(p, &p));
/* m->flags = */ free(line(p, &p));
diff -r 1d345066125a -r 5142c37315c5 sys/src/cmd/upas/Mail/reply.c
--- a/sys/src/cmd/upas/Mail/reply.c Fri Oct 04 18:54:01 2019 +0200
+++ b/sys/src/cmd/upas/Mail/reply.c Sun Feb 16 18:24:26 2020 -0500
@@ -115,6 +115,8 @@
Bprint(r->w->body, "CC: %s\n", m->cc);
}
}
+ if(strlen(m->messageid) > 0)
+ Bprint(r->w->body, "In-Reply-To: %s\n", m->messageid);
if(strlen(m->subject) > 0){
t = "Subject: Re: ";
if(strlen(m->subject) >= 3)
next reply other threads:[~2020-02-16 23:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-16 23:34 Drew DeVault [this message]
2020-02-16 23:54 ` [9front] " Alex Musolino
2020-02-17 0:55 ` ori
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=C67912AA9F52283CD5C3A0C19F516C8B@cmpwn.com \
--to=sir@cmpwn.com \
--cc=9front@9front.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).