[Bug 462256] New: alpine: bad URL-Viewers in default configuration
https://bugzilla.novell.com/show_bug.cgi?id=462256 Summary: alpine: bad URL-Viewers in default configuration Product: openSUSE 11.1 Version: Final Platform: i686 OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: andrei.gaponenko@cern.ch QAContact: qa@suse.de Found By: Community User Hello, In the default configuration (empty "url-viewers" string in pinerc) alpine uses "w3m -dump _URL_" as the viewer. The "--dump" option causes w3m to dump the formatted page to the terminal and exit immediately, so that its output is hidden in a fraction of a second by alpine's display of the original e-mail message. How to reproduce: install alpine-2.00-3.5 from openSUSE-11.1-Oss. Set up INBOX path to something suitable so that you can access e-mails. Open an e-mail that contains an URL. When the URL is highlighted on the screen, press "Enter". Observe the prompt "View selected URL .... ?". Press "A" to "edit the application". Observe: "Viewer Command: w3m -dump _URL_" Press "Enter" to accept. Observe that the default setting does not let you to read the web page. The --dump switch should be removed. Even better, set up the default to something nicer, like url-viewers=_TEST("test -n '${DISPLAY}'")_ /usr/bin/firefox /usr/bin/w3m Regards, Andrei -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=462256 Stephan Binner <stbinner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.provo.novell.com |max@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=462256 User max@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=462256#c1 Reinhard Max <max@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |chappa@washington.edu Status|NEW |ASSIGNED Priority|P5 - None |P4 - Low --- Comment #1 from Reinhard Max <max@novell.com> 2009-01-08 07:33:59 MST --- The default comes from the text/html entry in /etc/mailcap, which pine uses when no url-viewers have been specified. This is not really correct, as that entry only means "a program that is able to display a HTML document" rather than "a web browser". I think I'll fix it by adding an /etc/pinerc to the package next time I touch it and put some browser finding magic in there. But the misinterpretation of text/html being a web browser should also be fixed upstream. Eduardo, what do you think? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=462256 User chappa@washington.edu added comment https://bugzilla.novell.com/show_bug.cgi?id=462256#c2 --- Comment #2 from Eduardo Chappa <chappa@washington.edu> 2009-01-23 22:30:42 MST --- (In reply to comment #1)
The default comes from the text/html entry in /etc/mailcap, which pine uses when no url-viewers have been specified. This is not really correct, as that entry only means "a program that is able to display a HTML document" rather than "a web browser".
Here is a question. What is a mailcap entry supposed to do with a ".doc" file? Display its contents or also let you interact with the content? If you think it is the first, then antiword is your friend. Otherwise, openoffice is your friend. Similarly, what is the correct behavior to open a text/html file? If the intent is that the mailcap entry be only a viewer of the content, then no entry should let you interact with the displayed content (e.g. the image viewer should be in read-only mode, etc.) I do not know what the policy in SuSe is, but it seems to me that as long as it is consistently used, there is no problem. The code in Alpine assumes that the html viewer is more than that, that you also want to interact with the content (e.g. follow links in that content)
I think I'll fix it by adding an /etc/pinerc to the package next time I touch it and put some browser finding magic in there.
That is certainly one way to solve this issue. It seems reasonable, given the circumstances. -- Eduardo -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=462256 User andrei.gaponenko@cern.ch added comment https://bugzilla.novell.com/show_bug.cgi?id=462256#c3 --- Comment #3 from Andrei Gaponenko <andrei.gaponenko@cern.ch> 2009-01-24 00:25:21 MST --- Hi Eduardo, The problem I saw was not a lack of interaction with the content. I was unable to *view* URLs, because once a formatted page was dumped on the console the "viewer" exited and alpine immediately redrew the screen. Andrei -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=462256 User chappa@washington.edu added comment https://bugzilla.novell.com/show_bug.cgi?id=462256#c4 --- Comment #4 from Eduardo Chappa <chappa@washington.edu> 2009-01-24 01:27:37 MST --- (In reply to comment #3)
Hi Eduardo,
The problem I saw was not a lack of interaction with the content. I was unable to *view* URLs, because once a formatted page was dumped on the console the "viewer" exited and alpine immediately redrew the screen.
Yes. The problem is that Alpine expects the viewer to take control of the screen. In this case, the viewer exits, so Alpine is returned control of the screen. This is normal. What SuSe should have done is what you suggested in an earlier message, but apparently they have other reasons to not to do what seems the obvious thing. Nevertheless, and entry in /etc/pinerc would solve this problem. -- Eduardo -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=462256 User max@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=462256#c5 --- Comment #5 from Reinhard Max <max@novell.com> 2009-01-26 02:43:11 MST --- (In reply to comment #2)
The code in Alpine assumes that the html viewer is more than that, that you also want to interact with the content (e.g. follow links in that content)
I understand your point about display vs. interaction, but URLs add another dimension to this. /etc/mailcap is about files that are already stored on the local machine (see the definition of %s in mailcap(4) as being the name of a file that contains the actual content to be displayed) and whose file format is known. In contrast, a URL describes a way to fetch the content, and you won't know the file format until you fetch at least the header (in case of HTTP). So, I still think alpine is wrong in assuming that a program that is specified as being able to display (or edit) a local HTML document is also able to retrieve and display the content behind arbitrary URLs. (In reply to comment #4)
The problem is that Alpine expects the viewer to take control of the screen.
Alpine should not expect this for mailcap entries that have the "copiousoutput" flag set. Those should be treated like a filter and alpine should take care of catching the output and presenting it to the user. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=462256 User chappa@washington.edu added comment https://bugzilla.novell.com/show_bug.cgi?id=462256#c6 --- Comment #6 from Eduardo Chappa <chappa@washington.edu> 2009-01-31 09:18:11 MST --- (In reply to comment #5)
(In reply to comment #2)
The code in Alpine assumes that the html viewer is more than that, that you also want to interact with the content (e.g. follow links in that content)
I understand your point about display vs. interaction, but URLs add another dimension to this. /etc/mailcap is about files that are already stored on the local machine (see the definition of %s in mailcap(4) as being the name of a file that contains the actual content to be displayed) and whose file format is known. In contrast, a URL describes a way to fetch the content, and you won't know the file format until you fetch at least the header (in case of HTTP).
I agree with you 100%, but that does not mean that I endorse your conclusions, because there are other considerations to take into account. The "-dump" option does not allow the user to interact with the content. If you go through the mailcap file in SuSe you will see that many entries do allow interaction with the content (not just display). Probably it would be good to know why SuSe did not allow the user to interact with the content, and just parse it. One way to solve this issue is to eliminate the "-dump" from there. Maybe you can find out why it is there, and why SuSe will not eliminate it. That I would be interested to know.
So, I still think alpine is wrong in assuming that a program that is specified as being able to display (or edit) a local HTML document is also able to retrieve and display the content behind arbitrary URLs.
That I agree in principle, but practice is so different. Do you know any program that only displays html files that does not let you interact with them? (or for that matter a program that displays pictures that does not let you edit them? - well answering my own question, a web browser, but that is not what SuSe adds to the mailcap file). It's not a black or white issue. I would like to know what motivated SuSe to add the -dump option to w3m. That is more to the point of this discussion. -- Eduardo -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com