[Commits] [SCM] claws branch, master, updated. 4.3.0-48-gdc613e388
paul at claws-mail.org
paul at claws-mail.org
Tue Dec 31 17:14:13 UTC 2024
The branch, master has been updated
via dc613e388b38bdf2f6b52bc5c9245bc055d7f276 (commit)
from 3adb84273e8d7f00e1522e63c06bf41fbad2d46e (commit)
Summary of changes:
src/folder.c | 4 ++--
src/imap_gtk.c | 7 +++++--
2 files changed, 7 insertions(+), 4 deletions(-)
- Log -----------------------------------------------------------------
commit dc613e388b38bdf2f6b52bc5c9245bc055d7f276
Author: Paul <paul at claws-mail.org>
Date: Tue Dec 31 17:14:09 2024 +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'
diff --git a/src/folder.c b/src/folder.c
index d22add68f..b02b57e76 100644
--- 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
index 3184d56c9..1b67eae24 100644
--- 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();
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list