GNOME Bugzilla – Bug 449036
integration of arbitrary mail-clients
Last modified: 2008-06-12 09:14:42 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...
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 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()
This is a duplicated of bug 318052 (which depends on bug 318052). *** This bug has been marked as a duplicate of 318052 ***