<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - xdg-email: generic mode does nothing"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=92008">92008</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>xdg-email: generic mode does nothing
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Portland
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>xdg-utils
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>portland-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>pelle@debian.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=118280" name="attach_118280" title="xdg-email-try-xdg-open.patch">attachment 118280</a> <a href="attachment.cgi?id=118280&action=edit" title="xdg-email-try-xdg-open.patch">[details]</a></span>
xdg-email-try-xdg-open.patch

Currently, xdg-email only supports Thunderbird in generic mode. If
x-scheme-handler/mailto is assigned to something else, nothing happens, due to
the following code:

    echo $client | grep thunderbird > /dev/null 2>&1
    if [ $? -eq 0 ] ; then
        run_thunderbird "$client" "$1"
    fi

    if [ $? -eq 0 ]; then
        exit_success
    else
        exit_failure_operation_failed
    fi

Unless Thunderbird is the default mail client, the above code will always call
exit_success since the previous if statement will set $? to 0.

I have attached a patch that tries to call xdg-open instead. If xdg-open fails
to find an e-mail client, it falls through to the browser code.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>