msglist fetch fixes
This commit is contained in:
+3
-5
@@ -232,11 +232,9 @@ proc fetchiidb {url echos dbdir dolog} {
|
||||
set oldmsgids [lmap s [split [readfile $echofile] "\n"] {string trim $s}]
|
||||
}
|
||||
# pre-filter the new message IDs to fetch
|
||||
set newmsgids [lmap m [concat $oldmsgids $msgids] {
|
||||
if {$m in $oldmsgids && $m in $msgids} continue
|
||||
if {$m eq {}} continue
|
||||
set m
|
||||
}]
|
||||
set newmsgids [concat $oldmsgids $msgids]
|
||||
foreach e $newmsgids {dict set tmp $e 1}
|
||||
set newmsgids [dict keys $tmp]
|
||||
# save the echo index file with all message IDs
|
||||
writefileln $echofile [join $msgids "\n"]
|
||||
if {$dolog eq 1} {puts "Fetching [llength $newmsgids] new messages from $echoname..."}
|
||||
|
||||
Reference in New Issue
Block a user