Changeset 1920
- Timestamp:
- 05/08/07 19:18:01
- Files:
-
- trunk/ChangeLog (modified) (1 diff)
- trunk/libtinymail-camel/camel-lite/camel/camel-data-cache.c (modified) (2 diffs)
- trunk/libtinymail-camel/camel-lite/camel/camel-folder-summary.c (modified) (6 diffs)
- trunk/libtinymail-camel/camel-lite/camel/camel-folder-thread.c (modified) (2 diffs)
- trunk/libtinymail-camel/camel-lite/camel/camel-folder.c (modified) (3 diffs)
- trunk/libtinymail-camel/camel-lite/camel/camel-search-private.c (modified) (2 diffs)
- trunk/libtinymail-camel/camel-lite/camel/camel-tcp-stream-ssl.c (modified) (2 diffs)
- trunk/libtinymail-camel/camel-lite/camel/camel-url-scanner.c (modified) (1 diff)
- trunk/libtinymail-camel/camel-lite/camel/camel-vtrash-folder.c (modified) (1 diff)
- trunk/libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-command.c (modified) (1 diff)
- trunk/libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-folder.c (modified) (22 diffs)
- trunk/libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-store.c (modified) (2 diffs)
- trunk/libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-summary.c (modified) (2 diffs)
- trunk/libtinymail-camel/camel-lite/camel/providers/local/camel-local-summary.c (modified) (2 diffs)
- trunk/libtinymail-camel/camel-lite/camel/providers/local/camel-maildir-folder.c (modified) (1 diff)
- trunk/libtinymail-camel/camel-lite/camel/providers/nntp/camel-nntp-summary.c (modified) (1 diff)
- trunk/libtinymail-camel/camel-lite/camel/providers/pop3/camel-pop3-folder.c (modified) (5 diffs)
- trunk/libtinymail-camel/camel-lite/camel/providers/pop3/camel-pop3-store.c (modified) (3 diffs)
- trunk/libtinymail-camel/tny-camel-folder.c (modified) (15 diffs)
- trunk/libtinymail-camel/tny-camel-full-msg-receive-strategy.c (modified) (1 diff)
- trunk/libtinymail-camel/tny-camel-header.c (modified) (1 diff)
- trunk/libtinymail-camel/tny-camel-mime-part.c (modified) (1 diff)
- trunk/libtinymail-camel/tny-camel-msg-header.c (modified) (1 diff)
- trunk/libtinymail-camel/tny-camel-msg-remove-strategy.c (modified) (1 diff)
- trunk/libtinymail-camel/tny-camel-msg.c (modified) (1 diff)
- trunk/libtinymail-camel/tny-camel-partial-msg-receive-strategy.c (modified) (1 diff)
- trunk/libtinymail-camel/tny-camel-store-account.c (modified) (2 diffs)
- trunk/libtinymail-camel/tny-camel-stream.c (modified) (1 diff)
- trunk/libtinymail-camel/tny-camel-transport-account.c (modified) (2 diffs)
- trunk/libtinymail-camel/tny-session-camel.c (modified) (5 diffs)
- trunk/libtinymail-queues/tny-generic-send-queue.c (modified) (3 diffs)
- trunk/libtinymail-queues/tny-get-msg-queue.c (modified) (2 diffs)
- trunk/libtinymail/tny-folder-monitor.c (modified) (2 diffs)
- trunk/libtinymail/tny-merge-folder.c (modified) (5 diffs)
- trunk/libtinymail/tny-mime-part.c (modified) (2 diffs)
- trunk/libtinymailui-gtk/tny-gtk-account-list-model.c (modified) (1 diff)
- trunk/libtinymailui-gtk/tny-gtk-folder-store-tree-model.c (modified) (1 diff)
- trunk/libtinymailui-gtk/tny-gtk-header-list-model.c (modified) (2 diffs)
- trunk/libtinymailui-gtk/tny-gtk-msg-view.c (modified) (5 diffs)
- trunk/libtinymailui-gtk/tny-gtk-password-dialog.c (modified) (1 diff)
- trunk/libtinymailui-gtk/tny-gtk-text-mime-part-view.c (modified) (1 diff)
- trunk/tests/c-demo/tny-demoui-summary-view.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ChangeLog
r1914 r1920 1 2007-05-08 Philip Van Hoof <pvanhoof@gnome.org> 2 3 * -Wall warnings fixed 4 1 5 2007-05-08 Murray Cumming <murrayc@murrayc.com 2 6 trunk/libtinymail-camel/camel-lite/camel/camel-data-cache.c
r1406 r1920 232 232 { 233 233 char mystring [512]; 234 gchar *mpath; char *dir;235 234 guint32 hash; 236 235 hash = g_str_hash(mi->uid); … … 280 279 { 281 280 int fd; char *dir; 282 gboolean retval = FALSE;283 281 gchar *mpath; 284 282 guint32 hash; trunk/libtinymail-camel/camel-lite/camel/camel-folder-summary.c
r1807 r1920 1237 1237 char *buffer; 1238 1238 size_t len; 1239 struct _CamelFolderSummaryPrivate *p = _PRIVATE(s);1240 1239 off_t start; 1241 1240 … … 1266 1265 { 1267 1266 CamelMessageInfo *info; 1268 struct _CamelFolderSummaryPrivate *p;1269 1267 1270 1268 if (s != NULL) … … 1955 1953 const char *received; 1956 1954 guchar digest[16]; 1957 struct _camel_header_references *refs, *irt, *scan;1958 1955 char *msgid, *r=NULL; 1959 int count;1960 1956 char *subject, *from, *to, *cc; 1961 1957 CamelContentType *ct = NULL; … … 2234 2230 { 2235 2231 guint32 count; 2232 #ifdef NON_TINYMAIL_FEATURES 2236 2233 CamelFlag *flag; 2237 2234 CamelTag *tag; 2238 2235 int i; 2236 #endif 2239 2237 CamelMessageInfoBase *mi = (CamelMessageInfoBase *)info; 2240 2238 … … 2522 2520 CamelContentType *ct; 2523 2521 int enc_id = -1, chr_id = -1, html_id = -1, idx_id = -1; 2524 struct _CamelFolderSummaryPrivate *p = _PRIVATE(s);2525 CamelMimeFilterCharset *mfc;2526 2522 CamelMessageContentInfo *part; 2527 2523 … … 3190 3186 { 3191 3187 CamelMessageInfoBase *to, *from = (CamelMessageInfoBase *)mi; 3188 #ifdef NON_TINYMAIL_FEATURES 3192 3189 CamelFlag *flag; 3193 3190 CamelTag *tag; 3194 3191 #endif 3195 3192 to = (CamelMessageInfoBase *)camel_message_info_new(s); 3196 3193 trunk/libtinymail-camel/camel-lite/camel/camel-folder-thread.c
r1050 r1920 57 57 } 58 58 59 #if 0 59 60 static void 60 61 container_parent_child(CamelFolderThreadNode *parent, CamelFolderThreadNode *child) … … 98 99 printf("DAMN, we shouldn't be here!\n"); 99 100 } 101 #endif 102 100 103 101 104 static void trunk/libtinymail-camel/camel-lite/camel/camel-folder.c
r1845 r1920 318 318 int i; 319 319 guint32 tag; 320 int unread = -1, deleted = 0, junked = 0, visible = 0,count = -1;320 int unread = -1, deleted = 0, count = -1; 321 321 322 322 for (i=0; i < args->argc; i++) … … 1642 1642 }; 1643 1643 1644 #if 0 1644 1645 static void 1645 1646 filter_filter(CamelSession *session, CamelSessionThreadMsg *tmsg) … … 1749 1750 camel_object_unref(m->folder); 1750 1751 } 1751 1752 static CamelSessionThreadOps filter_ops = { 1753 filter_filter, 1754 filter_free, 1755 }; 1752 #endif 1753 1756 1754 1757 1755 /* Event hooks that block emission when frozen */ trunk/libtinymail-camel/camel-lite/camel/camel-search-private.c
r1027 r1920 382 382 otherwise not */ 383 383 p = (const unsigned char *)match; 384 while (c = camel_utf8_getc(&p)) { 384 385 c = camel_utf8_getc (&p); 386 while (c) 387 { 385 388 if (g_unichar_isupper(c)) { 386 389 switch (how) { … … 398 401 return FALSE; 399 402 } 400 } 401 403 c = camel_utf8_getc (&p); 404 } 405 402 406 switch (how) { 403 407 case CAMEL_SEARCH_MATCH_EXACT: trunk/libtinymail-camel/camel-lite/camel/camel-tcp-stream-ssl.c
r1663 r1920 344 344 PRPollDesc pollfds[2]; 345 345 gboolean nonblock; 346 int error;347 346 348 347 /* get O_NONBLOCK options */ … … 788 787 789 788 if (nread != st.st_size) { 790 g_warning ("cert size read truncated %s: %u != %ld", path, nread, st.st_size);789 /* g_warning ("cert size read truncated %s: %u != %ld", path, nread, st.st_size); */ 791 790 g_byte_array_free(ccert->rawcert, TRUE); 792 791 ccert->rawcert = NULL; trunk/libtinymail-camel/camel-lite/camel/camel-url-scanner.c
r1319 r1920 182 182 183 183 if (open_brace != NULL) 184 *open_brace = ='\0';184 *open_brace = '\0'; 185 185 186 186 if (so > 0) { trunk/libtinymail-camel/camel-lite/camel/camel-vtrash-folder.c
r1706 r1920 114 114 int i; 115 115 guint32 tag; 116 int unread = -1, deleted = 0, junked = 0, visible = 0,count = -1;116 int unread = -1, deleted = 0, count = -1; 117 117 118 118 for (i=0;i<args->argc;i++) { trunk/libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-command.c
r1843 r1920 189 189 const char *cmd, CamelException *ex) 190 190 { 191 GThread *thread;192 191 ssize_t nwritten; 193 192 gchar *resp = NULL; trunk/libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-folder.c
r1906 r1920 35 35 36 36 #include <config.h> 37 #include <string.h> 37 38 38 39 #include <stdlib.h> … … 628 629 camel_imap_folder_changed (folder, exists, NULL, ex); 629 630 630 if (highestmodseq != NULL & suc && needtoput)631 if (highestmodseq != NULL && suc && needtoput) 631 632 put_highestmodseq (imap_folder, (const char *) highestmodseq); 632 633 633 634 if (highestmodseq != NULL) 634 635 g_free (highestmodseq); … … 817 818 } 818 819 820 #if 0 819 821 static void 820 822 flags_to_label(CamelFolder *folder, CamelImapMessageInfo *mi) … … 852 854 } 853 855 856 #endif 857 854 858 static gboolean 855 859 imap_rescan_condstore (CamelFolder *folder, int exists, const char *highestmodseq, CamelException *ex) … … 865 869 CamelImapFolder *imap_folder = CAMEL_IMAP_FOLDER (folder); 866 870 CamelImapStore *store = CAMEL_IMAP_STORE (folder->parent_store); 867 struct {868 char *uid;869 guint32 flags;870 } *new;871 871 char *resp; 872 872 CamelImapResponseType type; 873 int i,summary_len, summary_got;873 int summary_len, summary_got; 874 874 CamelMessageInfo *info; 875 875 CamelImapMessageInfo *iinfo; … … 883 883 if (exists) 884 884 camel_imap_folder_changed (folder, exists, NULL, ex); 885 return ;885 return TRUE; 886 886 } 887 887 … … 2034 2034 gboolean delete_originals, CamelException *ex) 2035 2035 { 2036 CamelImapStore *store = CAMEL_IMAP_STORE (source->parent_store);2037 2036 int count; 2038 2039 2037 /* Sync message flags if needed. */ 2040 2038 imap_sync_online (source, ex); … … 2825 2823 } 2826 2824 2825 #if 0 2827 2826 static void 2828 2827 add_message_from_data (CamelFolder *folder, GPtrArray *messages, … … 2866 2865 } 2867 2866 2867 #endif 2868 2868 2869 /* #define CAMEL_MESSAGE_INFO_HEADERS "DATE FROM TO CC SUBJECT REFERENCES IN-REPLY-TO MESSAGE-ID MIME-VERSION CONTENT-TYPE " */ 2869 2870 … … 2886 2887 char *resp = NULL; 2887 2888 CamelImapResponseType type; 2888 guint32 cnt = 0, slen; 2889 CamelImapFolder *imap_folder = CAMEL_IMAP_FOLDER (folder); 2889 guint32 cnt = 0; 2890 2890 gchar *uid, *str; 2891 2891 … … 2944 2944 GData *data; 2945 2945 gboolean more = TRUE, oosync = FALSE, oldrescval = imap_folder->need_rescan; 2946 unsigned int nextn, cnt=0, tcnt=0, ucnt=0, rec=0,ineed = 0, allhdrs = 0;2946 unsigned int nextn, cnt=0, tcnt=0, ucnt=0, ineed = 0, allhdrs = 0; 2947 2947 2948 2948 if (!store->ostream || !store->istream) … … 3264 3264 process_idle_response (IdleResponse *idle_resp) 3265 3265 { 3266 CamelImapStore *store;3267 char *resp = NULL;3268 const char *header_spec;3269 3266 CamelException ex = CAMEL_EXCEPTION_INITIALISER; 3270 CamelImapResponseType type;3271 CamelImapMessageInfo *mi, *info;3272 3267 3273 3268 if (!idle_resp) … … 3428 3423 if (store->current_folder) 3429 3424 { 3430 GArray *expunged = NULL;3431 3425 resp = NULL; 3432 3426 while (camel_imap_store_readline_nb (store, &resp, &ex) > 0) … … 3514 3508 CamelImapStore *store; 3515 3509 IdleResponse *idle_resp = NULL; 3516 GSource *src;3517 3510 gboolean had_err = FALSE; 3518 3511 CamelException ex = CAMEL_EXCEPTION_INITIALISER; … … 3578 3571 /* printf ("idle\n"); */ 3579 3572 3580 if ( !folder || ((CamelObject *)data)->ref_count <= 0 && !CAMEL_IS_IMAP_FOLDER (folder))3573 if ((!folder) || ((((CamelObject *)data)->ref_count <= 0) && (!CAMEL_IS_IMAP_FOLDER (folder)))) 3581 3574 return FALSE; 3582 3575 … … 3839 3832 CamelStream *stream = NULL; 3840 3833 gboolean connected = FALSE, idle_rt = FALSE; 3841 CamelException tex = CAMEL_EXCEPTION_INITIALISER, 3842 myex = CAMEL_EXCEPTION_INITIALISER, 3843 cex = CAMEL_EXCEPTION_INITIALISER; 3834 CamelException tex = CAMEL_EXCEPTION_INITIALISER; 3844 3835 ssize_t nread = 0; gboolean amcon = FALSE; 3845 gchar *a_resp = NULL;3846 3836 3847 3837 CAMEL_IMAP_FOLDER_REC_LOCK (imap_folder, cache_lock); … … 3937 3927 ssize_t hread = 1; 3938 3928 gint length=0, rec=0; 3939 long seq;3940 3929 char *pos, *ppos; 3941 3930 … … 4037 4026 } else 4038 4027 { 4039 gboolean first = TRUE,err=FALSE;4028 gboolean err=FALSE; 4040 4029 gchar line [MAX_LINE_LEN]; 4041 4030 guint linenum = 0; … … 4068 4057 4069 4058 if (server_stream) 4070 while ( nread = camel_stream_buffer_gets (server_stream, line, MAX_LINE_LEN) > 0)4059 while ((nread = camel_stream_buffer_gets (server_stream, line, MAX_LINE_LEN) > 0)) 4071 4060 { 4072 4061 gint llen = 0; … … 4127 4116 memset (line, 0, MAX_LINE_LEN); 4128 4117 } 4129 merrorhandler: 4118 4130 4119 g_mutex_unlock (store->stream_lock); 4131 4120 CAMEL_SERVICE_REC_UNLOCK (store, connect_lock); … … 4161 4150 for (t=0; t < 2; t++) 4162 4151 { 4163 gboolean first = TRUE,err=FALSE;4152 gboolean err=FALSE; 4164 4153 gchar line[MAX_LINE_LEN]; 4165 4154 guint linenum = 0; … … 4205 4194 4206 4195 if (server_stream) 4207 while ( nread = camel_stream_buffer_gets (server_stream, line, MAX_LINE_LEN) > 0)4196 while ((nread = camel_stream_buffer_gets (server_stream, line, MAX_LINE_LEN) > 0)) 4208 4197 { 4209 4198 gint llen = 0; trunk/libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-store.c
r1850 r1920 1999 1999 if (file != NULL) 2000 2000 { 2001 fprintf (file, "% #d %#d %#d", messages, unseen, uidnext);2001 fprintf (file, "%d %d %d", messages, unseen, uidnext); 2002 2002 fclose (file); 2003 2003 } … … 3104 3104 3105 3105 static void 3106 get_some_numbers (CamelStore *store, CamelFolderInfo *fi)3107 {3108 }3109 3110 static void3111 3106 fill_fi(CamelStore *store, CamelFolderInfo *fi, guint32 flags) 3112 3107 { trunk/libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-summary.c
r1667 r1920 32 32 #include <stdlib.h> 33 33 34 #include "camel-imap-message-cache.h" 34 35 #include "camel-imap-summary.h" 35 36 #include "camel-imap-utils.h" … … 290 291 { 291 292 CamelImapMessageInfo *mi; 293 #ifdef NON_TINYMAIL_FEATURES 292 294 const CamelFlag *flag; 293 295 const CamelTag *tag; 296 #endif 294 297 295 298 /* Create summary entry */ trunk/libtinymail-camel/camel-lite/camel/providers/local/camel-local-summary.c
r1706 r1920 478 478 { 479 479 GString *out = g_string_new(""); 480 481 #ifdef NON_TINYMAIL_FEATURES 480 482 struct _camel_header_param *params = NULL; 481 483 GString *val = g_string_new(""); 482 #ifdef NON_TINYMAIL_FEATURES483 484 CamelFlag *flag = mi->info.user_flags; 484 485 CamelTag *tag = mi->info.user_tags; … … 636 637 { 637 638 CamelLocalMessageInfo *mi; 638 CamelLocalSummary *cls = (CamelLocalSummary *)s;639 639 640 640 mi = (CamelLocalMessageInfo *)((CamelFolderSummaryClass *)camel_local_summary_parent)->message_info_new_from_header(s, h); trunk/libtinymail-camel/camel-lite/camel/providers/local/camel-maildir-folder.c
r1585 r1920 160 160 maildir_append_message (CamelFolder *folder, CamelMimeMessage *message, const CamelMessageInfo *info, char **appended_uid, CamelException *ex) 161 161 { 162 CamelMaildirFolder *maildir_folder = (CamelMaildirFolder *)folder;163 162 CamelLocalFolder *lf = (CamelLocalFolder *)folder; 164 163 CamelStream *output_stream; trunk/libtinymail-camel/camel-lite/camel/providers/nntp/camel-nntp-summary.c
r1462 r1920 163 163 { 164 164 CamelNNTPSummary *cns = CAMEL_NNTP_SUMMARY(s); 165 unsigned char *ptrchr = s->filepos;166 165 167 166 if (((CamelFolderSummaryClass *)camel_nntp_summary_parent)->summary_header_load(s) == -1) trunk/libtinymail-camel/camel-lite/camel/providers/pop3/camel-pop3-folder.c
r1894 r1920 28 28 #endif 29 29 30 #include <string.h> 31 30 32 #include <errno.h> 31 33 … … 522 524 camel_operation_end(NULL); 523 525 524 camel_pop3_store_expunge (pop3_store, ex);526 /* camel_pop3_store_expunge (pop3_store, ex); */ 525 527 526 528 return 0; … … 583 585 unsigned char *buffer; 584 586 int w = 0, n; 585 CamelMimeParser *mp;586 struct _camel_header_raw *h;587 587 gchar *boundary = NULL; 588 588 gboolean occurred = FALSE, theend = FALSE; … … 596 596 while (!theend && camel_pop3_stream_line (stream, &buffer, &len) > 0) 597 597 { 598 char *p = NULL;599 600 598 if (!buffer) 601 599 continue; … … 674 672 fi->stream = NULL; 675 673 676 ending:677 674 if (boundary) 678 675 g_free (boundary); trunk/libtinymail-camel/camel-lite/camel/providers/pop3/camel-pop3-store.c
r1687 r1920 201 201 pop3_build_folder_info(CamelPOP3Store *store, const char *folder_name) 202 202 { 203 CamelURL *url;204 203 const char *name; 205 204 CamelFolderInfo *fi; 206 g uint msize;205 gint msize; 207 206 gchar *folder_dir = store->storage_path; 208 207 gchar *spath; … … 239 238 } 240 239 241 fi->local_size = msize;240 fi->local_size = (guint) msize; 242 241 243 242 fi->uri = g_strdup (""); … … 793 792 { 794 793 CamelPOP3Store *pop3_store = CAMEL_POP3_STORE (service); 795 CamelStore *store = CAMEL_STORE (service);796 794 CamelDiscoStore *disco_store = CAMEL_DISCO_STORE (service); 797 char *tmp, *path; 798 CamelURL *summary_url; 795 char *path; 799 796 800 797 CAMEL_SERVICE_CLASS (parent_class)->construct (service, session, provider, url, ex); trunk/libtinymail-camel/tny-camel-folder.c
r1913 r1920 155 155 CamelFolderSummary *summary; 156 156 gboolean old = priv->dont_fkill; 157 gboolean need_unread_sync;158 157 159 158 g_static_rec_mutex_lock (priv->folder_lock); … … 246 245 if (CAMEL_IS_OBJECT (priv->folder)) 247 246 { 248 g_critical ("Killing invalid CamelObject (should be a Camelfolder) at 0x%x\n", priv->folder);247 g_critical ("Killing invalid CamelObject (should be a Camelfolder)\n"); 249 248 while (((CamelObject*)priv->folder)->ref_count >= 1) 250 249 camel_object_unref (CAMEL_OBJECT (priv->folder)); 251 250 } else 252 g_critical ("Corrupted CamelFolder instance at 0x%x (I can't recover from this state, therefore I will leak)\n", priv->folder);251 g_critical ("Corrupted CamelFolder instance at (I can't recover from this state, therefore I will leak)\n"); 253 252 } 254 253 … … 770 769 RefreshFolderInfo *oinfo = thr_user_data; 771 770 TnyProgressInfo *info = NULL; 772 TnyCamelFolderPriv *priv = TNY_CAMEL_FOLDER_GET_PRIVATE (oinfo->self);773 771 774 772 info = tny_progress_info_new (G_OBJECT (oinfo->self), oinfo->status_callback, … … 1019 1017 TnyCamelFolderPriv *priv = ptr->priv; 1020 1018 TnyList *headers = ptr->headers; 1021 CamelFolder *cfol = _tny_camel_folder_get_camel_folder (TNY_CAMEL_FOLDER (self));1022 CamelMessageFlags flags = camel_message_info_flags (mi);1023 1019 1024 1020 /* TODO: Proxy instantiation (happens a lot, could use a pool) */ … … 1172 1168 GetMsgInfo *oinfo = thr_user_data; 1173 1169 TnyProgressInfo *info = NULL; 1174 TnyCamelFolderPriv *priv = TNY_CAMEL_FOLDER_GET_PRIVATE (oinfo->self);1175 1170 1176 1171 info = tny_progress_info_new (G_OBJECT (oinfo->self), oinfo->status_callback, … … 1353 1348 if (!_tny_session_check_operation (TNY_FOLDER_PRIV_GET_SESSION(priv), err, 1354 1349 TNY_FOLDER_ERROR, TNY_FOLDER_ERROR_GET_MSG)) 1355 return ;1350 return NULL; 1356 1351 1357 1352 g_assert (TNY_IS_HEADER (header)); … … 1409 1404 if (!_tny_session_check_operation (TNY_FOLDER_PRIV_GET_SESSION(priv), err, 1410 1405 TNY_FOLDER_ERROR, TNY_FOLDER_ERROR_GET_MSG)) 1411 return ;1406 return NULL; 1412 1407 1413 1408 if (!priv->receive_strat) { … … 1529 1524 if (!_tny_session_check_operation (TNY_FOLDER_PRIV_GET_SESSION(priv), err, 1530 1525 TNY_FOLDER_ERROR, TNY_FOLDER_ERROR_COPY)) 1531 return ;1526 return NULL; 1532 1527 1533 1528 g_assert (TNY_IS_CAMEL_FOLDER (into) || TNY_IS_CAMEL_STORE_ACCOUNT (into)); … … 1569 1564 camel_object_unref (CAMEL_OBJECT (tostore)); 1570 1565 _tny_session_stop_operation (TNY_FOLDER_PRIV_GET_SESSION (priv)); 1571 return ;1566 return NULL; 1572 1567 } 1573 1568 } … … 1969 1964 if (!priv_src->folder || !priv_src->loaded || !CAMEL_IS_FOLDER (priv_src->folder)) 1970 1965 if (!load_folder_no_lock (priv_src)) 1971 return ;1966 return NULL; 1972 1967 1973 1968 if (!priv_dst->folder || !priv_dst->loaded || !CAMEL_IS_FOLDER (priv_dst->folder)) 1974 1969 if (!load_folder_no_lock (priv_dst)) 1975 return ;1970 return NULL; 1976 1971 1977 1972 transfer_msgs_thread_clean (info->self, info->header_list, info->folder_dst, … … 2152 2147 { 2153 2148 TnyCamelFolderPriv *priv = TNY_CAMEL_FOLDER_GET_PRIVATE (self); 2154 gchar *full_name;2155 2149 CamelFolder *cfolder; 2156 2150 CamelFolderInfo *parent_info; … … 2486 2480 { 2487 2481 TnyCamelFolderPriv *priv = TNY_CAMEL_FOLDER_GET_PRIVATE (self); 2488 TnyCamelStoreAccountPriv *apriv = TNY_CAMEL_STORE_ACCOUNT_GET_PRIVATE (priv->account);2489 2490 2482 CamelException ex = CAMEL_EXCEPTION_INITIALISER; 2491 2483 CamelStore *store; gchar *folname; … … 2496 2488 if (!_tny_session_check_operation (TNY_FOLDER_PRIV_GET_SESSION(priv), err, 2497 2489 TNY_FOLDER_STORE_ERROR, TNY_FOLDER_STORE_ERROR_CREATE_FOLDER)) 2498 return ;2490 return NULL; 2499 2491 2500 2492 if (!name || strlen (name) <= 0) … … 2621 2613 { 2622 2614 TnyCamelFolderPriv *priv = TNY_CAMEL_FOLDER_GET_PRIVATE (self); 2623 TnyCamelStoreAccountPriv *apriv = TNY_CAMEL_STORE_ACCOUNT_GET_PRIVATE (priv->account);2624 2615 CamelFolderInfo *iter; 2625 2616 … … 2905 2896 tny_camel_folder_poke_status_default (TnyFolder *self) 2906 2897 { 2907 TnyCamelFolderPriv *priv = TNY_CAMEL_FOLDER_GET_PRIVATE (self);2908 2898 GObject *info = g_object_ref (G_OBJECT (self)); 2909 2899 trunk/libtinymail-camel/tny-camel-full-msg-receive-strategy.c
r1700 r1920 43 43 #include "tny-camel-folder-priv.h" 44 44 #include "tny-camel-msg-header-priv.h" 45 #include "tny-camel-msg-priv.h" 46 #include "tny-camel-mime-part-priv.h" 45 47 46 48 static GObjectClass *parent_class = NULL; trunk/libtinymail-camel/tny-camel-header.c
r1884 r1920 76 76 tny_camel_header_get_replyto (TnyHeader *self) 77 77 { 78 TnyCamelHeader *me = TNY_CAMEL_HEADER (self); 79 const gchar *retval = NULL; 80 81 return retval; 78 return NULL; 82 79 } 83 80 trunk/libtinymail-camel/tny-camel-mime-part.c
r1866 r1920 37 37 #include "tny-camel-mime-part-priv.h" 38 38 #include "tny-camel-msg-header-priv.h" 39 #include "tny-camel-msg-priv.h" 39 40 40 41 #include <camel/camel-url.h> trunk/libtinymail-camel/tny-camel-msg-header.c
r1866 r1920 328 328 tny_camel_msg_header_finalize (GObject *object) 329 329 { 330 TnyCamelMsgHeader *self = (TnyCamelMsgHeader*) object;331 332 /* Read _tny_camel_msg_header_new too! */333 334 330 (*parent_class->finalize) (object); 335 331 trunk/libtinymail-camel/tny-camel-msg-remove-strategy.c
r1858 r1920 71 71 const gchar *id; 72 72 CamelFolder *cfolder; 73 TnyCamelFolderPriv *priv = TNY_CAMEL_FOLDER_GET_PRIVATE (folder);74 73 75 74 g_assert (TNY_IS_CAMEL_FOLDER (folder)); trunk/libtinymail-camel/tny-camel-msg.c
r1866 r1920 221 221 TnyCamelMsg *self = (TnyCamelMsg*) object; 222 222 TnyCamelMsgPriv *priv = TNY_CAMEL_MSG_GET_PRIVATE (self); 223 TnyCamelMimePartPriv *ppriv = TNY_CAMEL_MIME_PART_GET_PRIVATE (self);224 223 225 224 g_mutex_lock (priv->message_lock); trunk/libtinymail-camel/tny-camel-partial-msg-receive-strategy.c
r1700 r1920 43 43 #include "tny-camel-folder-priv.h" 44 44 #include "tny-camel-msg-header-priv.h" 45 #include "tny-camel-msg-priv.h" 45 46 46 47 static GObjectClass *parent_class = NULL; trunk/libtinymail-camel/tny-camel-store-account.c
r1919 r1920 142 142 if (apriv->session) 143 143 { 144 CamelService *oservice = apriv->service;145 146 144 if (camel_exception_is_set (apriv->ex)) 147 145 camel_exception_clear (apriv->ex); … … 915 913 TnyFolder *retval = NULL; 916 914 TnyCamelAccountPriv *apriv = TNY_CAMEL_ACCOUNT_GET_PRIVATE (self); 917 TnyCamelStoreAccountPriv *priv = TNY_CAMEL_STORE_ACCOUNT_GET_PRIVATE (self);918 915 CamelException ex = CAMEL_EXCEPTION_INITIALISER; 919 916 CamelFolderInfo *iter; guint32 flags; CamelStore *store; trunk/libtinymail-camel/tny-camel-stream.c
r1866 r1920 149 149 } 150 150 151 static void152 tny_camel_stream_set_stream (TnyCamelStream *self, CamelStream *stream)153 {154 TnyCamelStreamPriv *priv = TNY_CAMEL_STREAM_GET_PRIVATE (self);155 156 if (priv->stream)157 camel_object_unref (CAMEL_OBJECT (priv->stream));158 159 priv->stream = stream;160 161 return;162 }163 151 164 152 /** trunk/libtinymail-camel/tny-camel-transport-account.c
r1866 r1920 122 122 if (apriv->session) 123 123 { 124 CamelService *oservice = apriv->service;125 126 124 if (camel_exception_is_set (apriv->ex)) 127 125 camel_exception_clear (apriv->ex); … … 151 149 { 152 150 TnyCamelAccountPriv *apriv = TNY_CAMEL_ACCOUNT_GET_PRIVATE (self); 153 CamelException ex = CAMEL_EXCEPTION_INITIALISER;154 151 155 152 if (!apriv->url_string || !apriv->service || !CAMEL_IS_SERVICE (apriv->service))
