aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2002-05-01 03:31:37 +0800
committerChris Lahey <clahey@src.gnome.org>2002-05-01 03:31:37 +0800
commitbb1d2316f024efb5c232da21aff2c6b2ddcf711c (patch)
tree2bebb559a71da940506af9f6e8fc8b0b7dd29eb1
parentbcd5801922ecefd90b911273dbf06f58b9d0f4c6 (diff)
downloadgsoc2013-evolution-bb1d2316f024efb5c232da21aff2c6b2ddcf711c.tar.gz
gsoc2013-evolution-bb1d2316f024efb5c232da21aff2c6b2ddcf711c.tar.zst
gsoc2013-evolution-bb1d2316f024efb5c232da21aff2c6b2ddcf711c.zip
Changed this to set a subject when sending a contact. This makes the
2002-04-30 Christopher James Lahey <clahey@ximian.com> * backend/ebook/e-card.c (e_card_list_send): Changed this to set a subject when sending a contact. This makes the signature be set properly also. svn path=/trunk/; revision=16648
-rw-r--r--addressbook/ChangeLog6
-rw-r--r--addressbook/backend/ebook/e-card.c59
2 files changed, 64 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index d482c0b440..4ece0600f0 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,9 @@
+2002-04-30 Christopher James Lahey <clahey@ximian.com>
+
+ * backend/ebook/e-card.c (e_card_list_send): Changed this to set a
+ subject when sending a contact. This makes the signature be set
+ properly also.
+
2002-04-26 Jeffrey Stedfast <fejj@ximian.com>
* printing/Makefile.am: Don't link to libibex anymore.
diff --git a/addressbook/backend/ebook/e-card.c b/addressbook/backend/ebook/e-card.c
index b3beecbc7e..4fd0bb623d 100644
--- a/addressbook/backend/ebook/e-card.c
+++ b/addressbook/backend/ebook/e-card.c
@@ -2648,7 +2648,6 @@ e_card_list_send (GList *cards, ECardDisposition disposition)
cards = g_list_next (cards);
}
-
subject = CORBA_string_dup ("");
GNOME_Evolution_Composer_setHeaders (composer_server, to_list, cc_list, bcc_list, subject, &ev);
@@ -2669,6 +2668,9 @@ e_card_list_send (GList *cards, ECardDisposition disposition)
GNOME_Evolution_Composer_AttachmentData *attach_data;
CORBA_boolean show_inline;
char *tempstr;
+
+ GNOME_Evolution_Composer_RecipientList *to_list, *cc_list, *bcc_list;
+ CORBA_char *subject;
content_type = CORBA_string_dup ("text/x-vcard");
filename = CORBA_string_dup ("");
@@ -2711,6 +2713,61 @@ e_card_list_send (GList *cards, ECardDisposition disposition)
CORBA_free (filename);
CORBA_free (description);
CORBA_free (attach_data);
+
+ to_list = GNOME_Evolution_Composer_RecipientList__alloc ();
+ to_list->_maximum = to_list->_length = 0;
+
+ cc_list = GNOME_Evolution_Composer_RecipientList__alloc ();
+ cc_list->_maximum = cc_list->_length = 0;
+
+ bcc_list = GNOME_Evolution_Composer_RecipientList__alloc ();
+ bcc_list->_maximum = bcc_list->_length = 0;
+
+ if (!cards || cards->next) {
+ subject = CORBA_string_dup ("Contact information");
+ } else {
+ ECard *card = cards->data;
+ const gchar *tempstr2;
+
+ tempstr2 = NULL;
+ gtk_object_get(GTK_OBJECT(card),
+ "file_as", &tempstr2,
+ NULL);
+ if (!tempstr2 || !*tempstr2)
+ gtk_object_get(GTK_OBJECT(card),
+ "full_name", &tempstr2,
+ NULL);
+ if (!tempstr2 || !*tempstr2)
+ gtk_object_get(GTK_OBJECT(card),
+ "org", &tempstr2,
+ NULL);
+ if (!tempstr2 || !*tempstr2) {
+ EList *list;
+ EIterator *iterator;
+ gtk_object_get(GTK_OBJECT(card),
+ "email", &list,
+ NULL);
+ iterator = e_list_get_iterator (list);
+ if (e_iterator_is_valid (iterator)) {
+ tempstr2 = e_iterator_get (iterator);
+ }
+ gtk_object_unref (GTK_OBJECT (iterator));
+ }
+
+ if (!tempstr2 || !*tempstr2)
+ tempstr = g_strdup_printf ("Contact information");
+ else
+ tempstr = g_strdup_printf ("Contact information for %s", tempstr2);
+ subject = CORBA_string_dup (tempstr);
+ g_free (tempstr);
+ }
+
+ GNOME_Evolution_Composer_setHeaders (composer_server, to_list, cc_list, bcc_list, subject, &ev);
+
+ CORBA_free (to_list);
+ CORBA_free (cc_list);
+ CORBA_free (bcc_list);
+ CORBA_free (subject);
}
GNOME_Evolution_Composer_show (composer_server, &ev);
&id=9bba4d5d3a73850bde869264894ae7d70bc4d0f4'>Add SHA256 to my BSD# portstmclaugh2005-12-011-0/+1 * Mass-conversion to the USE_AUTOTOOLS New World Order. The code presentade2005-11-151-1/+1 * (Long awaited) update to 1.1.9.2tmclaugh2005-11-1022-598/+872 * Bump PORTREVISION to chase glib update that came with Gnome 2.12tmclaugh2005-11-061-1/+1 * Fix the plist by taking care of directories in X11BASE too.mezz2005-08-032-1/+7 * Really fix build for FreeBSD 7.x.mezz2005-07-211-1/+1 * Fix the build on FreeBSD 7.x by teach it. I need to contact with mainstreammezz2005-07-181-0/+4 * Fix the .so.0 -> .so, got bite by beagle when it can't find libsqlite.so.0.mezz2005-07-131-1/+4 * Update to 1.1.8.2, most semaphore bugs in 1.1.8(.1) have been fixed.mezz2005-07-1113-35/+529 * [...Took from jylefort's comment in email with a bit tweak...]mezz2005-06-012-1/+41 * Update to 1.1.7, Bill Middleton has been working against the Mono SVN to fixmezz2005-05-1618-297/+454 * Bump PORTREVISION to chase the glib20 shared lib version change.marcus2005-03-121-0/+1 * Update to 1.0.6, see details: http://www.go-mono.com/archive/1.0.6/mezz2005-02-272-5/+6 * BSD# Project is taking the maintainership.mezz2005-02-201-1/+1 * With portmgr hat on, reset maintainership of these ports. Maintainer'slinimon2005-02-141-1/+1 * Fix the pkg-plist issue in gtk-sharp when it installs in mono's directory. Letmezz2005-01-212-3/+10 * Update to 1.0.5.mezz2004-12-116-23/+75 * Update to 1.0.4. Mono has been set to IGNORE on 5.x if OSVERSION is belowmezz2004-11-2613-164/+59 * - Don't hardcode shlib versionspav2004-08-292-1/+2 * - Chase redirectpav2004-07-251-1/+1 * - Update to 1.0pav2004-07-156-19/+53 * - Update to 0.97pav2004-06-274-77/+27 * We have a new Mono vict^W^W^Wolunteer! John Merryweather Cooper has offeredmarcus2004-06-251-1/+1 * Make uses elif not elsif, Marcus.marcus2004-06-131-1/+1 * Update to 0.95 (aka Mono 1.0 Beta 2). With this commit, plus David Xu'smarcus2004-06-1312-104/+566 * Resign maintainership to ports@. gnome@ hasn't been that active in maintainingmarcus2004-05-221-1/+1 * Chase the glib20 update, and bump all affected ports' PORTREVISIONs.marcus2004-04-051-0/+1 * - Add SIZE to GNOME portspav2004-03-181-0/+1 * Whoa there, boy, that's a mighty big commit y'all have there...ade2004-03-141-1/+1 * Remove the tests directory from the build since it ropes in a bogus bashmarcus2004-03-021-0/+11 * Update to 0.30.1.marcus2004-02-283-7/+18 * Change BROKEN to IGNORE since the package actually builds (but does not work)kris2004-02-161-1/+1 * Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.marcus2004-02-041-0/+1 * Remove a patch missed in the last commit.marcus2003-12-161-10/+0 * Update to 0.29.marcus2003-12-163-5/+10 * Mark BROKEN on -CURRENT. Having garbage collection enabled causes monomarcus2003-10-171-0/+2 * I believe this works now. I am able to compile and run some C# apps includedmarcus2003-10-075-7/+96 * Update to 0.28, and mark that it is only for i386. Note, it's still notmarcus2003-10-073-14/+37 * Utilize USE_GNOME= pkgconfig.adamw2003-06-171-2/+1 * Add some missing libraries to the plist.marcus2003-06-162-0/+3 * Upgrade to latest Mono (0.24 release), which includes most notablyjmallett2003-05-073-7/+26 * Convert to new GNOME infrastructure.marcus2003-04-221-4/+2 * Remove USE_GNOMENG.marcus2003-04-211-1/+0 * Update to 0.21.jmallett2003-02-282-2/+2 * Update to 0.20, de-pkg-comment.jmallett2003-02-264-13/+16 * Chase glib20's shared lib version.marcus2003-02-081-1/+2 * Update to Mono 0.19.jmallett2003-01-274-36/+5 * Update to 0.18.marcus2003-01-1410-144/+39 * Define INSTALLS_SHLIB.marcus2003-01-051-0/+1 * Update to 0.17.marcus2003-01-029-43/+87 * Fix build on -CURRENT and with bison 1.75.marcus2002-12-016-3/+130 * Fix build on -current.marcus2002-09-111-0/+19 * Add fix for bind critical bug.nakai2002-08-122-1/+13 * Update to 0.13nakai2002-08-033-8/+23 * Add USE_BISON.marcus2002-07-291-0/+1