<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - LO Send by email fails in Writer / Calc / Impress"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=116211#c17">Comment # 17</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - LO Send by email fails in Writer / Calc / Impress"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=116211">bug 116211</a>
              from <span class="vcard"><a class="email" href="mailto:bernard.moreton@gmail.com" title="Bernard Moreton <bernard.moreton@gmail.com>"> <span class="fn">Bernard Moreton</span></a>
</span></b>
        <pre>6.3.0.4 includes most of the changes I suggested, but still fails to operate
properly - it switches the focus to the email client, but fails to create a new
email.

I thnk the problem may be at senddoc line 293,
MAILTO="${MAILTO:-}${MAILTO:+&}attach="$(echo "file://$2" | "${URI_ENCODE}")

My email client (Claws-mail) fails to handle the "file://" syntax, as do some
other email clients.

My suggestion (lines 269-276 of my proposed revision) was to omit the file://
(at least for xdg-email), so that the command then is
MAILTO="${MAILTO:-}${MAILTO:+&}attach="$(echo "$2" | "${URI_ENCODE}")

That then works;  though I found it advisable to omit the ampersand in the mail
command (can't immediately remember why, sorry!), so that that command became
simply
${MAILER} "${MAILTO}"

Version: 6.3.0.4
Build ID: 1:6.3.0-0ubuntu0.18.04.1~lo2
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: en-GB (en_GB.UTF-8); UI-Language: en-GB
Calc: threaded</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>