After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 511685 - Add plugin calling nautilus-sendto
Add plugin calling nautilus-sendto
Status: RESOLVED FIXED
Product: nautilus-sendto
Classification: Applications
Component: general
1.1.x
Other Linux
: Normal enhancement
: ---
Assigned To: nautilus-sendto-maint
nautilus-sendto-maint
evolution[kill-bonobo]
Depends on:
Blocks:
 
 
Reported: 2008-01-24 01:05 UTC by Bastien Nocera
Modified: 2009-02-18 15:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bastien Nocera 2008-01-24 01:05:33 UTC
The plugin would save to the disk attachments from e-mails, vCards from the addressbook and vCal entries from the calendar, and call "nautilus-sendto" with the filename.

This would allow forwarding files to people on Instant Messengers, or mail, or to phones via Bluetooth.
Comment 1 Sankar P 2008-03-19 05:56:25 UTC
There is already a plugin to save the attachments.  And calendars are already saved as iCal files. Can you explain your requirement a little elaborate ? Thanks.
Comment 2 Bastien Nocera 2008-03-20 17:54:15 UTC
The requirement is:
- sending vcards or images directly to devices, or via IM without needing to save the file locally, find it in the file chooser, and then send it.

For example, sending a vcard from an e-mail to a phone takes at least 3 steps:
- save to the local disk
- find the file on the disk
- right-click and select "Send to..."

With such a plugin, I could right click on an appointment, or a contact, and select "Send to...", select a device to send it to, and have it appear on the device.
Comment 3 Srinivasa Ragavan 2008-09-24 05:49:13 UTC
Bastien,

evolution/plugins/import-ics-attachments could be a sample plugin. It sort of does the same thing, but imports them somewhere else.

    	<hook class="org.gnome.evolution.mail.popup:1.0">
		<menu id="org.gnome.evolution.mail.formathtmldisplay.popup" target="part" factory="org_gnome_evolution_import_ics_part">
		</menu>
	</hook>
    	<hook class="org.gnome.evolution.mail.popup:1.0">
		<menu id="org.gnome.evolution.mail.attachments.popup" target="attachments" factory="org_gnome_evolution_import_ics_attachments">
		</menu>
	</hook>
	<hook class="org.gnome.evolution.mail.popup:1.0">
		<menu target="attachments" id="org.gnome.evolution.mail.composer.attachmentbar.popup" factory="org_gnome_evolution_import_ics_attachments">
		</menu>
	</hook>


	<hook class="org.gnome.evolution.calendar.popup:1.0">
		<menu target="attachments" id="org.gnome.evolution.calendar.attachmentbar.popup" factory="org_gnome_evolution_import_ics_attachments">
		</menu>
	</hook>

^^ are the hooks that needs to be looked at. 
Comment 4 Bastien Nocera 2008-09-24 08:28:20 UTC
I'll take a look at this in greater detail later on. Thanks for the pointers.
Comment 5 Bastien Nocera 2009-02-18 15:45:45 UTC
2009-02-18  Bastien Nocera  <hadess@hadess.net>

        * Makefile.am:
        * configure.in:
        * evolution/Makefile.am:
        * evolution/nautilus-sendto.c (popup_free),
        (org_gnome_evolution_send_file_attachments),
        (org_gnome_evolution_send_file_part), (send_file):
        * evolution/org-gnome-evolution-send-attachments-to.eplug.xml:
        * evolution/plugin.mk: If evolution-plugin is available, compile
        a plugin for Evolution to allow sending arbitrary attachments through
        nautilus-sendto (Closes: #511685)

2009-02-18  Bastien Nocera  <hadess@hadess.net>

        * POTFILES.in: Update for latest changes
Comment 6 Matthew Barnes 2009-02-18 15:59:19 UTC
Reminder to myself to update nautilus-sendto when Evolution's kill-bonobo branch gets merged.  This will replace the "org.gnome.evolution.mail.popup" hook class with a new class named "org.gnome.evolution.ui", so plugins everywhere will have to be updated.