IMAP check problems - again



It looks like *nothing* is checked now, when "Check IMAP mailboxes" and
"Check INBOX only" are enabled. The problem appears to be that mailbox name
(an arbitrary string entered by the user) rather than server path is passed
to imap_check_test(). Possible fix:


***************
*** 1468,1474 ****
      if(mbnode->mailbox) { /* mailbox, not a folder */
  	if (!LIBBALSA_IS_MAILBOX_IMAP(mbnode->mailbox) ||
  	    imap_check_test(mbnode->dir 
! 			    ? mbnode->dir : mbnode->mailbox->name)) {
  	    gdk_threads_enter();
  	    libbalsa_mailbox_check(mbnode->mailbox);
  	    gdk_threads_leave();
--- 1476,1482 ----
      if(mbnode->mailbox) { /* mailbox, not a folder */
  	if (!LIBBALSA_IS_MAILBOX_IMAP(mbnode->mailbox) ||
  	    imap_check_test(mbnode->dir 
! 			    ? mbnode->dir : LIBBALSA_MAILBOX_IMAP(mbnode->mailbox)->path))
{
  	    gdk_threads_enter();
  	    libbalsa_mailbox_check(mbnode->mailbox);
  	    gdk_threads_leave();

-- 
Toralf Lund <toralf@kscanners.com>  +47 66 85 51 22
Kongsberg Scanners AS               +47 66 85 51 00 (switchboard)
http://www.kscanners.no/~toralf     +47 66 85 51 01 (fax)




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]