/head: changeset 121
Added -o (run only once) option with patch sent in by Martijn Pieters.
This commit is contained in:
parent
f35641b53f
commit
289412c435
@ -2,6 +2,7 @@ offlineimap (3.0.1) unstable; urgency=low
|
||||
|
||||
* Detabified the source.
|
||||
* Added UI list to the manpage.
|
||||
* Added -o (run only once) option with patch sent in by Martijn Pieters.
|
||||
|
||||
-- John Goerzen <jgoerzen@complete.org> Fri, 12 Jul 2002 07:28:24 -0500
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
.\" First parameter, NAME, should be all caps
|
||||
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
|
||||
.\" other parameters are allowed: see man(7), man(1)
|
||||
.TH OFFLINEIMAP 1 "July 11, 2002" "John Goerzen" "OfflineIMAP manual"
|
||||
.TH OFFLINEIMAP 1 "July 12, 2002" "John Goerzen" "OfflineIMAP manual"
|
||||
.\" Please adjust this date whenever revising the manpage.
|
||||
.\"
|
||||
.\" Some roff macros, for reference:
|
||||
@ -33,6 +33,9 @@ OfflineIMAP \- Powerful IMAP/Maildir synchronization and reader support
|
||||
.BI \-d
|
||||
]
|
||||
[
|
||||
.BI \-o
|
||||
]
|
||||
[
|
||||
.BI \-u " interface"
|
||||
]
|
||||
|
||||
@ -237,6 +240,9 @@ will contain full IMAP protocol in plain text, including passwords, so
|
||||
take care to remove that from the debugging output before sending it
|
||||
to anyone else.
|
||||
.TP
|
||||
.B \-o
|
||||
Run only once, ignoring any autorefresh setting in the config file.
|
||||
.TP
|
||||
.B \-h, \-\-help
|
||||
Show summary of options.
|
||||
.TP
|
||||
|
@ -29,7 +29,7 @@ if '--help' in sys.argv[1:]:
|
||||
sys.stdout.write(version.cmdhelp + "\n")
|
||||
sys.exit(0)
|
||||
|
||||
for optlist in getopt(sys.argv[1:], '1a:c:du:h')[0]:
|
||||
for optlist in getopt(sys.argv[1:], '1oa:c:du:h')[0]:
|
||||
options[optlist[0]] = optlist[1]
|
||||
|
||||
if '-d' in options:
|
||||
@ -56,6 +56,8 @@ else:
|
||||
ui = offlineimap.ui.detector.findUI(config)
|
||||
ui.init_banner()
|
||||
|
||||
if '-o' in options and config.has_option("general", "autorefresh"):
|
||||
config.remove_option("general", "autorefresh")
|
||||
|
||||
metadatadir = os.path.expanduser(config.get("general", "metadata"))
|
||||
if not os.path.exists(metadatadir):
|
||||
|
Loading…
Reference in New Issue
Block a user