diff options
author | Stavros Ntentos <stdedos@gmail.com> | 2021-03-26 18:31:46 +0200 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-03-26 21:20:38 +0000 |
commit | 90ca1ac28edb2e8a64c30bb4be723643c646df89 (patch) | |
tree | b67ee541428e1f719b0e0929af447dd29a9e4520 /lib/PublicInbox/Reply.pm | |
parent | 43c43f785aa53607a0dd050989da5d7fd0dcfff4 (diff) | |
download | public-inbox-90ca1ac28edb2e8a64c30bb4be723643c646df89.tar.gz |
I keep copy-pasting the addresses provided, I keep writing my plaintext reply in a file, and I keep forgetting to add a subject (because I am "just" writing a plaintext file) Teach `git-send-email-reply` to append a `--subject` line. [ew: avoid URI-encoded subject on command-line, adjust t/reply.t] Signed-off-by: Stavros Ntentos <133706+stdedos@users.noreply.github.com>
Diffstat (limited to 'lib/PublicInbox/Reply.pm')
-rw-r--r-- | lib/PublicInbox/Reply.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/PublicInbox/Reply.pm b/lib/PublicInbox/Reply.pm index 8226fdc3..2a1066d2 100644 --- a/lib/PublicInbox/Reply.pm +++ b/lib/PublicInbox/Reply.pm @@ -74,6 +74,7 @@ sub mailto_arg_link { my $obfs = $ibx->{obfuscate}; my $subj = $hdr->header('Subject') || ''; $subj = "Re: $subj" unless $subj =~ /\bRe:/i; + my $subj_raw = $subj; my $mid = $hdr->header_raw('Message-ID'); push @arg, '--in-reply-to='.squote_maybe(mid_clean($mid)); my $irt = mid_href($mid); @@ -103,6 +104,8 @@ sub mailto_arg_link { } } + push @arg, "--subject=".squote_maybe($subj_raw); + # I'm not sure if address obfuscation and mailto: links can # be made compatible; and address obfuscation is misguided, # anyways. |