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 449036 - integration of arbitrary mail-clients
integration of arbitrary mail-clients
Status: RESOLVED DUPLICATE of bug 318052
Product: nautilus-sendto
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: nautilus-sendto-maint
nautilus-sendto-maint
Depends on:
Blocks:
 
 
Reported: 2007-06-19 08:15 UTC by s.menge
Modified: 2008-06-12 09:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
alpine.c (2.62 KB, patch)
2007-06-19 08:20 UTC, s.menge
needs-work Details | Review

Description s.menge 2007-06-19 08:15:17 UTC
I have created a plugin to integrate alpine (apache licensed pine) with nautilus-sendto. It is based on the thunderbird plugin. Basically I just replaced some strings ...

But I thought that a generic plugin that uses a command and easy to set parameters like
  %t for adresses
  %a for attachments
would be better. Then everyone could configure his mailclient on his
own. something like

'/path/to/my/mailer -to %t -attach %a'

If you wish I can send the file alpine.c, but I dont't know to what address...
Comment 1 s.menge 2007-06-19 08:20:44 UTC
Created attachment 90259 [details] [review]
alpine.c

alpine.c based on thunderbird.c

starts apache licensed pine (alpine) in a "gnome-terminal -x".

Makefiles etc. need to be adapted by hand.
Comment 2 Bastien Nocera 2007-08-13 15:06:31 UTC
Comment on attachment 90259 [details] [review]
alpine.c

>	hash = g_hash_table_new (g_str_hash, g_str_equal);

The hashtable is for what exactly?

>static
>GtkWidget* get_contacts_widget (NstPlugin *plugin)
>{
>		
>	GtkWidget *entry;
>	
>	entry = gtk_entry_new ();

No way to get a recipients list?

>	t_cmd = g_find_program_in_path ("gnome-terminal");

Why not use the default terminal program, from GConf?
It's under /desktop/gnome/applications/terminal

>		//TODO better hack needed to strip of gnome-vfs handler "file://"
>		g_string_append_printf (mailto,"-attach %s ",(l->data)+7);

g_filename_from_uri()

>	cmd = g_strdup_printf ("%s -x %s %s", t_cmd, a_cmd, mailto->str);

You probably need to escape some of those parameters. See g_shell_quote()
Comment 3 Bastien Nocera 2008-06-12 09:14:42 UTC
This is a duplicated of bug 318052 (which depends on bug 318052).

*** This bug has been marked as a duplicate of 318052 ***