From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 17 12:49:22 2010 Received: (at submit) by debbugs.gnu.org; 17 Feb 2010 17:49:22 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nho1Z-0006Gl-DY for submit@debbugs.gnu.org; Wed, 17 Feb 2010 12:49:21 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nhnw3-0006Ce-Kh for submit@debbugs.gnu.org; Wed, 17 Feb 2010 12:43:40 -0500 Received: from mail.gnu.org ([199.232.76.166]:37480 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nhnvz-0006aq-2O for submit@debbugs.gnu.org; Wed, 17 Feb 2010 12:43:35 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nhnvx-0008UK-LV for submit@debbugs.gnu.org; Wed, 17 Feb 2010 12:43:35 -0500 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,INFO_TLD, UNPARSEABLE_RELAY autolearn=no version=3.1.0 Received: from lists.gnu.org ([199.232.76.165]:43602) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Nhnvx-0008U9-F1 for submit@debbugs.gnu.org; Wed, 17 Feb 2010 12:43:33 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nhnvw-0001rZ-NP for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2010 12:43:32 -0500 Received: from [140.186.70.92] (port=32955 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nhnvv-0001r1-Lh for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2010 12:43:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NhnJU-00069O-8L for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2010 12:03:51 -0500 Received: from coquelicot-s.easter-eggs.com ([213.215.37.94]:56228) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NhnJT-000698-RF for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2010 12:03:48 -0500 Received: from cigue.easter-eggs.fr (cigue.easter-eggs.fr [10.0.0.33]) by rose.easter-eggs.fr (Postfix) with ESMTPS id 0FD40141E1 for ; Wed, 17 Feb 2010 18:03:39 +0100 (CET) Received: from jdanjou by cigue.easter-eggs.fr with local (Exim 4.71) (envelope-from ) id 1NhnJQ-0000JF-MJ for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2010 18:03:44 +0100 From: Julien Danjou To: bug-gnu-emacs@gnu.org Subject: 23.1; Add optional cmd arguments to mm pipe Date: Wed, 17 Feb 2010 18:03:41 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 17 Feb 2010 12:49:21 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Attached is a patch to add optional command argument to mime part piping functions. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=gnus-mime-pipe.patch Content-Transfer-Encoding: quoted-printable Content-Description: gnus patch # Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: julien@danjou.info-20100217163450-8uxnn22svu8y6v8p # target_branch: http://bzr.savannah.gnu.org/r/emacs/trunk/ # testament_sha1: c69df82004749958febdc3c978f83c8274857efa # timestamp: 2010-02-17 17:37:22 +0100 # base_revision_id: lekktu@gmail.com-20100214173409-8wkin7zb3gijhq8g #=20 # Begin patch =3D=3D=3D modified file 'lisp/gnus/gnus-art.el' =2D-- lisp/gnus/gnus-art.el 2010-01-13 08:35:10 +0000 +++ lisp/gnus/gnus-art.el 2010-02-17 16:34:50 +0000 @@ -4974,13 +4974,14 @@ (when data (mm-save-part data)))) =20 =2D(defun gnus-mime-pipe-part () =2D "Pipe the MIME part under point to a process." +(defun gnus-mime-pipe-part (&optional cmd) + "Pipe the MIME part under point to a process. +Use CMD as the process." (interactive) (gnus-article-check-buffer) (let ((data (get-text-property (point) 'gnus-data))) (when data =2D (mm-pipe-part data)))) + (mm-pipe-part data cmd)))) =20 (defun gnus-mime-view-part () "Interactively choose a viewing method for the MIME part under point." =3D=3D=3D modified file 'lisp/gnus/mm-decode.el' =2D-- lisp/gnus/mm-decode.el 2010-01-13 08:35:10 +0000 +++ lisp/gnus/mm-decode.el 2010-02-17 16:34:12 +0000 @@ -1292,12 +1292,13 @@ (mm-write-region (point-min) (point-max) file nil nil nil 'binary t) (set-default-file-modes current-file-modes))))) =20 =2D(defun mm-pipe-part (handle) =2D "Pipe HANDLE to a process." +(defun mm-pipe-part (handle &optional cmd) + "Pipe HANDLE to a process. +Use CMD as the process." (let* ((name (mail-content-type-get (mm-handle-type handle) 'name)) =2D (command =2D (gnus-read-shell-command =2D "Shell command on MIME part: " mm-last-shell-command))) + (command (or cmd + (gnus-read-shell-command + "Shell command on MIME part: " mm-last-shell-command)))) (mm-with-unibyte-buffer (mm-insert-part handle) (mm-add-meta-html-tag handle) # Begin bundle IyBCYXphYXIgcmV2aXNpb24gYnVuZGxlIHY0CiMKQlpoOTFBWSZTWfrwwj0AAxffgFgwUWP/935n SgC////wUAX48HFKENV0FAA4SVTQaaNAZGagADQAAAACShMFPVPekmIp4oMmTQAAAZABKIEak9Q8 UeptNTymgB6mnqNpAGmgBzAATJgATCYJhDAEYAEkQpjQCaABPU0aI1NMhpoHkgyRIJAgLgUUVcJN kYMZ611fB7llhY+k3BgNcObWUIBsGkJ5XjovUmcWvqQKnKpc01TPWGWo1GcUVQVTX6IUyvJRaloU ncrGOZIjaXuKV3pwmrJzrNms+jLGk9fsVTnshByCm58R6yoiA3cSrDmY9eT7MTYazOvDR6CjGo7R EP5sdTycZvEmXODn+CmXh6n9rikskGkWaooNHI2jxPqaBcERYYpJdC6mARK61TJMXJBibbq5O7zk gmyNx4CYe/rAEXC8SDgigiwg7ECBzcTd5Y8N/kaCokrSYvdAUERR2sdZa1SRTmGyRbEfZyKRj1ji AIb1FjiHLzGBYVN1SgplDDG6B1hgpOg1yJA944T3m8Wikchh6S1wSTLIZ3kst6zkKC1KlwYen17b oCLKBC2GwWU9ggrI8ROOXE1RWPQMsHJcNNUGaraQqzeK0ztsElqkpUIP1LE6jsJjaYkeW5jXjFMg yq0srmKcri2PQPTCuT4FhMWxKRUObpj8NM02i9F9xBgpDGxtML7MGpAgWLEvRw5ZSrWOs4ldPOTz Tv0LqFLbhbJx3Xw0SVx5EaPchtK9KBpmmZqQRjuwdcqdSD+HSLTjnQcQmbEllA4QWoiUnOoaFzDN 0zaYCkQ242rKEsxc6aWOyDotZlcxMC9B0uahYnsW6JcgTTshz2ry8HJdCD/hMg8RWKnFVircuYXA w1aExjpc1ZvIpmjUEDVBrRznbGE49qpyHVmh5jbS8iYjUEkQRaRCA4mKCkfQFSVFQx7wrKbBsR24 MzO28+ZFAbFmfxyK6mGEw3y7HqezHtKMD5+p7ET2xVZqKsRQNOhyEpWNAtzSF423+5MbCQ5+U3TF EelAYqUkSIsO9AVViMhhelY8D3Uqhj079mG3Um7eetzRGBfe0gETQJcIQLbYRcYOiZcjW3Xw0hxG eKmYJkwXP6RT3FByQcZhU3IviQbRr6EsLxtfxKkbOdQtsSBwXhAP4i0xPQPkJMm1LoNThzaQiYwb vxyMNCdLlEbofrRtvg/YePm/E8MuxaYczzGHMCpKgs02aC7FZwFw7iwDMsycY11HAwXgKW6w673K b+JAMl4HNAbzaHYTCq4Dcb7yktCoKQKROb9fK/iHPULyWvfRVzmQIcgccWAfU6HidBAy4Biai/Nm Aa9QOyPeqTx/SEjscT7IG6AUc1f/sTYgoXiagG08Oj5EfRRiJASjCGRMVkWAkhDzET8qAo1ehtJG wCoP+Pcj0AtN5oMs0HVbkBmZjXAw4zruWa5JdFtXALICYrTgWgQHA59UHTQKxfFAVULcQPggmcls RggzKRlAXejIHLSwrLSAYEjXmu64W2LkyoKoTGDcKCcvQDCmUARS0PEgILCCA+4sRRpBMwsRDi65 gySpFkGSaB8DOKRfSC/EoX2ImytLsVonAXRBl5IDuRxJ7xhhaUOQDBKVBJEp7nCkkG8XNPw3VDBB LabyMhFJ0JhQQIlPfFFoZQckIkSQOMXCyB6HIEj7klxGnaMFY5kA5MO9hu9BMVrFIHyFzCLbEzGD hAgZg8RyZkExlIvpJhkEgqSmlJhXngszaKaAkeQrlp5oDodRi66kDoLyF8hQFuAkLMsNJSuSDoFc DnFUW8UhcfSqqJmf8XckU4UJD68MI9A=3D --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable It's useful to pipe mime part in Gnus to subprocess without entering it manually. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/share/emacs/23.1/etc/DEBUG for instructions. In GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.6) of 2010-02-17 on cigue, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.10704000 configured using `configure '--build=3Dx86_64-linux-gnu' '--host=3Dx86_64-= linux-gnu' '--prefix=3D/usr' '--sharedstatedir=3D/var/lib' '--libexecdir=3D= /usr/lib' '--localstatedir=3D/var/lib' '--infodir=3D/usr/share/info' '--man= dir=3D/usr/share/man' '--with-pop=3Dyes' '--enable-locallisppath=3D/etc/ema= cs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emac= s/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr= /share/emacs/23.1/leim' '--with-x=3Dyes' '--with-x-toolkit=3Dgtk' '--with-t= oolkit-scroll-bars' 'build_alias=3Dx86_64-linux-gnu' 'host_alias=3Dx86_64-l= inux-gnu' 'CFLAGS=3D-DDEBIAN -g -O2' 'LDFLAGS=3D-g' 'CPPFLAGS=3D'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: fr_FR.UTF-8 value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Group Minor modes in effect: gnus-undo-mode: t iswitchb-mode: t show-paren-mode: t global-hl-line-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-s a w e s o m e =20 =20 =20 =20 =20 =20 M-x j d : g n u q ; =20 d =20 n n ; n n =20 M-x r e p o r Recent messages: Retrieving newsgroup: nnimap+Naquadah:lists.freedesktop.xdg... Opening nnimap server on Naquadah...done nnimap: Updating info for nnimap+Naquadah:lists.freedesktop.xdg...done Fetching headers for nnimap+Naquadah:lists.freedesktop.xdg...done Generating summary...done Unknown symbol: , Exiting summary buffer and applying spam rules nnimap: Setting marks in lists.freedesktop.xdg...done No more unread newsgroups Auto-saving... =2D-=20 Julien Danjou // =E1=90=B0 http://julien.danjou.info --=-=-=-- --==-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkt8IW4ACgkQpGK1HsL+5c230ACcDLfKCX4IidFbaLyFLCkQJuq5 EN0AoKns1wvRbGIT1EK7E7cm17HktDIy =cIkL -----END PGP SIGNATURE----- --==-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 17 15:59:38 2010 Received: (at control) by debbugs.gnu.org; 17 Feb 2010 20:59:38 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nhqzh-000084-SM for submit@debbugs.gnu.org; Wed, 17 Feb 2010 15:59:38 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nhqzf-00007w-Gj for control@debbugs.gnu.org; Wed, 17 Feb 2010 15:59:35 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1Nhqzb-0003eO-2f; Wed, 17 Feb 2010 15:59:31 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19324.22706.937668.209688@fencepost.gnu.org> Date: Wed, 17 Feb 2010 15:59:30 -0500 From: Glenn Morris To: control Subject: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: black X-Ran: FR;Vu1+&t0bG<#uuz'=*Y^U5ybZUW.^jMpO~6mB7Gz%y)*.CfF0@$11cAZ0"]!!FW|3,K\ X-Debbugs-No-Ack: yes X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.0 (-----) severity 5580 minor reassign 5581 emacs,gnus reassign 5583 emacs,ns severity 5583 important reassign 5585 emacs,cc-mode severity 5587 wishlist tags 5587 moreinfo severity 5589 wishlist tags 5589 wontfix reassign 5590 emacs,gnus severity 5590 wishlist tags 5590 patch From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 10 20:35:13 2010 Received: (at 5590-done) by debbugs.gnu.org; 11 Sep 2010 00:35:13 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OuE3k-0006lg-Vv for submit@debbugs.gnu.org; Fri, 10 Sep 2010 20:35:13 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OuE3i-0006lZ-Ei for 5590-done@debbugs.gnu.org; Fri, 10 Sep 2010 20:35:11 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OuE5o-0001Qr-8G; Fri, 10 Sep 2010 20:37:20 -0400 To: 5590-done@debbugs.gnu.org Subject: Re: bug#5590: Add optional cmd arguments to mm pipe From: Glenn Morris X-Spook: Watergate NATO CESID CISU MD2 Downing Street pink noise X-Ran: "8\Bgi User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.2 (-----) X-Debbugs-Envelope-To: 5590-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.2 (-----) Version: 24.1 Looks like this was installed in Gnus 2010-05-07. (It would be great if people could follow-up on Gnus issues reported to bug-gnu-emacs if they get resolved, so that the reports can be closed.) From unknown Fri Jun 20 07:17:23 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 09 Oct 2010 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator