6 git-imap-send - Send a collection of patches from stdin to an IMAP folder
12 'git imap-send' [-v] [-q] [--[no-]curl]
17 This command uploads a mailbox generated with 'git format-patch'
18 into an IMAP drafts folder. This allows patches to be sent as
19 other email is when using mail clients that cannot read mailbox
20 files directly. The command also works with any general mailbox
21 in which emails have the fields "From", "Date", and "Subject" in
24 Typical usage is something like:
26 git format-patch --signoff --stdout --attach origin | git imap-send
41 Use libcurl to communicate with the IMAP server, unless tunneling
42 into it. Ignored if Git was built without the USE_CURL_FOR_IMAP_SEND
46 Talk to the IMAP server using git's own IMAP routines instead of
47 using libcurl. Ignored if Git was built with the NO_OPENSSL option
54 To use the tool, `imap.folder` and either `imap.tunnel` or `imap.host` must be set
55 to appropriate values.
57 include::config/imap.txt[]
63 ..........................
65 folder = "INBOX.Drafts"
66 tunnel = "ssh -q -C user@example.com /usr/bin/imapd ./Maildir 2> /dev/null"
67 ..........................
71 .........................
73 folder = "INBOX.Drafts"
74 host = imap://imap.example.com
77 .........................
79 Using direct mode with SSL:
81 .........................
83 folder = "INBOX.Drafts"
84 host = imaps://imap.example.com
89 .........................
93 You may want to use `sslVerify=false`
94 while troubleshooting, if you suspect that the reason you are
95 having trouble connecting is because the certificate you use at
96 the private server `example.com` you are trying to set up (or
97 have set up) may not be verified correctly.
99 Using Gmail's IMAP interface:
103 folder = "[Gmail]/Drafts"
104 host = imaps://imap.gmail.com
105 user = user@gmail.com
110 You might need to instead use: `folder = "[Google Mail]/Drafts"` if you get an error
111 that the "Folder doesn't exist".
114 If your Gmail account is set to another language than English, the name of the "Drafts"
115 folder will be localized.
117 Once the commits are ready to be sent, run the following command:
119 $ git format-patch --cover-letter -M --stdout origin/master | git imap-send
121 Just make sure to disable line wrapping in the email client (Gmail's web
122 interface will wrap lines no matter what, so you need to use a real
127 It is still your responsibility to make sure that the email message
128 sent by your email program meets the standards of your project.
129 Many projects do not like patches to be attached. Some mail
130 agents will transform patches (e.g. wrap lines, send them as
131 format=flowed) in ways that make them fail. You will get angry
132 flames ridiculing you if you don't check this.
134 Thunderbird in particular is known to be problematic. Thunderbird
135 users may wish to visit this web page for more information:
136 http://kb.mozillazine.org/Plain_text_e-mail_-_Thunderbird#Completely_plain_email
140 linkgit:git-format-patch[1], linkgit:git-send-email[1], mbox(5)
144 Part of the linkgit:git[1] suite