On 2008-06-14 08:28:24 +0100, Catalin Marinas wrote: > If the stgit.smtpserver configuration option does not have a > host:port format, it is assumed to be an external tool. For example, > to use sendmail just set this variable to "/usr/sbin/sendmail -t -i" > (see the examples/gitconfig file). Looks good, except that the new feature (and the fact that it's magically triggered if the smtpserver starts with a /) is not documented. Maybe add something like this to the patch: diff --git a/stgit/commands/mail.py b/stgit/commands/mail.py index 4027170..2b1b92c 100644 --- a/stgit/commands/mail.py +++ b/stgit/commands/mail.py @@ -31,10 +31,13 @@ usage = r"""%prog [options] [<patch1>] [<patch2>] [<patch3>..<patch4>] Send a patch or a range of patches by e-mail using the SMTP server specified by the 'stgit.smtpserver' configuration option, or the -'--smtp-server' command line option. The From address and the e-mail -format are generated from the template file passed as argument to -'--template' (defaulting to '.git/patchmail.tmpl' or -'~/.stgit/templates/patchmail.tmpl' or +'--smtp-server' command line option. (You may give the absolute path +to sendmail instead, followed by any sendmail options you wish to +use.) + +The From address and the e-mail format are generated from the template +file passed as argument to '--template' (defaulting to +'.git/patchmail.tmpl' or '~/.stgit/templates/patchmail.tmpl' or '/usr/share/stgit/templates/patchmail.tmpl'). A patch can be sent as attachment using the --attach option in which case the 'mailattch.tmpl' template will be used instead of 'patchmail.tmpl'. @@ -133,8 +136,10 @@ options = [make_option('-a', '--all', help = 'sleep for SECONDS between e-mails sending'), make_option('--refid', help = 'use REFID as the reference id'), - make_option('--smtp-server', metavar = 'HOST[:PORT]', - help = 'SMTP server to use for sending mail'), + make_option('--smtp-server', + metavar = 'HOST[:PORT] or "/path/to/sendmail -t -i"', + help = ('SMTP server (or sendmail program) to use for' + ' sending mail')), make_option('-u', '--smtp-user', metavar = 'USER', help = 'username for SMTP authentication'), make_option('-p', '--smtp-password', metavar = 'PASSWORD', -- Karl Hasselström, kha@xxxxxxxxxxx www.treskal.com/kalle -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html