From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/75181 Path: news.gmane.org!not-for-mail From: Rupert Swarbrick Newsgroups: gmane.emacs.gnus.general Subject: Re: Sending patch with Gnus Date: Fri, 17 Dec 2010 00:53:54 +0000 Message-ID: References: <871v5i212s.fsf@tux.homenetwork> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1292547318 14280 80.91.229.12 (17 Dec 2010 00:55:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 17 Dec 2010 00:55:18 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M23536@lists.math.uh.edu Fri Dec 17 01:55:14 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PTObJ-00022r-Km for ding-account@gmane.org; Fri, 17 Dec 2010 01:55:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PTOaL-0007kz-Al; Thu, 16 Dec 2010 18:54:13 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PTOaJ-0007ko-VY for ding@lists.math.uh.edu; Thu, 16 Dec 2010 18:54:11 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PTOaJ-00079r-0C for ding@lists.math.uh.edu; Thu, 16 Dec 2010 18:54:11 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PTOaI-0004rF-B1 for ding@gnus.org; Fri, 17 Dec 2010 01:54:10 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PTOaH-0001MJ-Qb for ding@gnus.org; Fri, 17 Dec 2010 01:54:09 +0100 Original-Received: from cpc2-cove3-0-0-cust910.3-1.cable.virginmedia.com ([86.20.35.143]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Dec 2010 01:54:09 +0100 Original-Received: from rswarbrick by cpc2-cove3-0-0-cust910.3-1.cable.virginmedia.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 17 Dec 2010 01:54:09 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 72 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cpc2-cove3-0-0-cust910.3-1.cable.virginmedia.com User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) X-Spam-Score: -1.0 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:75181 Archived-At: --=-=-= Content-Type: text/plain Francis Moreau writes: > > BTW, if you needn't to modify the patches and only want to see them > before sending them then you can currently do this: > > M-! git format-patch --stdout HEAD~4 >/tmp/patch-set.mbox > C-x b *Group* > G f /tmp/patch-set.mbox > > This will create a nndoc group which contains all your patches as > articles. > > Then you can mark all of them and resend them with 'S D r'. But you > can't add Cc or Gcc header fields with this method. ... so I just tried this on another project's mailing list. Problem: the result isn't threaded. My 'ideal method' at the moment (inspired by the above) works something like this (1) Hack and wrestle with git until you have a history you're willing for someone else to laugh at. (2) git format-patch --cover-letter --stdout master \ --to='foo@bar.com' --thread >tmp.mbox This creates the mbox as above, but also adds a dummy first email (patch 0/n) and says where to send it to (so you don't have to type it repeatedly in a bit). (3) Now open up the mbox file in emacs and edit the first email so it has a nice covering letter explaining why you're spamming the mailing list. (4) Now do 'G f tmp.mbox' from the *Group* buffer. If everything looks hunky-dory (and threaded!), do the 'S D r' thang. (5) Climb into your bunker before the flames land. Notes: Sadly nndoc doesn't let us just edit the mbox inside gnus, although I suppose I'm not sure how that would work. More sadly still (and possibly this is me being stupid?), if you realise something looks rubbish, the obvious approach of C-k killing the group, editing the mbox file and then doing G f again doesn't work, because Gnus cleverly caches the emails it seems (when I changed the number of emails I was getting the wrong ones!). Is there a way to tell gnus to completely forget about the group? Rupert --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iJwEAQECAAYFAk0KtKIACgkQRtd/pJbYVoYAKAP/bk+TE7UjrmkeAY7pwtykZko+ dxNX5Ss8rxhXzGKNALfjnh22Uxsf90z713q3olMTD9uKuhtDi5Gvw1db6gi7G0TU OcG1868NqQorIVSFypZkLBv++TB9cxuNbMYwSdNzQW1lFxsr+duL4jnS3CztXl00 6zbfJrQs6usKQqdQ44Q= =sUaE -----END PGP SIGNATURE----- --=-=-=--