* so we can find what we get. Philip is working on this.
*/
uid = tny_header_dup_uid (header);
- if (!furl) {
+ if (!uid) {
gchar *subject = tny_header_dup_subject (header);
g_warning ("%s: tny_header_get_uid(): returned NULL for message with subject=%s\n", __FUNCTION__, subject);
g_free (subject);
len = (sizeof (buffer) - 1) / 2;
if (strlen (search->body) > len) {
- g_warning ("Search term bigger then chunk."
- "We might not find everything");
+ g_debug ("Search term bigger then chunk."
+ "We might not find everything");
}
stream = tny_mime_part_get_stream (part);
while (!tny_iterator_is_done (iter)) {
- TnyHeader *cur = (TnyHeader *) tny_iterator_get_current (iter);
- const time_t t = tny_header_get_date_sent (cur);
- gboolean found = FALSE;
-
+ TnyHeader *cur;
+ time_t t;
+ gboolean found;
+
+ cur = (TnyHeader *) tny_iterator_get_current (iter);
+ t = tny_header_get_date_sent (cur);
+ found = FALSE;
+
/* Ignore deleted (not yet expunged) emails: */
if (tny_header_get_flags(cur) & TNY_HEADER_FLAG_DELETED)
goto go_next;
-
+
if (helper->search->flags & MODEST_SEARCH_BEFORE)
if (!(t <= helper->search->end_date))
goto go_next;