<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>17538</bug_id>
          
          <creation_ts>2008-10-12 23:53:48 +0400</creation_ts>
          <short_desc>calls mailx from Firefox in a bad way</short_desc>
          <delta_ts>2010-11-24 08:10:37 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Distributions</classification>
          <product>Branch 4.0</product>
          <component>url_handler</component>
          <version>4.0</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="Dmitry V. Levin">ldv</assigned_to>
          <cc>kharpost</cc>
          
          <qa_contact name="Q.A. 4.0">qa-4.0</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>79522</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2008-10-12 23:53:48 +0400</bug_when>
    <thetext>url_handler-0.3.0-alt1

In Lite 4.0.3, if you press on a &quot;mailto&quot; link in Firefox, an undesirable thing happens: (only the last handler is available, it&apos;s mailx) mailx is not run in a terminal, so it has no input, and as a result, it even not merely fails, but rather sends some message (empty? or whatever -- that&apos;s not important) without your consent to send it.

Probably, that&apos;s either because the specification

&apos;/usr/bin/mailx --&apos;:VT

in /etc/urlview/url_handlers has un unsuitable mode (VT: Launch in the same terminal) or because the VT mode is not handled correctly in the script (it shouldn&apos;t be started if there is no interactive input).

The latter thing must be fixed: a VT program shouldn&apos;t be run with no interactive input: so either it should forcibly run in an xterm in such case, or it should simply fail.

As for the first thing, I don&apos;t know whether XT would indeed be a better mode for mailx.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79524</commentid>
    <comment_count>1</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2008-10-13 00:45:54 +0400</bug_when>
    <thetext>What happens:

$ mailx -v -- imz &lt; /dev/null
No message, no subject; hope that&apos;s ok
Mail Delivery Status Report will be mailed to &lt;imz&gt;.
$ 
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79525</commentid>
    <comment_count>2</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2008-10-13 00:49:30 +0400</bug_when>
    <thetext>One more possible workaround/solution/enhancement: call mailx in url_handlers in a forced interactive mode; then it will fail in such cases:

$ mailx -v -I -- imz &lt; /dev/null
mailx: tcgetattr: Inappropriate ioctl for device
$ 

But that won&apos;t solve the problem of sending mail from Firefox when no other mailers are available. So, there is still need for some modification, such that xterm will be used in such cases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79813</commentid>
    <comment_count>3</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2008-10-18 20:00:11 +0400</bug_when>
    <thetext>&lt;a href=&quot;mailto:imz@example.com&quot;&gt;An example link&lt;/a&gt; to press in Firefox (which generates an empty message).

Another way to reproduce: right click, and &quot;Send&quot; in the menu. It generates an empty message to nowhere. (See postfix logs.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115611</commentid>
    <comment_count>4</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2010-11-24 05:14:43 +0300</bug_when>
    <thetext>url_handler-0.3.1-alt1 -&gt; sisyphus:

* Wed Nov 24 2010 Dmitry V. Levin &lt;ldv@altlinux&gt; 0.3.1-alt1
- url_handler.sh: added &quot;mailto&quot; type autodetection (closes: #24627).
- url_handlers: changed mailx mode to XT (closes: #17538).
- url_handler.sh: treat BROWSER and MAILER environment variables as
  colon-separated lists without necessary full path (closes: #3482).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>