Accepted patch from Shilpa Musti
- From: Philip Van Hoof <spam pvanhoof be>
- To: tinymail-devel-list gnome org
- Cc: Shilpa Musti nokia com
- Subject: Accepted patch from Shilpa Musti
- Date: Wed, 18 Apr 2007 01:12:24 +0200
I accepted this patch from Shilpa Musti. It fixes a bug in
TnyCamelTransportAccount.
I will commit this right now.
--
Philip Van Hoof, software developer
home: me at pvanhoof dot be
gnome: pvanhoof at gnome dot org
http://www.pvanhoof.be/blog
--- /home/pvanhoof/1 2007-04-17 10:51:53.000000000 +0200
+++ /home/pvanhoof/2 2007-04-17 10:53:37.000000000 +0200
static void
tny_camel_transport_account_send_default (TnyTransportAccount *self, TnyMsg *msg, GError **err)
{
@@ -269,16 +267,40 @@
recipients = camel_internet_address_new ();
str = tny_header_get_from (header);
+ if(str)
+ {
_foreach_email_add_to_inet_addr (str, from);
+ camel_mime_message_set_from(message,from);
+ }
str = tny_header_get_to (header);
+ if(str)
+ {
_foreach_email_add_to_inet_addr (str, recipients);
+ camel_mime_message_set_recipients(message,CAMEL_RECIPIENT_TYPE_TO,recipients);
+ }
+
str = tny_header_get_cc (header);
+ if(str)
+ {
_foreach_email_add_to_inet_addr (str, recipients);
+ camel_mime_message_set_recipients(message,CAMEL_RECIPIENT_TYPE_CC,recipients);
+ }
+
str = tny_header_get_bcc (header);
+ if(str)
+ {
_foreach_email_add_to_inet_addr (str, recipients);
+ camel_mime_message_set_recipients(message,CAMEL_RECIPIENT_TYPE_BCC,recipients);
+ }
+
+
+ str = tny_header_get_subject (header);
+ if(str)
+ camel_mime_message_set_subject(message,str);
+
apriv->connected = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]