'Check to see if the given message is newer than date (a
time_struct) according to the maildir name which should begin
with a timestamp.'

def _iswithintime(self, messagename, date):

    timestampmatch = re_timestampmatch.search(messagename)
    if (not timestampmatch):
        return True
    timestampstr = timestampmatch.group()
    timestamplong = int(timestampstr)
    if (timestamplong < time.mktime(date)):
        return False
    else:
        return True
