Update of /cvsroot/simplemail/simplemail
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv1455
Modified Files:
imap.c simplemail.c
Log Message:
Logging added.
Index: simplemail.c
===================================================================
RCS file: /cvsroot/simplemail/simplemail/simplemail.c,v
retrieving revision 1.233
retrieving revision 1.234
diff -u -d -r1.233 -r1.234
--- simplemail.c 24 Dec 2013 09:31:05 -0000 1.233
+++ simplemail.c 24 Dec 2013 09:32:28 -0000 1.234
@@ -320,11 +320,14 @@
mail = folder_imap_find_mail_by_uid(f, uid);
if (!mail)
{
+ SM_DEBUGF(20, ("Couldn't find mail with uid %u\n", uid));
folder_unlock(f);
folders_unlock();
return;
}
+ SM_DEBUGF(20, ("Deleting local mail for %s@server://%s with uid %u\n", user, server, path, uid));
+
folder_move_mail(f,folder_deleted(),mail);
main_refresh_folder(f);
main_refresh_folder(folder_deleted());
Index: imap.c
===================================================================
RCS file: /cvsroot/simplemail/simplemail/imap.c,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -d -r1.83 -r1.84
--- imap.c 24 Dec 2013 09:31:23 -0000 1.83
+++ imap.c 24 Dec 2013 09:32:28 -0000 1.84
@@ -147,6 +147,8 @@
*num_of_todel_mails_ptr = num_of_todel_mails;
}
folder_unlock(folder);
+
+ SM_DEBUGF(20, ("num_of_mails=%d, num_of_todel_mails=%d\n", num_of_mails, num_of_todel_mails));
SM_RETURN(success,"%d");
return success;
}
@@ -166,6 +168,7 @@
int i,j;
SM_ENTER;
+ SM_DEBUGF(20,("num_of_local_mails=%d, num_remote_mails=%d\n", num_of_local_mails, num_remote_mails));
i = j = 0;
while (i<num_of_local_mails && j<num_remote_mails)
|