From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84257 Path: news.gmane.org!not-for-mail From: Elias Oltmanns Newsgroups: gmane.emacs.gnus.general Subject: Re: Externally feeding the drafts folder -- git format-patch integration Date: Tue, 04 Mar 2014 17:25:29 +0100 Message-ID: <87wqga3p8m.fsf@denkblock.local> References: <87eh2v5wr9.fsf@denkblock.local> <87a9dceidf.fsf@lifelogs.com> <87k3cas0vs.fsf@yun.yagibdah.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1393950396 24008 80.91.229.3 (4 Mar 2014 16:26:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Mar 2014 16:26:36 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M32505@lists.math.uh.edu Tue Mar 04 17:26:44 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WKsB1-0004BM-HQ for ding-account@gmane.org; Tue, 04 Mar 2014 17:26:43 +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 1WKsAA-0006MD-3S; Tue, 04 Mar 2014 10:25:50 -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 1WKsA8-0006M1-PX for ding@lists.math.uh.edu; Tue, 04 Mar 2014 10:25:48 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1WKsA5-00026N-Kk for ding@lists.math.uh.edu; Tue, 04 Mar 2014 10:25:47 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1WKsA3-0006dt-KV for ding@gnus.org; Tue, 04 Mar 2014 17:25:43 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WKsA0-0003IX-BB for ding@gnus.org; Tue, 04 Mar 2014 17:25:40 +0100 Original-Received: from xdsl-89-0-111-139.netcologne.de ([89.0.111.139]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Mar 2014 17:25:40 +0100 Original-Received: from eo by xdsl-89-0-111-139.netcologne.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Mar 2014 17:25:40 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 51 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: xdsl-89-0-111-139.netcologne.de User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:jPd4upZQB+U8zKZaKgjpIq7JMIc= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84257 Archived-At: (2014-03-04) lee wrote: > Ted Zlatanov writes: >> On Sat, 22 Feb 2014 10:20:42 +0100 Elias Oltmanns wrote: >> >> ... EO> 2. Generate a patch series from the local commits with a command like EO> $ git format-patch --thread --cover-letter --to developer@example.org \ EO> --cc devel@list.example.org --stdout > ~/Mail/git.spool EO> 3. Fire up gnus and have the patch series stored in ~/Mail/git.spool EO> magically appear in the drafts group so I can edit the cover letter EO> and possibly annotate some of the other messages too before sending EO> the off. [...] > You can use (setq gnus-agent-queue-mail 'always) to queue all outgoing > messages in the draft folder. Insert messages into gnus with the > following function (which you can put into ~/.emacs"): [...] > Then call emacsclient like: > > > emacsclient -e '(my-gnus-group-mail "example.group")' > > > Gnus should be running before you call above function. > > When you use a posting style for "example.group" that involves something > like (body :file "~/example-group-template.txt"), you can create an > email from the command line or from a script to pull in your patch as an > attachment. You get a buffer to edit the mail, so you donīt need to > queue up all outgoing mail. Of course, you could also point to the > patch file rather than a template that includes it as an attachment to > have the patch directly in the message. Thank you ever so much for this starter. It certainly looks very promising and I'll see how far I get once I've taken the time to wrap my head around things. [...] > This works fine, though gnus should have some way to automatically send > messages from a script/command line, optionally allowing you to edit the > message before sending it out. The way Iīm doing it is going to some > lengths to get there. We shouldnīt need to use mutt or the like to > generate messages which we Cc: or Bcc: to ourselves to get them into > gnus, especially not when we use emacs to edit them before sending them > anyway ... My thoughts, precisely! Thanks again, Elias