← Back to team overview

touch-packages team mailing list archive

[Bug 1494496] [NEW] mailcap entry for application/pdf needs quote marks

 

Public bug reported:

The entry for application/pdf in my /etc/mailcap reads as follows:

application/pdf; evince '%s'; test=test -n "$DISPLAY";
nametemplate=%s.pdf

If I try to open an attachment called "two words.pdf" (with a space in
the name) in my mail client (mutt), I get two evince windows with
errors. One says "Unable to open document “file:///home/slucy/two” and
the other says "Unable to open document “file:///home/slucy/words.pdf”".

If I change the mailcap line to include single quotes around the %s.pdf
as below, mutt can successfully open a pdf attachment with a space in
the name:

application/pdf; evince '%s'; test=test -n "$DISPLAY";
nametemplate='%s.pdf'

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: mime-support 3.54ubuntu1.1
ProcVersionSignature: Ubuntu 3.13.0-62.102-generic 3.13.11-ckt24
Uname: Linux 3.13.0-62-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.12
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Sep 10 16:24:08 2015
EcryptfsInUse: Yes
InstallationDate: Installed on 2013-07-05 (797 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
PackageArchitecture: all
SourcePackage: mime-support
UpgradeStatus: Upgraded to trusty on 2014-04-24 (504 days ago)

** Affects: mime-support (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug trusty

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to mime-support in Ubuntu.
https://bugs.launchpad.net/bugs/1494496

Title:
  mailcap entry for application/pdf needs quote marks

Status in mime-support package in Ubuntu:
  New

Bug description:
  The entry for application/pdf in my /etc/mailcap reads as follows:

  application/pdf; evince '%s'; test=test -n "$DISPLAY";
  nametemplate=%s.pdf

  If I try to open an attachment called "two words.pdf" (with a space in
  the name) in my mail client (mutt), I get two evince windows with
  errors. One says "Unable to open document “file:///home/slucy/two” and
  the other says "Unable to open document
  “file:///home/slucy/words.pdf”".

  If I change the mailcap line to include single quotes around the
  %s.pdf as below, mutt can successfully open a pdf attachment with a
  space in the name:

  application/pdf; evince '%s'; test=test -n "$DISPLAY";
  nametemplate='%s.pdf'

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: mime-support 3.54ubuntu1.1
  ProcVersionSignature: Ubuntu 3.13.0-62.102-generic 3.13.11-ckt24
  Uname: Linux 3.13.0-62-generic x86_64
  ApportVersion: 2.14.1-0ubuntu3.12
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Thu Sep 10 16:24:08 2015
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2013-07-05 (797 days ago)
  InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
  PackageArchitecture: all
  SourcePackage: mime-support
  UpgradeStatus: Upgraded to trusty on 2014-04-24 (504 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mime-support/+bug/1494496/+subscriptions