All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kees Cook <kees@outflux.net>
To: speck@linutronix.de
Subject: [MODERATED] Re: List changes
Date: Wed, 2 May 2018 18:04:21 -0700	[thread overview]
Message-ID: <20180503010421.GB6017@outflux.net> (raw)
In-Reply-To: <alpine.DEB.2.21.1805021203130.1668@nanos.tec.linutronix.de>

On Wed, May 02, 2018 at 12:42:24PM +0200, speck for Thomas Gleixner wrote:
> Here is at least a simple workaround for now:
> 
> # mkdir mail
> # mkdir speck
> # git format-patch -o mail -n --to speck@linutronix.de --thread --cover-letter v4.17-rc3..
> # emacs mail/0000-cover-letter.patch
> # speckify-gitmail -s "TEST" mail/ speck/
> Now send the mails from speck/ in the way you would send from mail/

Awesome. Looks like this worked for me! Here are two bug fixes (noticed
after seeing the results on the list), and a documentation expansion...


--- speckify-gitmail.orig	2018-05-02 18:00:54.000000000 -0700
+++ speckify-gitmail	2018-05-02 17:59:25.429715146 -0700
@@ -8,9 +8,10 @@
 #
 # mkdir mail
 # mkdir speck
-# git format-patch -o mail -n --to speck@linutronix.de --thread --cover-letter v4.17-rc3..
+# git format-patch -o mail -n --to speck@linutronix.de --subject-prefix "PATCH THE-THING" --thread --cover-letter v4.17-rc3..
 # emacs mail/0000-cover-letter.patch
 # speckify-gitmail -s "TEST" mail/ speck/
+# cd speck; for i in 0*.patch; do sendmail -t -i -f SENDER@EMAIL < $i; done
 #
 from argparse import ArgumentParser
 import argparse
@@ -53,7 +54,7 @@
 
 i = 0
 
-for f in infiles:
+for f in sorted(infiles):
     ibx = mailbox.mbox(os.path.join(args.indir, f), None, False)
     obx = mailbox.mbox(os.path.join(args.outdir, f), None, True)
 
@@ -84,7 +85,7 @@
             del msg['CC']
 
         content = 'From: %s\n' %mfrom
-        content += 'Subject: %s\n\n' %subj
+        content += 'Subject: %s] %s\n\n' %(prefix, subj.strip())
         content += msg.get_payload().encode()
         
         try:

-- 
Kees Cook                                            @outflux.net

      reply	other threads:[~2018-05-03  1:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-15 15:25 List changes Thomas Gleixner
2018-05-01 23:38 ` [MODERATED] " Kees Cook
2018-05-02  6:46   ` Thomas Gleixner
2018-05-02 10:42     ` Thomas Gleixner
2018-05-03  1:04       ` Kees Cook [this message]

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=20180503010421.GB6017@outflux.net \
    --to=kees@outflux.net \
    --cc=speck@linutronix.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.