From: Daniel Jacobowitz <dan@debian.org>
To: linux-kernel@vger.kernel.org
Subject: [OT] For those who want From: lines on bk-commits-* mail
Date: Thu, 2 Jan 2003 20:20:11 -0500 [thread overview]
Message-ID: <20030103012011.GA7706@nevyn.them.org> (raw)
Mentioned this when the list was first set up; the decision seemed to be
that using a fixed From: line was more polite to people who hadn't
volunteered to have their email addresses archived, or more likely to put
discussions in the right place, or other things along those lines. Well,
for those who would prefer to look at a mailbox summary and know who commits
came from, here's a simple way to do it. I'm sure someone on the list can
find a more elegant solution.
.procmailrc:
:0
* ^X-Mailing-List:.*bk-commits-head@
{
:0f
| $HOME/bin/set-from.sh
:0 :
bk-commits-head/
}
set-from.sh:
#!/bin/sh
cat > $HOME/.tmp/bk-head-tmp.$$
from=`grep '^ChangeSet' $HOME/.tmp/bk-head-tmp.$$ | head -1 | awk '{print $NF}'`
if test -n "$from"; then
formail -i "From: $from" < $HOME/.tmp/bk-head-tmp.$$
else
cat $HOME/.tmp/bk-head-tmp.$$
fi
rm $HOME/.tmp/bk-head-tmp.$$
Just mkdir $HOME/.tmp before trying this. The tmpdir handling is blatantly
unsafe, so I don't recommend using /tmp.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
reply other threads:[~2003-01-03 1:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20030103012011.GA7706@nevyn.them.org \
--to=dan@debian.org \
--cc=linux-kernel@vger.kernel.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