Specifications

68
#DataLine = ''
Message = Messages.GetNext()# ref. http://mail.python.org/pipermail/python-
list/2004-July/270944.html
try:
with open(BaseDir + '\\msgshash.dat', 'wb') as msgshash:
cPickle.dump(SeenMessageHashes, msgshash)
except IOError:
print "Warning - Couldn't save the hashes of the new messages"
except:
print 'ERROR: an unhandled exception occurred, terminating the program.'
raise
finally:
if 'LoggedIn' in locals():
try:
print '\nlogging off from the Exchange server...',
cdo.logoff
print 'ok\n'
except:
print '\nWARNING - Failed to log off from the Exchange server\n'
except pywintypes.com_error, errordetails:
print 'ERROR: COM API error %s (%s) - MAPI may not be available on this machine'
%(errordetails[0], errordetails[1])
sys.exit()
#MissingAttachments = 100 - ProcessedMessages / ProcessedAttachments * 100
if ProcessedMessages:
print 'messages processed: %i' %ProcessedMessages, ' (from %s/%s)'
%(ProcessedInfostoreName, ProcessedFolderName)
print 'data attachments found: %i' %ProcessedAttachments
if SkippedAlreadyParsed:
print 'known messages skipped: %i (already parsed during previous program runs)'
%SkippedAlreadyParsed
if SkippedDuplicated:
print 'repeated messages skipped: %i (due to a bug on the Iridium or NAL side)'
%SkippedDuplicated
print 'new records appended: %i' %AppendedLines
if AppendedSummer: print ' at summer rate: %i' %AppendedSummer
if AppendedWinter: print ' at winter rate: %i' %AppendedWinter
if AppendedWithInstant: print ' with instantaneous data: %i' %AppendedWithInstant
if AppendedDiagnostics: print ' diagnostic: %i' %AppendedDiagnostics
if ApendedMalformed:
print '\nWARNING: %i malformed messages parsed!' %ApendedMalformed,
if FilterMalformed:
print '(using setting: append to IMEI#-F.txt)'
else: