Update of /pack/anoncvs/sylpheedclaws/sylpheed-claws/src
In directory sunsite.dk:/tmp/cvs-serv18271/src
Modified Files:
Tag: gtk2
mh.c
Log Message:
2006-05-29 [paul] 2.2.0cvs63
* src/mh.c
fetch full message when moving mails
from another mailbox, (fixed data loss
when filtering from IMAP to MH, introduced
in 2.2.0cvs57).
Thanks to Colin
Index: mh.c
===================================================================
RCS file: /pack/anoncvs/sylpheedclaws/sylpheed-claws/src/mh.c,v
retrieving revision 1.79.2.32
retrieving revision 1.79.2.33
diff -u -d -r1.79.2.32 -r1.79.2.33
--- mh.c 2006/05/26 08:32:07 1.79.2.32
+++ mh.c 2006/05/29 09:00:26 1.79.2.33
@@ -465,6 +465,7 @@
MsgInfoList *cur = NULL;
gint curnum = 0, total = 0;
gchar *srcpath = NULL;
+ gboolean full_fetch = FALSE;
g_return_val_if_fail(dest != NULL, -1);
g_return_val_if_fail(msglist != NULL, -1);
@@ -478,6 +479,9 @@
return -1;
}
+ if (msginfo->folder->folder != dest->folder)
+ full_fetch = TRUE;
+
if (dest->last_num < 0) {
mh_get_last_num(folder, dest);
if (dest->last_num < 0) return -1;
@@ -513,7 +517,13 @@
if (!msginfo) {
goto err_reset_status;
}
- srcfile = g_strconcat(srcpath, G_DIR_SEPARATOR_S, itos(msginfo->msgnum), NULL);
+ if (!full_fetch) {
+ srcfile = g_strconcat(srcpath,
+ G_DIR_SEPARATOR_S,
+ itos(msginfo->msgnum), NULL);
+ } else {
+ srcfile = procmsg_get_message_file(msginfo);
+ }
if (!srcfile) {
goto err_reset_status;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.