From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84241 Path: news.gmane.org!not-for-mail From: Elias Oltmanns Newsgroups: gmane.emacs.gnus.general Subject: Externally feeding the drafts folder -- git format-patch integration Date: Sat, 22 Feb 2014 10:20:42 +0100 Message-ID: <87eh2v5wr9.fsf@denkblock.local> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1393081794 24876 80.91.229.3 (22 Feb 2014 15:09:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Feb 2014 15:09:54 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M32489@lists.math.uh.edu Sat Feb 22 16:10:01 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 1WHEDJ-0006Lv-2d for ding-account@gmane.org; Sat, 22 Feb 2014 16:10:01 +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 1WHECb-0005WP-7V; Sat, 22 Feb 2014 09:09:17 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1WH8lb-000415-Kj for ding@lists.math.uh.edu; Sat, 22 Feb 2014 03:21:03 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1WH8lZ-0004kR-Nx for ding@lists.math.uh.edu; Sat, 22 Feb 2014 03:21:02 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1WH8lY-0003MQ-1B for ding@gnus.org; Sat, 22 Feb 2014 10:21:00 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WH8lW-0005rn-TJ for ding@gnus.org; Sat, 22 Feb 2014 10:20:58 +0100 Original-Received: from xdsl-89-0-93-173.netcologne.de ([89.0.93.173]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 22 Feb 2014 10:20:58 +0100 Original-Received: from eo by xdsl-89-0-93-173.netcologne.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 22 Feb 2014 10:20:58 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 40 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: xdsl-89-0-93-173.netcologne.de User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:VVeIgjXkt3tT/lVfYALWIkGp21w= X-Spam-Score: -2.9 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84241 Archived-At: Hi there, my question is how best to sneak externally drafted e-mails into the gnus ecosystem in order to be able to post edit them, have them on file after sending them off, have the registry know all about it for splitting by parent etc. For example, I would like to smooth the way for patch reviewal and discussion. Ideally, the work flow would look similar to this: 1. Do some development in local git repository (using magit). 2. Generate a patch series from the local commits with a command like $ git format-patch --thread --cover-letter --to developer@example.org \ --cc devel@list.example.org --stdout > ~/Mail/git.spool 3. Fire up gnus and have the patch series stored in ~/Mail/git.spool magically appear in the drafts group so I can edit the cover letter and possibly annotate some of the other messages too before sending the off. 4. Replies to those e-mails should go to the corresponding devel folder by means of gnus-registry-split-fancy-with-parent. As you may have guessed, my setup is failing at step 3. My lain attempt was to put the following into my .gnus.el: (setq mail-sources '((file :plugged t) (file :path "~/Mail/git.spool" :plugged t))) ... (setq nnmail-split-fancy '(| ("x-gnus-mail-source" "git.spool" "nndraft:drafts") ... (: gnus-registry-split-fancy-with-parent) ... "INBOX")) Unfortunately, the contents git.spool ends up in a newly created (and masked) nnml directory nndraft:drafts under ~/Mail instead of the special drafts group. Do you have any suggestions how to achieve this or something similar? Thanks in advance for all hints, Elias