This option is similar to the --sleep option for the mail command, i.e. the
number of seconds between sending two consecutive patches.
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
#smtpuser: username
#smtppassword: password
+# delay between messages in seconds (defaults to 2)
+#smtpdelay: 2
+
# stg will look for this first, then look for the EDITOR environmental
# variable, then default to using 'vi'
#editor: /usr/bin/vi
if options.sleep != None:
sleep = options.sleep
else:
- sleep = 2
+ sleep = config.getint('stgit', 'smtpdelay')
# send the cover message (if any)
if options.cover or options.edit:
config.add_section('stgit')
config.set('stgit', 'autoresolved', 'no')
config.set('stgit', 'smtpserver', 'localhost:25')
+config.set('stgit', 'smtpdelay', '2')
config.set('stgit', 'merger',
'diff3 -L local -L older -L remote -m -E ' \
'"%(branch1)s" "%(ancestor)s" "%(branch2)s" > "%(output)s"')