0.9.3claws36

* src/procmsg.c
        fix wrong flags in MsgInfo returned by
        procmsg_msginfo_get_full_info()

(closes Bug 221 Deleting messages from the Message View gives incorrect
 new/unread message counts in the folder view)

* src/plugins/spamassassin/spamassassin_gtk.c
        add gettext macro for prefs page title
This commit is contained in:
Christoph Hohmann 2003-07-20 18:04:11 +00:00
parent ec4b114dc1
commit fd9527c0f0
5 changed files with 27 additions and 4 deletions

View file

@ -1,3 +1,15 @@
2003-07-20 [christoph] 0.9.3claws36
* src/procmsg.c
fix wrong flags in MsgInfo returned by
procmsg_msginfo_get_full_info()
(closes Bug 221 Deleting messages from the Message View gives incorrect
new/unread message counts in the folder view)
* src/plugins/spamassassin/spamassassin_gtk.c
add gettext macro for prefs page title
2003-07-20 [paul] 0.9.3claws35
* src/mimeview.c

View file

@ -11,7 +11,7 @@ MINOR_VERSION=9
MICRO_VERSION=3
INTERFACE_AGE=0
BINARY_AGE=0
EXTRA_VERSION=35
EXTRA_VERSION=36
VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws${EXTRA_VERSION}
dnl set $target

View file

@ -1638,7 +1638,7 @@ static void add_msginfo_to_cache(FolderItem *item, MsgInfo *newmsginfo, MsgInfo
static void remove_msginfo_from_cache(FolderItem *item, MsgInfo *msginfo)
{
if (!item->cache)
folder_item_read_cache(item);
folder_item_read_cache(item);
if (MSG_IS_NEW(msginfo->flags) && !MSG_IS_IGNORE_THREAD(msginfo->flags))
msginfo->folder->new_msgs--;
@ -1965,7 +1965,7 @@ gint folder_item_move_msgs_with_dest(FolderItem *dest, GSList *msglist)
num = GPOINTER_TO_INT(l2->data);
l2 = g_slist_next(l2);
if ((num >= 0) && (item->folder->klass->remove_msg != NULL)) {
item->folder->klass->remove_msg(item->folder,
msginfo->folder,

View file

@ -279,7 +279,7 @@ static struct SpamAssassinPage spamassassin_page;
gint plugin_init(gchar **error)
{
spamassassin_page.page.path = "Filtering/SpamAssassin";
spamassassin_page.page.path = _("Filtering/SpamAssassin");
spamassassin_page.page.create_widget = spamassassin_create_widget_func;
spamassassin_page.page.destroy_widget = spamassassin_destroy_widget_func;
spamassassin_page.page.save_page = spamassassin_save_func;

View file

@ -851,11 +851,21 @@ MsgInfo *procmsg_msginfo_copy(MsgInfo *msginfo)
MsgInfo *procmsg_msginfo_get_full_info(MsgInfo *msginfo)
{
#if 0
MsgInfo *full_msginfo;
gchar *file;
#endif
if (msginfo == NULL) return NULL;
/*
* In Claws we simply return a new reference to the same msginfo.
* otherwise the new msginfo has wrong flags and causes incorrect
* msgcounts... TODO: fill in data from full_msginfo into msginfo,
* we can then keep the new data in the cache
*/
return procmsg_msginfo_new_ref(msginfo);
#if 0
file = procmsg_get_message_file(msginfo);
if (!file) {
g_warning("procmsg_msginfo_get_full_info(): can't get message file.\n");
@ -877,6 +887,7 @@ MsgInfo *procmsg_msginfo_get_full_info(MsgInfo *msginfo)
procmsg_msginfo_set_to_folder(full_msginfo, msginfo->to_folder);
return full_msginfo;
#endif
}
void procmsg_msginfo_free(MsgInfo *msginfo)