From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mta.outflux.net ([2001:19d0:2:6:c0de:0:736d:7471] helo=smtp.outflux.net) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fE2fd-0005Yx-4j for speck@linutronix.de; Thu, 03 May 2018 03:04:30 +0200 Received: from www.outflux.net (serenity.outflux.net [10.2.0.2]) by vinyl.outflux.net (8.15.2/8.15.2/Debian-3) with ESMTP id w4314LHg003613 for ; Wed, 2 May 2018 18:04:21 -0700 Date: Wed, 2 May 2018 18:04:21 -0700 From: Kees Cook Subject: [MODERATED] Re: List changes Message-ID: <20180503010421.GB6017@outflux.net> References: <20180501233800.GA32640@outflux.net> MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: 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