~ubuntu-branches/ubuntu/karmic/cedar-backup2/karmic

« back to all changes in this revision

Viewing changes to CedarBackup2/extend/mbox.py

  • Committer: Bazaar Package Importer
  • Author(s): Kenneth J. Pronovici
  • Date: 2006-12-18 22:59:17 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20061218225917-gwos76xdo3jewj6i
Tags: 2.9.0-1
* New upstream release.
  - Provide way to configure dev=/dev/cdrw and the like (closes: #403546).
  - Fix, clean up and reorganize parts of user manual (closes: #403448, #403662).

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
# Author   : Kenneth J. Pronovici <pronovic@ieee.org>
28
28
# Language : Python (>= 2.3)
29
29
# Project  : Official Cedar Backup Extensions
30
 
# Revision : $Id: mbox.py 964 2006-05-31 03:23:42Z pronovic $
 
30
# Revision : $Id: mbox.py 1020 2006-12-19 04:40:08Z pronovic $
31
31
# Purpose  : Provides an extension to back up mbox email files.
32
32
#
33
33
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
1340
1340
   if fullBackup or collectMode != "incr" or lastRevision is None:
1341
1341
      args = [ "-a", "-u", absolutePath, ]  # remove duplicates but fetch entire mailbox
1342
1342
   else:
1343
 
      revisionDate = lastRevision.strftime("%Y%m%d%H%M%S")
 
1343
      revisionDate = lastRevision.strftime("%Y-%m-%dT%H:%M:%S")  # ISO-8601 format; grepmail calls Date::Parse::str2time()
1344
1344
      args = [ "-a", "-u", "-d", "since %s" % revisionDate, absolutePath, ]
1345
1345
   command = resolveCommand(GREPMAIL_COMMAND)
1346
1346
   result = executeCommand(command, args, returnOutput=False, ignoreStderr=True, doNotLog=True, outputFile=outputFile)[0]