From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/69811 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.gnus.general Subject: Re: Display OpenOffice Writer files inline with odt2txt] Date: Thu, 15 Jul 2010 16:25:27 +0200 Message-ID: References: <60011.83.149.8.170.1279179745.squirrel@mail.hcoop.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1279204032 30274 80.91.229.12 (15 Jul 2010 14:27:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 15 Jul 2010 14:27:12 +0000 (UTC) Cc: ding@gnus.org To: "JJ" Original-X-From: ding-owner+M18201@lists.math.uh.edu Thu Jul 15 16:27:11 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 1OZPP2-0004fm-OS for ding-account@gmane.org; Thu, 15 Jul 2010 16:27:09 +0200 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 1OZPO3-0000F9-Iz; Thu, 15 Jul 2010 09:26:07 -0500 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 1OZPO2-0000Ey-Cu for ding@lists.math.uh.edu; Thu, 15 Jul 2010 09:26:06 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1OZPNv-0005uK-Se for ding@lists.math.uh.edu; Thu, 15 Jul 2010 09:26:06 -0500 Original-Received: from mail-out.m-online.net ([212.18.0.9]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1OZPNv-0001ly-00 for ; Thu, 15 Jul 2010 16:25:59 +0200 Original-Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id B75C91C15D1F; Thu, 15 Jul 2010 16:25:28 +0200 (CEST) Original-Received: from igel.home (ppp-88-217-126-89.dynamic.mnet-online.de [88.217.126.89]) by mail.mnet-online.de (Postfix) with ESMTP id 936AD1C00212; Thu, 15 Jul 2010 16:25:28 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 501) id 26D2ACA297; Thu, 15 Jul 2010 16:25:28 +0200 (CEST) X-Yow: If our behavior is strict, we do not need fun! In-Reply-To: <60011.83.149.8.170.1279179745.squirrel@mail.hcoop.net> (JJ's message of "Thu, 15 Jul 2010 03:42:25 -0400 (EDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:69811 Archived-At: "JJ" writes: > Using the setup: > > (add-to-list 'mm-inlined-types "application/vnd.oasis.opendocument.text") > (add-to-list 'mm-inline-media-tests > '("application/vnd.oasis.opendocument.text" > (lambda (handle) > (mm-inline-render-with-stdin handle nil "odt2txt")) > identity)) > > doesn't work, as odt2txt doesn't work with standard input, i.e. `odt2txt > file.odt' works, but `cat file.odt | odt2txt' just displays odt2txt's > help which is what gets displayed inline when using the above setup. > > I'm not sure how to pass the mime attachment directly to odt2txt and not > through standard input as mm-inline-render-with-stdin seems to be doing. Have you tried mm-inline-render-with-file? Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."