| Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1 | git-send-email(1) |
| 2 | ================= |
| 3 | |
| 4 | NAME |
| 5 | ---- |
| 6 | git-send-email - Send a collection of patches as emails |
| 7 | |
| 8 | |
| 9 | SYNOPSIS |
| 10 | -------- |
| 11 | 'git-send-email' [options] <file|directory> [... file|directory] |
| 12 | |
| 13 | |
| 14 | |
| 15 | DESCRIPTION |
| 16 | ----------- |
| 17 | Takes the patches given on the command line and emails them out. |
| 18 | |
| 19 | The header of the email is configurable by command line options. If not |
| 20 | specified on the command line, the user will be prompted with a ReadLine |
| 21 | enabled interface to provide the necessary information. |
| 22 | |
| 23 | OPTIONS |
| 24 | ------- |
| 25 | The options available are: |
| 26 | |
| Junio C Hamano | 97f518c | 2006-06-22 19:49:35 | [diff] [blame] | 27 | --bcc:: |
| 28 | Specify a "Bcc:" value for each email. |
| Junio C Hamano | a3fd83c | 2007-03-02 10:34:36 | [diff] [blame] | 29 | + |
| 30 | The --bcc option must be repeated for each user you want on the bcc list. |
| Junio C Hamano | 97f518c | 2006-06-22 19:49:35 | [diff] [blame] | 31 | |
| Junio C Hamano | c915412 | 2006-02-15 02:22:06 | [diff] [blame] | 32 | --cc:: |
| 33 | Specify a starting "Cc:" value for each email. |
| Junio C Hamano | a3fd83c | 2007-03-02 10:34:36 | [diff] [blame] | 34 | + |
| 35 | The --cc option must be repeated for each user you want on the cc list. |
| Junio C Hamano | 97f518c | 2006-06-22 19:49:35 | [diff] [blame] | 36 | |
| Junio C Hamano | c5653d7 | 2007-09-02 06:25:16 | [diff] [blame] | 37 | --cc-cmd:: |
| 38 | Specify a command to execute once per patch file which |
| 39 | should generate patch file specific "Cc:" entries. |
| 40 | Output of this command must be single email address per line. |
| 41 | Default is the value of 'sendemail.cccmd' configuration value. |
| 42 | |
| Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 43 | --chain-reply-to, --no-chain-reply-to:: |
| 44 | If this is set, each email will be sent as a reply to the previous |
| 45 | email sent. If disabled with "--no-chain-reply-to", all emails after |
| 46 | the first will be sent as replies to the first email sent. When using |
| 47 | this, it is recommended that the first file given be an overview of the |
| 48 | entire patch series. |
| Junio C Hamano | c51fede | 2007-03-12 07:29:20 | [diff] [blame] | 49 | Default is the value of the 'sendemail.chainreplyto' configuration |
| 50 | value; if that is unspecified, default to --chain-reply-to. |
| Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 51 | |
| Junio C Hamano | 86f7588 | 2006-02-06 02:27:23 | [diff] [blame] | 52 | --compose:: |
| Junio C Hamano | f6002a9 | 2007-07-20 10:28:22 | [diff] [blame] | 53 | Use $GIT_EDITOR, core.editor, $VISUAL, or $EDITOR to edit an |
| 54 | introductory message for the patch series. |
| Junio C Hamano | 86f7588 | 2006-02-06 02:27:23 | [diff] [blame] | 55 | |
| 56 | --from:: |
| 57 | Specify the sender of the emails. This will default to |
| 58 | the value GIT_COMMITTER_IDENT, as returned by "git-var -l". |
| 59 | The user will still be prompted to confirm this entry. |
| 60 | |
| 61 | --in-reply-to:: |
| 62 | Specify the contents of the first In-Reply-To header. |
| Junio C Hamano | b63afff | 2007-05-01 03:05:55 | [diff] [blame] | 63 | Subsequent emails will refer to the previous email |
| Junio C Hamano | 86f7588 | 2006-02-06 02:27:23 | [diff] [blame] | 64 | instead of this if --chain-reply-to is set (the default) |
| 65 | Only necessary if --compose is also set. If --compose |
| 66 | is not set, this will be prompted for. |
| 67 | |
| Junio C Hamano | 6865ebd | 2007-06-28 08:16:14 | [diff] [blame] | 68 | --signed-off-by-cc, --no-signed-off-by-cc:: |
| 69 | If this is set, add emails found in Signed-off-by: or Cc: lines to the |
| 70 | cc list. |
| Junio C Hamano | 1b11dcb | 2007-08-18 07:20:55 | [diff] [blame] | 71 | Default is the value of 'sendemail.signedoffcc' configuration value; |
| Junio C Hamano | 6865ebd | 2007-06-28 08:16:14 | [diff] [blame] | 72 | if that is unspecified, default to --signed-off-by-cc. |
| Junio C Hamano | c915412 | 2006-02-15 02:22:06 | [diff] [blame] | 73 | |
| Junio C Hamano | 86f7588 | 2006-02-06 02:27:23 | [diff] [blame] | 74 | --quiet:: |
| 75 | Make git-send-email less verbose. One line per email should be |
| 76 | all that is output. |
| 77 | |
| Junio C Hamano | 6852289 | 2007-09-06 01:33:41 | [diff] [blame] | 78 | --identity:: |
| 79 | A configuration identity. When given, causes values in the |
| 80 | 'sendemail.<identity>' subsection to take precedence over |
| 81 | values in the 'sendemail' section. The default identity is |
| 82 | the value of 'sendemail.identity'. |
| 83 | |
| Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 84 | --smtp-server:: |
| Junio C Hamano | b63afff | 2007-05-01 03:05:55 | [diff] [blame] | 85 | If set, specifies the outgoing SMTP server to use (e.g. |
| 86 | `smtp.example.com` or a raw IP address). Alternatively it can |
| 87 | specify a full pathname of a sendmail-like program instead; |
| Junio C Hamano | b19b4f0 | 2006-10-29 20:47:22 | [diff] [blame] | 88 | the program must support the `-i` option. Default value can |
| 89 | be specified by the 'sendemail.smtpserver' configuration |
| 90 | option; the built-in default is `/usr/sbin/sendmail` or |
| 91 | `/usr/lib/sendmail` if such program is available, or |
| 92 | `localhost` otherwise. |
| Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 93 | |
| Junio C Hamano | 4fd58d4 | 2007-09-30 00:51:14 | [diff] [blame] | 94 | --smtp-server-port:: |
| 95 | Specifies a port different from the default port (SMTP |
| 96 | servers typically listen to smtp port 25 and ssmtp port |
| 97 | 465). |
| 98 | |
| Junio C Hamano | 9c33415 | 2008-02-12 03:18:52 | [diff] [blame] | 99 | --smtp-user:: |
| 100 | Username for SMTP-AUTH. In place of this option, the following |
| 101 | configuration variables can be specified: |
| 102 | + |
| 103 | -- |
| 104 | * sendemail.smtpuser |
| 105 | * sendemail.<identity>.smtpuser (see sendemail.identity). |
| 106 | -- |
| 107 | + |
| 108 | However, --smtp-user always overrides these variables. |
| 109 | + |
| 110 | If a username is not specified (with --smtp-user or a |
| 111 | configuration variable), then authentication is not attempted. |
| 112 | |
| 113 | --smtp-pass:: |
| 114 | Password for SMTP-AUTH. The argument is optional: If no |
| 115 | argument is specified, then the empty string is used as |
| 116 | the password. |
| 117 | + |
| 118 | In place of this option, the following configuration variables |
| 119 | can be specified: |
| 120 | + |
| 121 | -- |
| 122 | * sendemail.smtppass |
| 123 | * sendemail.<identity>.smtppass (see sendemail.identity). |
| 124 | -- |
| 125 | + |
| 126 | However, --smtp-pass always overrides these variables. |
| 127 | + |
| 128 | Furthermore, passwords need not be specified in configuration files |
| 129 | or on the command line. If a username has been specified (with |
| 130 | --smtp-user or a configuration variable), but no password has been |
| 131 | specified (with --smtp-pass or a configuration variable), then the |
| 132 | user is prompted for a password while the input is masked for privacy. |
| Junio C Hamano | 6852289 | 2007-09-06 01:33:41 | [diff] [blame] | 133 | |
| 134 | --smtp-ssl:: |
| 135 | If set, connects to the SMTP server using SSL. |
| 136 | Default is the value of the 'sendemail.smtpssl' configuration value; |
| 137 | if that is unspecified, does not use SSL. |
| 138 | |
| Junio C Hamano | 86f7588 | 2006-02-06 02:27:23 | [diff] [blame] | 139 | --subject:: |
| Junio C Hamano | a77a513 | 2007-06-08 16:13:44 | [diff] [blame] | 140 | Specify the initial subject of the email thread. |
| Junio C Hamano | 86f7588 | 2006-02-06 02:27:23 | [diff] [blame] | 141 | Only necessary if --compose is also set. If --compose |
| 142 | is not set, this will be prompted for. |
| 143 | |
| Junio C Hamano | 6865ebd | 2007-06-28 08:16:14 | [diff] [blame] | 144 | --suppress-from, --no-suppress-from:: |
| Junio C Hamano | 422cfec | 2007-11-08 08:07:45 | [diff] [blame] | 145 | If this is set, do not add the From: address to the cc: list. |
| Junio C Hamano | 6865ebd | 2007-06-28 08:16:14 | [diff] [blame] | 146 | Default is the value of 'sendemail.suppressfrom' configuration value; |
| Junio C Hamano | cae8627 | 2007-08-21 02:20:49 | [diff] [blame] | 147 | if that is unspecified, default to --no-suppress-from. |
| Junio C Hamano | c915412 | 2006-02-15 02:22:06 | [diff] [blame] | 148 | |
| Junio C Hamano | 9c33415 | 2008-02-12 03:18:52 | [diff] [blame] | 149 | --suppress-cc:: |
| 150 | Specify an additional category of recipients to suppress the |
| 151 | auto-cc of. 'self' will avoid including the sender, 'author' will |
| 152 | avoid including the patch author, 'cc' will avoid including anyone |
| 153 | mentioned in Cc lines in the patch, 'sob' will avoid including |
| 154 | anyone mentioned in Signed-off-by lines, and 'cccmd' will avoid |
| 155 | running the --cc-cmd. 'all' will suppress all auto cc values. |
| 156 | Default is the value of 'sendemail.suppresscc' configuration value; |
| 157 | if that is unspecified, default to 'self' if --suppress-from is |
| 158 | specified, as well as 'sob' if --no-signed-off-cc is specified. |
| 159 | |
| Junio C Hamano | 6865ebd | 2007-06-28 08:16:14 | [diff] [blame] | 160 | --thread, --no-thread:: |
| Junio C Hamano | ddc5ad4 | 2007-06-27 07:14:52 | [diff] [blame] | 161 | If this is set, the In-Reply-To header will be set on each email sent. |
| Junio C Hamano | 6865ebd | 2007-06-28 08:16:14 | [diff] [blame] | 162 | If disabled with "--no-thread", no emails will have the In-Reply-To |
| Junio C Hamano | ddc5ad4 | 2007-06-27 07:14:52 | [diff] [blame] | 163 | header set. |
| Junio C Hamano | 6865ebd | 2007-06-28 08:16:14 | [diff] [blame] | 164 | Default is the value of the 'sendemail.thread' configuration value; |
| 165 | if that is unspecified, default to --thread. |
| Junio C Hamano | ddc5ad4 | 2007-06-27 07:14:52 | [diff] [blame] | 166 | |
| Junio C Hamano | 45889b4 | 2007-04-26 07:20:04 | [diff] [blame] | 167 | --dry-run:: |
| 168 | Do everything except actually send the emails. |
| 169 | |
| 170 | --envelope-sender:: |
| 171 | Specify the envelope sender used to send the emails. |
| 172 | This is useful if your default address is not the address that is |
| 173 | subscribed to a list. If you use the sendmail binary, you must have |
| 174 | suitable privileges for the -f parameter. |
| 175 | |
| Junio C Hamano | 86f7588 | 2006-02-06 02:27:23 | [diff] [blame] | 176 | --to:: |
| 177 | Specify the primary recipient of the emails generated. |
| 178 | Generally, this will be the upstream maintainer of the |
| 179 | project involved. |
| Junio C Hamano | f7bb669 | 2008-01-27 08:23:46 | [diff] [blame] | 180 | Default is the value of the 'sendemail.to' configuration value; |
| 181 | if that is unspecified, this will be prompted for. |
| Junio C Hamano | a3fd83c | 2007-03-02 10:34:36 | [diff] [blame] | 182 | + |
| 183 | The --to option must be repeated for each user you want on the to list. |
| Junio C Hamano | 97f518c | 2006-06-22 19:49:35 | [diff] [blame] | 184 | |
| Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 185 | |
| Junio C Hamano | c51fede | 2007-03-12 07:29:20 | [diff] [blame] | 186 | CONFIGURATION |
| 187 | ------------- |
| Junio C Hamano | 6852289 | 2007-09-06 01:33:41 | [diff] [blame] | 188 | sendemail.identity:: |
| 189 | The default configuration identity. When specified, |
| 190 | 'sendemail.<identity>.<item>' will have higher precedence than |
| 191 | 'sendemail.<item>'. This is useful to declare multiple SMTP |
| 192 | identities and to hoist sensitive authentication information |
| Junio C Hamano | fe98605 | 2007-12-19 07:33:38 | [diff] [blame] | 193 | out of the repository and into the global configuration file. |
| Junio C Hamano | 6852289 | 2007-09-06 01:33:41 | [diff] [blame] | 194 | |
| Junio C Hamano | c51fede | 2007-03-12 07:29:20 | [diff] [blame] | 195 | sendemail.aliasesfile:: |
| 196 | To avoid typing long email addresses, point this to one or more |
| 197 | email aliases files. You must also supply 'sendemail.aliasfiletype'. |
| 198 | |
| 199 | sendemail.aliasfiletype:: |
| 200 | Format of the file(s) specified in sendemail.aliasesfile. Must be |
| 201 | one of 'mutt', 'mailrc', 'pine', or 'gnus'. |
| 202 | |
| Junio C Hamano | c2b4709 | 2007-10-25 06:50:31 | [diff] [blame] | 203 | sendemail.to:: |
| 204 | Email address (or alias) to always send to. |
| 205 | |
| Junio C Hamano | c5653d7 | 2007-09-02 06:25:16 | [diff] [blame] | 206 | sendemail.cccmd:: |
| 207 | Command to execute to generate per patch file specific "Cc:"s. |
| 208 | |
| Junio C Hamano | c51fede | 2007-03-12 07:29:20 | [diff] [blame] | 209 | sendemail.bcc:: |
| 210 | Email address (or alias) to always bcc. |
| 211 | |
| 212 | sendemail.chainreplyto:: |
| 213 | Boolean value specifying the default to the '--chain_reply_to' |
| 214 | parameter. |
| 215 | |
| 216 | sendemail.smtpserver:: |
| Junio C Hamano | 6852289 | 2007-09-06 01:33:41 | [diff] [blame] | 217 | Default SMTP server to use. |
| 218 | |
| Junio C Hamano | d04b60c | 2008-03-20 08:46:04 | [diff] [blame] | 219 | sendemail.smtpserverport:: |
| 220 | Default SMTP server port to use. |
| 221 | |
| Junio C Hamano | 6852289 | 2007-09-06 01:33:41 | [diff] [blame] | 222 | sendemail.smtpuser:: |
| 223 | Default SMTP-AUTH username. |
| 224 | |
| 225 | sendemail.smtppass:: |
| 226 | Default SMTP-AUTH password. |
| 227 | |
| 228 | sendemail.smtpssl:: |
| 229 | Boolean value specifying the default to the '--smtp-ssl' parameter. |
| Junio C Hamano | c51fede | 2007-03-12 07:29:20 | [diff] [blame] | 230 | |
| Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 231 | Author |
| 232 | ------ |
| 233 | Written by Ryan Anderson <ryan@michonline.com> |
| 234 | |
| 235 | git-send-email is originally based upon |
| 236 | send_lots_of_email.pl by Greg Kroah-Hartman. |
| 237 | |
| 238 | Documentation |
| 239 | -------------- |
| 240 | Documentation by Ryan Anderson |
| 241 | |
| 242 | GIT |
| 243 | --- |
| Junio C Hamano | 35738e8 | 2008-01-07 07:55:46 | [diff] [blame] | 244 | Part of the linkgit:git[7] suite |