Send by email

Bug #340762 reported by Thomas Queste
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Shutter
Fix Released
Wishlist
Mario Kemper (Romario)

Bug Description

Plugin for send an email with the screenshot attached to it directly from the Shutter.

Revision history for this message
Vadim Peretokin (vperetokin) wrote : Re: [Bug 340762] [NEW] Plugin idea : send by email

Good idea.

I'm not sure how to accomplish though - is there a standard protocol for
opening the user's email client and adding an email as an attachment...

Revision history for this message
Mario Kemper (Romario) (mario-kemper) wrote : Re: Plugin idea : send by email

You can use xdg-email (terminal app) for example.

Changed in shutter:
milestone: none → 0.90
Revision history for this message
Mario Kemper (Romario) (mario-kemper) wrote :

We should add this to core (title edited).

summary: - Plugin idea : send by email
+ Send by email
Revision history for this message
José Borges Ferreira (underspell) (jose-ferreira) wrote :

Hi!
I've added this in the Menu bar and added a shortcut ctrl-shift-E.

Was tested in Ubunto 9.04 and 9.10 and feel free to consider it.
<j/>

PS: also changed

-use File::Basename qw / fileparse dirname /;
+use File::Basename qw/ fileparse dirname /;

because it borked the vim parser :p

Revision history for this message
Vadim Peretokin (vperetokin) wrote : Re: [Bug 340762] Re: Send by email

Thanks a ton!

On Nov 10, 2009 7:15 AM, "José Borges Ferreira (underspell)" <
<email address hidden>> wrote:

Hi!
I've added this in the Menu bar and added a shortcut ctrl-shift-E.

Was tested in Ubunto 9.04 and 9.10 and feel free to consider it.
<j/>

PS: also changed

-use File::Basename qw / fileparse dirname /;
+use File::Basename qw/ fileparse dirname /;

because it borked the vim parser :p

** Attachment added: "Patch to add "email this screenshot" option"
  http://launchpadlibrarian.net/35471551/shutter-email2.diff

--
Send by email
https://bugs.launchpad.net/bugs/340762
You received this bug notification because you are a member of Shutter
Team, which is subscribed to Shutter.

Changed in shutter:
milestone: 0.90 → 0.85
assignee: nobody → Mario Kemper (Romario) (mario-kemper)
importance: Undecided → Wishlist
status: New → Fix Committed
Changed in shutter:
status: Fix Committed → Fix Released
Revision history for this message
nomnex (nomnex) wrote :

Shutter 0.85.1 - Karmic 9.04 & 9.10
This bug 'send by email' affects me too on Evolution

"Cannot attach file %2Fhome%2usert%2FPictures%2FShutter%2Fxxxx%202009-12-15%2015%3A29%3A15.png: No such file or directory"

Revision history for this message
José Borges Ferreira (underspell) (jose-ferreira) wrote :

Hi!

That's neither a Shutter nor Evolution bug.
Apparently xdg-email is url_encond'ing the filenames.

This patch solves issue.

José Borges Ferreira <email address hidden>

Revision history for this message
nomnex (nomnex) wrote :

@Jose

Thank you. How to I install the patch. I am familiar with bash basic commands, but I have never installed a patch.

Revision history for this message
José Borges Ferreira (underspell) (jose-ferreira) wrote :

Hi!

This is a patch for shutter 0.85.1. Default shutter on Karmic Koala is 0.80.1.

To apply just download the file, open a terminal and type "sudo patch < /path/to/downloaded/shutter.diff" ( without the quotes and with corrected path to the downloaded patch file ).
If it ask for a filename , put "/usr/bin/shutter".

<j/>

Revision history for this message
nomnex (nomnex) wrote :

Thank you for the instructions. What about the newer shutter releases.
Will we still need the patch?

On Wed, 2009-12-16 at 11:16 +0000, José Borges Ferreira (underspell)
wrote:
> Hi!
>
> This is a patch for shutter 0.85.1. Default shutter on Karmic Koala is
> 0.80.1.
>
> To apply just download the file, open a terminal and type "sudo patch < /path/to/downloaded/shutter.diff" ( without the quotes and with corrected path to the downloaded patch file ).
> If it ask for a filename , put "/usr/bin/shutter".
>
> <j/>
>
--
nomnex <Marc>
Tel. +81 90 2106 1720
Tel. <email address hidden>

Revision history for this message
Mario Kemper (Romario) (mario-kemper) wrote :

@José Borges Ferreira (underspell) : I know you've used the 'mailto:' syntax in you initial patch and I've used xdg-email instead when implementing it. I didn't know that it was broken in earlier versions.

But I am still wondering where the differences are. Why should you use xdg-email when it works with xdg-open as well. Does xdg-open (and the 'mailto:' syntax) only work with GNOME or does it work with other desktop environments as well?
If yes, I don't understand why xdg-email exists...

Revision history for this message
José Borges Ferreira (underspell) (jose-ferreira) wrote :

xdg-email is a bash script that is a wrapper for gnome-open ( for Gnome . Also supports kde and xfce ) like xdg-open . it "url_encode"s all the parameters and Evolution doesn't like it. So i go for xdg-open directly without the encoding.

BTW : I mentioned before , that that wasn't a bug in Evolution, but probably is.
I also tried to change default Mail reader to Thunderbird (System / Preferences / Preferred Applications) and noted that this doesn't work because thunderbird has no native integration with gnome. Someone had developed this ( https://addons.mozilla.org/en-US/thunderbird/addon/12523 ) to mitigate this issue. Alternative if you know that user wants thunderbird ( by detecting or by configuration ) can issue this command thunderbird -compose "attachment='file:///path/to/screenshot.png'" as in http://kb.mozillazine.org/Command_line_arguments_(Thunderbird).

I'll look into this in more detail and if i find a way to detect if the mailer is thunderbird i i'll drop you a note.
<j/>

Ramses (jearuf)
description: updated
Revision history for this message
Mario Kemper (Romario) (mario-kemper) wrote :

I've created a new bug for the Thunderbird issue:
https://bugs.launchpad.net/bugs/541751

Revision history for this message
Mario Kemper (Romario) (mario-kemper) wrote :

Applied patch http://launchpadlibrarian.net/36815971/shutter.diff

Thanks @José Borges Ferreira

Changed in shutter:
milestone: 0.85 → 0.86
status: Fix Released → Fix Committed
Changed in shutter:
status: Fix Committed → Fix Released
Revision history for this message
habtool (clive-wagenaar) wrote :

Thanks for this feature, it works great ;)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.