https://bugs.kde.org/show_bug.cgi?id=455847

            Bug ID: 455847
           Summary: mailto link doesn't attach file for some services
           Product: Skanpage
           Version: unspecified
          Platform: Neon Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: a.stipp...@gmx.net
          Reporter: a...@al-williams.com
  Target Milestone: ---

SUMMARY
***
When trying to send a scan, the program uses a mailto: link with a
file-attachment. It looks like some common mail setups don't honor this anymore
(especially web mail) presumably because it provides a way for someone to say
"click here" and then mail themselves some file off your system without you
noticing? 
***


STEPS TO REPRODUCE
1. Scan
2.  Send scan via e-mail
3.  Note that e-mail client pops up with no file attached

ADDITIONAL INFORMATION
As a silly work around, I have my e-mail application set to a file
(/usr/local/bin/gmail-stub) that looks like this:

 #!/bin/bash
 CMD=`echo $1 | sed s/attachment=file:../subject=Please+attach+/`
 exec xdg-open "https://mail.google.com/mail?extsrc=mailto&url=$CMD";

This works for everything normal (the sed misses everything) and if you have an
attachment you get a subject that says Please attach (file path). RFC2368 only
assures you that to/subject/body are understood
https://www.rfc-editor.org/rfc/rfc2368 -- I hear there is no more support in
several other e-mail programs, too.

My script is not ideal, but I'm trying to think of a better way to do this for
programs like skan. For example, copy the file to the clipboard so it could be
pasted?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to