commit dc613e388b38bdf2f6b52bc5c9245bc055d7f276
parent 3adb84273e8d7f00e1522e63c06bf41fbad2d46e
Author: Paul <paul@claws-mail.org>
Date: Tue, 31 Dec 2024 17:14:09 +0000
show the clip icon in the message list as soon as possible
this was an IMAP problem. previously you would need to open the msg, now it is immediate when 'sync asap' is set, or on clicking 'Synchronise' or 'Download messages'
Diffstat:
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/folder.c b/src/folder.c
@@ -2957,7 +2957,7 @@ gchar *folder_item_fetch_msg_full(FolderItem *item, gint num, gboolean headers,
if (folder->klass->fetch_msg_full == NULL)
return folder_item_fetch_msg(item, num);
- if (item->prefs->offlinesync && prefs_common.real_time_sync)
+ if (item->prefs->offlinesync)
msgfile = folder->klass->fetch_msg_full(folder, item, num,
TRUE, TRUE);
else
@@ -2975,7 +2975,7 @@ gchar *folder_item_fetch_msg_full(FolderItem *item, gint num, gboolean headers,
else
mimeinfo = procmime_scan_queue_file(msgfile);
/* check for attachments */
- if (mimeinfo != NULL) {
+ if (mimeinfo != NULL) {
g_node_children_foreach(mimeinfo->node, G_TRAVERSE_ALL, msginfo_set_mime_flags, msginfo);
procmime_mimeinfo_free_all(&mimeinfo);
diff --git a/src/imap_gtk.c b/src/imap_gtk.c
@@ -1,6 +1,6 @@
/*
* Claws Mail -- a GTK based, lightweight, and fast e-mail client
- * Copyright (C) 1999-2022 the Claws Mail Team and Hiroyuki Yamamoto
+ * Copyright (C) 1999-2024 the Claws Mail Team and Hiroyuki Yamamoto
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -449,8 +449,11 @@ void imap_gtk_synchronise(FolderItem *item, gint days)
for (cur = mlist; cur != NULL; cur = cur->next) {
MsgInfo *msginfo = (MsgInfo *)cur->data;
gint age = (t - msginfo->date_t) / (60*60*24);
- if (days == 0 || age <= days)
+ if (days == 0 || age <= days) {
imap_cache_msg(msginfo->folder, msginfo->msgnum);
+ folder_item_fetch_msg_full(msginfo->folder, msginfo->msgnum,
+ TRUE, TRUE);
+ }
statusbar_progress_all(num++,total, 100);
if (num % 100 == 0)
GTK_EVENTS_FLUSH();