From: stacyharper <stacyharper@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] Fix from email determination when replying to some mail group lists
Date: Fri, 05 Nov 2021 16:45:33 +0100 [thread overview]
Message-ID: <gh-mailinglist-notifications-fa6558a0-26e0-48f6-803f-f5a8af34f6a8-mblaze-217@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 636 bytes --]
There is a new pull request by stacyharper against master on the mblaze repository
https://github.com/stacyharper/mblaze ggroups-fix
https://github.com/leahneukirchen/mblaze/pull/217
Fix from email determination when replying to some mail group lists
I just received a mail coming from a Google Group mail list and it had
the group email as To. So my reply used the default configured mail as
from and not the correct one.
Googles mails provide the target email as Delivered-To. This patch add
this check before the To to prevent this error.
A patch file from https://github.com/leahneukirchen/mblaze/pull/217.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ggroups-fix-217.patch --]
[-- Type: text/x-diff, Size: 1292 bytes --]
From 5b903ff52d0eae96a178bba95062a86f187a65a2 Mon Sep 17 00:00:00 2001
From: Stacy Harper <contact@stacyharper.net>
Date: Fri, 5 Nov 2021 16:42:14 +0100
Subject: [PATCH] Fix from email determination when replying to some mail group
lists
I just received a mail coming from a Google Group mail list and it had
the group email as To. So my reply used the default configured mail as
from and not the correct one.
Googles mails provide the target email as Delivered-To. This patch add
this check before the To to prevent this error.
---
mcom | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mcom b/mcom
index f1657ad..d60070e 100755
--- a/mcom
+++ b/mcom
@@ -368,7 +368,7 @@ fi
printf 'Subject: Re: %s\n' "$(COLUMNS=10000 mscan -f '%S' "$1")"
if ! printf '%s\n' "$hdrs" | awk '{ print }' |
mhdr -h from: - >/dev/null; then
- addr=$(maddr -a -h to:cc:bcc: "$1" | replyfrom | head -n1)
+ addr=$(maddr -a -h delivered-to:to:cc:bcc: "$1" | replyfrom | head -n1)
[ -n "$addr" ] && from=$(maddr -h reply-from "$MBLAZE/profile" | grep -Fi "<$addr>" | head -n1)
[ -n "$addr" ] && [ -z "$from" ] && from=$(maddr -h alternate-mailboxes "$MBLAZE/profile" | grep -Fi "<$addr>" | head -n1)
[ -z "$from" ] && from=$(mhdr -h local-mailbox "$MBLAZE/profile")
next reply other threads:[~2021-11-05 15:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-05 15:45 stacyharper [this message]
2021-11-08 16:12 ` [PR PATCH] [Closed]: " leahneukirchen
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=gh-mailinglist-notifications-fa6558a0-26e0-48f6-803f-f5a8af34f6a8-mblaze-217@inbox.vuxu.org \
--to=stacyharper@users.noreply.github.com \
--cc=ml@inbox.vuxu.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).