If there is no message, discard the record.
This means the if newmesg is not empty, then there really
are new messages
#
# FIXME
-# - trim newmesg and draft when possible.
# - remove old multipart files
#
# Store SMS messages is a bunch of files, one per month.
if s:
s.state = state
rv.append(s)
+ elif state == 'NEW' or state == 'DRAFT':
+ def del1(l, tm):
+ if tm in l:
+ l.remove(tm)
+ return True
+ return False
+ self.load_list('draft', del1, t)
+ self.load_list('newmesg', del1, t)
+
return(0, rv)
def getmesgs(self, last):