comparison roundup/scripts/roundup_mailgw.py @ 2328:b54ad9ed394a

join adjacent translatable strings
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Tue, 18 May 2004 19:26:32 +0000
parents 3be606e3f58e
children c26bb78d2f0c
comparison
equal deleted inserted replaced
2327:36ae1b14aaab 2328:b54ad9ed394a
12 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 12 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
13 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 13 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
14 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 14 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
15 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 15 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
16 # 16 #
17 # $Id: roundup_mailgw.py,v 1.16 2004-05-12 17:50:58 a1s Exp $ 17 # $Id: roundup_mailgw.py,v 1.17 2004-05-18 19:26:32 a1s Exp $
18 18
19 """Command-line script stub that calls the roundup.mailgw. 19 """Command-line script stub that calls the roundup.mailgw.
20 """ 20 """
21 __docformat__ = 'restructuredtext' 21 __docformat__ = 'restructuredtext'
22 22
30 from roundup.i18n import _ 30 from roundup.i18n import _
31 31
32 def usage(args, message=None): 32 def usage(args, message=None):
33 if message is not None: 33 if message is not None:
34 print message 34 print message
35 print _('Usage: %(program)s [-v] [[-C class] -S field=value]* <instance ' 35 print _(
36 'home> [method]')%{'program': args[0]} 36 """Usage: %(program)s [-v] [[-C class] -S field=value]* <instance home> [method]
37 print _(''' 37
38 Options: 38 Options:
39 -v: print version and exit 39 -v: print version and exit
40 -C / -S: see below 40 -C / -S: see below
41 41
42 The roundup mail gateway may be called in one of four ways: 42 The roundup mail gateway may be called in one of four ways:
43 . with an instance home as the only argument, 43 . with an instance home as the only argument,
44 . with both an instance home and a mail spool file, or 44 . with both an instance home and a mail spool file,
45 . with both an instance home and a POP/APOP server account. 45 . with both an instance home and a POP/APOP server account, or
46 . with both an instance home and a IMAP/IMAPS server account. 46 . with both an instance home and a IMAP/IMAPS server account.
47 47
48 It also supports optional -C and -S arguments that allows you to set a 48 It also supports optional -C and -S arguments that allows you to set a
49 fields for a class created by the roundup-mailgw. The default class if 49 fields for a class created by the roundup-mailgw. The default class if
50 not specified is msg, but the other classes: issue, file, user can 50 not specified is msg, but the other classes: issue, file, user can
92 IMAPS: 92 IMAPS:
93 Connect to an IMAP server over ssl. 93 Connect to an IMAP server over ssl.
94 This supports the same notation as IMAP. 94 This supports the same notation as IMAP.
95 imaps username:password@server [mailbox] 95 imaps username:password@server [mailbox]
96 96
97 ''') 97 """)%{'program': args[0]}
98 return 1 98 return 1
99 99
100 def main(argv): 100 def main(argv):
101 '''Handle the arguments to the program and initialise environment. 101 '''Handle the arguments to the program and initialise environment.
102 ''' 102 '''

Roundup Issue Tracker: http://roundup-tracker.org/