Re: Background flist sometimes misses folders?

Harvey Eneman <[email protected]> Fri, 18 Mar 2005 10:56:53 -0800
Newsgroups gmane.mail.exmh.devel
Message-ID <[email protected]>
Chris,

I have had similar experiences.  I previously posted a patch to flist.tcl 
(attached below) which still works for me.  As I understood the problem, it 
was simply that the when the background process thinks that it has already 
reported the current sequence to the foreground process, it does not send it 
again.  The solution I provided in the patch was to not cache the unseen 
sequence.

Regards,

Harv

_______________________________________________
Exmh-workers mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/exmh-workers
flist.tcl.patch (application/x-patch, 1.1 KB)
*** flist.tcl.orig	Sat Jan  8 11:44:05 2005
--- flist.tcl	Mon Sep  6 14:32:39 2004
***************
*** 303,309 ****
  }
  
  proc FlistFindSeqsInner {} {
!     global flist seqwin flistcache
      if {[catch {
      FlistGetContext
      foreach folder $flist(unseenfolders) {
--- 303,309 ----
  }
  
  proc FlistFindSeqsInner {} {
!     global flist seqwin flistcache mhProfile
      if {[catch {
      FlistGetContext
      foreach folder $flist(unseenfolders) {
***************
*** 316,322 ****
                    # Cache added 2/11/03
                    # Sequence is different than last time we checked
  
!                   set flistcache($folder,$seq) $seqlist
                    BgRPC Seq_Set $folder $seq $seqlist
                  }
              }
--- 316,324 ----
                    # Cache added 2/11/03
                    # Sequence is different than last time we checked
  
! 	          if {$seq != $mhProfile(unseen-sequence)} {
!                     set flistcache($folder,$seq) $seqlist
! 	          }
                    BgRPC Seq_Set $folder $seq $seqlist
                  }
              }
(unnamed) (message/rfc822, 6.6 KB) - not displayed
signature.asc (application/pgp-signature, 224 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (SunOS)
Comment: Exmh version 2.6.3 04/04/2003

iD8DBQFCOyRzJWLrSYxEfJMRAusAAKCbbUkboCJzXIZ9tv9fKpovq6wurgCfQb5r
AdP7D5gETRA3hHRzCHmE1j8=
=vGi1
-----END PGP SIGNATURE-----