aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorJon Trowbridge <trow@ximian.com>2001-03-23 17:39:37 +0800
committerJon Trowbridge <trow@src.gnome.org>2001-03-23 17:39:37 +0800
commit4f26eac120fd30b1f8199a6aec29c436bfb558a4 (patch)
tree71ee7b80b87d7e47e5ead203ad7a8b63c2d33826 /camel
parente4affa9382419295eb9911d5528c1b9e38cb6283 (diff)
downloadgsoc2013-evolution-4f26eac120fd30b1f8199a6aec29c436bfb558a4.tar
gsoc2013-evolution-4f26eac120fd30b1f8199a6aec29c436bfb558a4.tar.gz
gsoc2013-evolution-4f26eac120fd30b1f8199a6aec29c436bfb558a4.tar.bz2
gsoc2013-evolution-4f26eac120fd30b1f8199a6aec29c436bfb558a4.tar.lz
gsoc2013-evolution-4f26eac120fd30b1f8199a6aec29c436bfb558a4.tar.xz
gsoc2013-evolution-4f26eac120fd30b1f8199a6aec29c436bfb558a4.tar.zst
gsoc2013-evolution-4f26eac120fd30b1f8199a6aec29c436bfb558a4.zip
Added. Call me old-fashioned, but I just prefer to have a real API rather
2001-03-23 Jon Trowbridge <trow@ximian.com> * gui/widgets/e-minicard-widget.c (e_minicard_widget_set_card): Added. Call me old-fashioned, but I just prefer to have a real API rather than doing everything via gtk_object_get/set-type calls. (e_minicard_widget_set_arg): Changed to call e_minicard_widget_set_card. * backend/ebook/e-book-util.c: Small changes to get rid of compiler warnings. (Casting out const, removed unused variables, etc.) Removed some debugging messages. * gui/component/addressbook-factory.c (main): Added call to e_address_popup_factory_init. * gui/component/e-address-popup.c: Added. A popup gadget that is invoked (as a bonobo control) when an address is left-clicked in the mailer. The addressbook is queries, and the address is either displayed as a minicard (if it already exists) or in a "generic format". A button is provided for editting/adding the contact. Some of the semantics of this widget are a bit... non-standard, because of bonobo issues. I can't really seem to replicate popup-menu behavior because of how bonobo propogates events, etc. so I've tried to produce something that I think is non-annoying. YMMV. 2001-03-23 Jon Trowbridge <trow@ximian.com> * mail-display.c (handle_embedded_address_object): #ifdef away some code I don't quite want to delete yet. (html_button_press_event): Remove some of Radek's placeholder code, replace it with code to create my AddressPopup bonobo control. * mail-format.c: Remove some obsolete code that if #ifdef-ed out a while ago. * mail-ops.c (send_queue_send): Strip out the X-Evolution-Identity header when sending. 2001-03-23 Jon Trowbridge <trow@ximian.com> * camel-filter-driver.c (camel_filter_driver_filter_message): Don't call camel_mime_message_set_identity. (The call is commented out, left over from some earlier experimentation that I want to be able to remember later...) * camel-mime-message.c (camel_mime_message_set_identity): Added. A function to set the X-Evolution-Identity header. svn path=/trunk/; revision=8916
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog10
-rw-r--r--camel/camel-filter-driver.c4
-rw-r--r--camel/camel-mime-message.c7
-rw-r--r--camel/camel-mime-message.h4
4 files changed, 24 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index a4a45ed7dc..c531d8da68 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,13 @@
+2001-03-23 Jon Trowbridge <trow@ximian.com>
+
+ * camel-filter-driver.c (camel_filter_driver_filter_message):
+ Don't call camel_mime_message_set_identity. (The call is
+ commented out, left over from some earlier experimentation that I
+ want to be able to remember later...)
+
+ * camel-mime-message.c (camel_mime_message_set_identity): Added.
+ A function to set the X-Evolution-Identity header.
+
2001-03-22 Dan Winship <danw@ximian.com>
* providers/imap/camel-imap-command.c (imap_read_response): Don't
diff --git a/camel/camel-filter-driver.c b/camel/camel-filter-driver.c
index 794b105efa..17e7d92629 100644
--- a/camel/camel-filter-driver.c
+++ b/camel/camel-filter-driver.c
@@ -814,7 +814,7 @@ camel_filter_driver_filter_message (CamelFilterDriver *driver, CamelMimeMessage
struct _filter_rule *node;
gboolean freeinfo = FALSE;
gboolean filtered = FALSE;
-
+
if (info == NULL) {
struct _header_raw *h = CAMEL_MIME_PART (message)->headers;
@@ -833,6 +833,8 @@ camel_filter_driver_filter_message (CamelFilterDriver *driver, CamelMimeMessage
p->info = info;
p->uid = uid;
p->source = source;
+
+ /* camel_mime_message_set_identity (message, source_url); */
node = (struct _filter_rule *)p->rules.head;
while (node->next) {
diff --git a/camel/camel-mime-message.c b/camel/camel-mime-message.c
index 9e0fb7de11..4799627fd5 100644
--- a/camel/camel-mime-message.c
+++ b/camel/camel-mime-message.c
@@ -398,6 +398,13 @@ camel_mime_message_set_recipients(CamelMimeMessage *mime_message, const char *ty
g_free(text);
}
+void
+camel_mime_message_set_identity(CamelMimeMessage *mime_message, const char *identity)
+{
+ g_assert (mime_message);
+ camel_medium_add_header (CAMEL_MEDIUM (mime_message), "X-Evolution-Identity", identity);
+}
+
const CamelInternetAddress *
camel_mime_message_get_recipients(CamelMimeMessage *mime_message, const char *type)
{
diff --git a/camel/camel-mime-message.h b/camel/camel-mime-message.h
index 0ab406c27e..8d24245638 100644
--- a/camel/camel-mime-message.h
+++ b/camel/camel-mime-message.h
@@ -115,6 +115,10 @@ void camel_mime_message_set_recipients (CamelMimeMess
const char *type,
const CamelInternetAddress *r);
+void camel_mime_message_set_identity (CamelMimeMessage *mime_message,
+ const char *identity);
+
+
/* utility functions */
gboolean camel_mime_message_has_8bit_parts (CamelMimeMessage *mime_message);
void camel_mime_message_set_best_encoding (CamelMimeMessage *msg,