From: Sebastian B. <sb...@us...> - 2013-12-24 09:31:08
|
Update of /cvsroot/simplemail/simplemail In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv1042 Modified Files: simplemail.c Log Message: Function callback_new_mail_to_folder() will now also copy the mail to the imap server. Index: simplemail.c =================================================================== RCS file: /cvsroot/simplemail/simplemail/simplemail.c,v retrieving revision 1.232 retrieving revision 1.233 diff -u -d -r1.232 -r1.233 --- simplemail.c 2 Jan 2013 17:45:31 -0000 1.232 +++ simplemail.c 24 Dec 2013 09:31:05 -0000 1.233 @@ -1395,6 +1395,12 @@ main_refresh_folder(folder); read_refresh_prevnext_button(folder); + + /* TODO: Perhaps it would be better to do omit the previous copy operation if this condition holds */ + if (folder->is_imap) + { + imap_append_mail(mail, folder->path, folder); + } } chdir(buf); |