🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.vm.bug
Article #581

Re: Handling external content attachment names with space

#581
From: Joachim Schrod
Date: Sun, 09 Oct 2005 13:07
49 lines
3043 bytes
newsspam5REMOVETHIS@robf.de wrote:
> Joachim Schrod <jschrod@acm.org> writes:
>> My vm-mime-external-content-types-alist has the entry
>> ("application/pdf" "acroread")
>>
>> When an attachment name has spaces in it, acroread is called with several
>> arguments instead of one. Anybody got a patch already for that? Then I won't
>> have to look at the issue myself. ;-)
> 
> Have you Googled?
> 
> http://groups.google.com/groups?selm=400320B7.5060408%40yahoo.com
> http://groups.google.com/groups?selm=86hdyoc6n9.fsf%40robf.deREMOVETHIS

Yes, but obviously my search term was not good enough. This thread didn't appear 
on the first two pages. Thanks for the pointers, they remedy my problem.

>> Incidentially, that looks as if the external-content program is called via a
>> shell. Anybody knows why that is done or if it can be avoided? That behaviour
>> opens up issues of shell command insertions which would be more difficult if
>> the program is called directly.
> 
> It is called via 'start-process', which IMHO is not the shell.

But then one wouldn't need the quoting that is introduced in the first posting 
you refered to, above. If one just passes the attachment name as argument to 
start-process, it wouldn't be split at white space. Anyhow, it works this way; 
perhaps I'll check for the shell call when I have more time.

>> Also, while I'm at it: Sometimes, VM calls the external-content program for
>> application/pdf automatically when I look at a mail. I don't want my MUA to
>> call external programs automatically -- after all, I don't use Outlook
>> either. :-) Is that behaviour known? Can I prevent it?
> 
> It should not happen unless you have added application/pdf to
> vm-auto-displayed-mime-content-types, but if you did add it, then
> it should happen everytime.

No, application/pdf is not in that list. I'll try to construct an example and 
will come back to this newsgroup if I have more specific information.

Again, thanks a lot for the pointer to the patches.

	Joachim

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod				Email: jschrod@acm.org
Roedermark, Germany
Technical Details
Message-ID: <3qsj0pFgdv3eU1@individual.net>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <3qpr4kFfe6r4U1@individual.net> <85k6gn1z82.fsf@robf.de>

Show Full Headers
Complete Article Headers
X-Google-Thread: f6829,2d18889792627219
X-Google-Attributes: gidf6829,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Joachim Schrod <jschrod@acm.org>
Newsgroups: gnu.emacs.vm.bug
Subject: Re: Handling external content attachment names with space
Date: Sun, 09 Oct 2005 15:07:36 +0200
Lines: 49
Message-ID: <3qsj0pFgdv3eU1@individual.net>
References: <3qpr4kFfe6r4U1@individual.net> <85k6gn1z82.fsf@robf.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net kzmSm0mrWJkAs+Zflf+jkwU+nTqTFaBAJ8Di9Qh0Zsj0gs6ItZ
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041217
X-Accept-Language: en-us, en
In-Reply-To: <85k6gn1z82.fsf@robf.de>