]> code.delx.au - offlineimap/blobdiff - offlineimap/version.py
Add option '-k' for overriding config options
[offlineimap] / offlineimap / version.py
index c715ab52a4a9077b78103536737ca53841750ca6..0a46dec015f326e7a82a0d5cfc040dc674d6e02c 100644 (file)
@@ -1,5 +1,5 @@
 productname = 'OfflineIMAP'
-versionstr = "5.99.0"
+versionstr = "5.99.4"
 
 versionlist = versionstr.split(".")
 major = versionlist[0]
@@ -34,10 +34,16 @@ You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA"""
 
-cmdhelp = """
+def getcmdhelp():
+    from offlineimap.ui import detector
+    import os
+    uilist = ""
+    for ui in detector.DEFAULT_UI_LIST:
+        uilist += "                " + ui + os.linesep
+    return """
        offlineimap [ -1 ] [ -P profiledir ] [ -a accountlist ]  [
        -c configfile  ] [ -d debugtype[,debugtype...]  ] [ -o ] [
-       -u interface ]
+       -u interface ] [ -q ]
 
        offlineimap -h | --help
 
@@ -88,9 +94,20 @@ cmdhelp = """
               one else.  The maildir option will enable debugging
               for certain Maildir operations.
 
-       -o     Run  only once, ignoring any autorefresh setting in
+       -k [section:]option=value
+              Override configuration file option.  If"section" is
+              omitted, it defaults to "general".  Any underscores
+              "_" in the section name are replaced with spaces:
+              for instance,  to override  option "autorefresh" in
+              the "[Account Personal]" section in the config file
+              one would use "-k Account_Personal:autorefresh=30".
+              
+       -o     Run only once,  ignoring any autorefresh setting in
               the config file.
 
+       -q     Run  only quick synchronizations.   Ignore any flag
+              updates on IMAP servers.
+
        -h, --help
               Show summary of options.
 
@@ -102,8 +119,4 @@ cmdhelp = """
               states that it cannot be.   Use  this  option  with
               care.   The  pre-defined  options, described in the
               USER INTERFACES section of the man page, are:
-"""
-from offlineimap.ui import detector
-import os
-for ui in detector.DEFAULT_UI_LIST:
-    cmdhelp += "                " + ui + os.linesep
+""" + uilist