From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc2) Gecko/20020510
While trying to configure Code Weavers Crossover plugins, I discovered a mailcap
entry similar to the following won't work:
test=test "$DISPLAY" != ""; \
Any command with an argument merely executes the command and the file name. No
arguments are passed. Even "echo %s > /dev/null" doesn't work.
As a workaround, you can write a script for every mailcap entry that includes
the correct arguments to the program given the filename. However, with the
typical number of entries in a mailcap, this is very suboptimal.
Steps to Reproduce:
1.make an entry in /etc/mailcap: "application/msword; echo "the file is %s";"
(or anything else that isn't just %s)
2.in the current dir, type "touch test.doc"
3.start Mozilla with "mozilla &"
4.go to "File->Open File...
5.Choose "all files" under "files of type" dropdown
6.Select "test.doc", click "open"
7.Select "open the file with echo"
8."whateverdir/test.doc" is printed everytime. replace echo with whatever you
want, and it always ignores the arguments
Actual Results: "/home/jason/test.doc" was echoed to my terminal
Expected Results: "the file is test.doc" should have been echoed to my terminal
While searching the net to find an answer, I came upon several instances of the
"x-mozilla-flag" mailcap option, but I can find no documentation listing all the
options and what they mean. Might be nice to add that somewhere.
*** This bug has been marked as a duplicate of 52441 ***
This is actually bug 83305, but marking verified in the interests of minimizing
I hope to get to implementing this sometime this July.