Skip to content

Commit c2163c6

Browse files
Tom Preston-Wernergitster
authored andcommitted
add instructions on how to send patches to the mailing list with Gmail
Gmail is one of the most popular email providers in the world. Now that Gmail supports IMAP, sending properly formatted patches via `git imap-send` is trivial. This section in SubmittingPatches explains how to do so. Signed-off-by: Tom Preston-Werner <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4f73e24 commit c2163c6

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Documentation/SubmittingPatches

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,3 +456,30 @@ This should help you to submit patches inline using KMail.
456456

457457
5) Back in the compose window: add whatever other text you wish to the
458458
message, complete the addressing and subject fields, and press send.
459+
460+
461+
Gmail
462+
-----
463+
464+
Submitting properly formatted patches via Gmail is simple now that
465+
IMAP support is available. First, edit your ~/.gitconfig to specify your
466+
account settings:
467+
468+
[imap]
469+
folder = "[Gmail]/Drafts"
470+
host = imaps://imap.gmail.com
471+
472+
pass = p4ssw0rd
473+
port = 993
474+
sslverify = false
475+
476+
Next, ensure that your Gmail settings are correct. In "Settings" the
477+
"Use Unicode (UTF-8) encoding for outgoing messages" should be checked.
478+
479+
Once your commits are ready to send to the mailing list, run the following
480+
command to send the patch emails to your Gmail Drafts folder.
481+
482+
$ git format-patch -M --stdout origin/master | git imap-send
483+
484+
Go to your Gmail account, open the Drafts folder, find the patch email, fill
485+
in the To: and CC: fields and send away!

0 commit comments

Comments
 (0)