Re: [PATCH] Attachments in mailto: URLs



On 10/31/2006 11:06:24 PM Tue, Johan Brannlund wrote:
I noticed when trying to mail pictures from f-spot that Balsa didn't
include the attachments. A bit of digging revealed that the reason is
that
Balsa doesn't understand things like
"mailto:helmut example com?attach=/tmp/strudel.jpg"

I hacked up a small patch for this, included below. In case it suffers
from whitespace damage, it's also available at
http://nullinfinity.org/attach.patch .

Regards,

Johan

On reflection, implementing "attach=file" has some security implications. Clicking "mailto:some-criminal some-offshore-address?attach=/etc/passwd" on a random web page would probably be a bad idea. Perhaps Balsa should just pop up the attach-file dialog with the target file pre-selected, so that the user has to verify that it's OK to send.

Comments?

Peter



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]