1 <?xml version="1.0" encoding="UTF-8"?>
\r
2 <!DOCTYPE sect2 SYSTEM "../../../dtd/dblite.dtd">
\r
4 <sect2 lang="en" id="git-imap-send(1)">
\r
5 <title>git-imap-send(1)</title>
\r
7 <primary>git-imap-send(1)</primary>
\r
9 <simplesect id="git-imap-send(1)__name">
\r
11 <simpara>git-imap-send - Send a collection of patches from stdin to an IMAP folder</simpara>
\r
13 <simplesect id="git-imap-send(1)__synopsis">
\r
14 <title>SYNOPSIS</title>
\r
16 <literallayout><emphasis>git imap-send</emphasis> [-v] [-q] [--[no-]curl]</literallayout>
\r
19 <simplesect id="git-imap-send(1)__description">
\r
20 <title>DESCRIPTION</title>
\r
21 <simpara>This command uploads a mailbox generated with <emphasis>git format-patch</emphasis>
\r
22 into an IMAP drafts folder. This allows patches to be sent as
\r
23 other email is when using mail clients that cannot read mailbox
\r
24 files directly. The command also works with any general mailbox
\r
25 in which emails have the fields "From", "Date", and "Subject" in
\r
26 that order.</simpara>
\r
27 <simpara>Typical usage is something like:</simpara>
\r
28 <simpara>git format-patch --signoff --stdout --attach origin | git imap-send</simpara>
\r
30 <simplesect id="git-imap-send(1)__options">
\r
31 <title>OPTIONS</title>
\r
65 Use libcurl to communicate with the IMAP server, unless tunneling
\r
66 into it. Ignored if Git was built without the USE_CURL_FOR_IMAP_SEND
\r
77 Talk to the IMAP server using git's own IMAP routines instead of
\r
78 using libcurl. Ignored if Git was built with the NO_OPENSSL option
\r
85 <simplesect id="git-imap-send(1)__configuration">
\r
86 <title>CONFIGURATION</title>
\r
87 <simpara>To use the tool, imap.folder and either imap.tunnel or imap.host must be set
\r
88 to appropriate values.</simpara>
\r
89 <section id="git-imap-send(1)__variables">
\r
90 <title>Variables</title>
\r
98 The folder to drop the mails into, which is typically the Drafts
\r
99 folder. For example: "INBOX.Drafts", "INBOX/Drafts" or
\r
100 "[Gmail]/Drafts". Required.
\r
110 Command used to setup a tunnel to the IMAP server through which
\r
111 commands will be piped instead of using a direct network connection
\r
112 to the server. Required when imap.host is not set.
\r
122 A URL identifying the server. Use an <emphasis>imap://</emphasis> prefix for non-secure
\r
123 connections and an <emphasis>imaps://</emphasis> prefix for secure connections.
\r
124 Ignored when imap.tunnel is set, but required otherwise.
\r
134 The username to use when logging in to the server.
\r
144 The password to use when logging in to the server.
\r
154 An integer port number to connect to on the server.
\r
155 Defaults to 143 for imap:// hosts and 993 for imaps:// hosts.
\r
156 Ignored when imap.tunnel is set.
\r
166 A boolean to enable/disable verification of the server certificate
\r
167 used by the SSL/TLS connection. Default is <emphasis>true</emphasis>. Ignored when
\r
168 imap.tunnel is set.
\r
174 imap.preformattedHTML
\r
178 A boolean to enable/disable the use of html encoding when sending
\r
179 a patch. An html encoded patch will be bracketed with <pre>
\r
180 and have a content type of text/html. Ironically, enabling this
\r
181 option causes Thunderbird to send the patch as a plain/text,
\r
182 format=fixed email. Default is <emphasis>false</emphasis>.
\r
192 Specify authenticate method for authentication with IMAP server.
\r
193 If Git was built with the NO_CURL option, or if your curl version is older
\r
194 than 7.34.0, or if you're running git-imap-send with the <emphasis>--no-curl</emphasis>
\r
195 option, the only supported method is <emphasis>CRAM-MD5</emphasis>. If this is not set
\r
196 then <emphasis>git imap-send</emphasis> uses the basic IMAP plaintext LOGIN command.
\r
202 <section id="git-imap-send(1)__examples">
\r
203 <title>Examples</title>
\r
204 <simpara>Using tunnel mode:</simpara>
\r
205 <literallayout class="monospaced">[imap]
\r
206 folder = "INBOX.Drafts"
\r
207 tunnel = "ssh -q -C user@example.com /usr/bin/imapd ./Maildir 2> /dev/null"</literallayout>
\r
208 <simpara>Using direct mode:</simpara>
\r
209 <literallayout class="monospaced">[imap]
\r
210 folder = "INBOX.Drafts"
\r
211 host = imap://imap.example.com
\r
213 pass = p4ssw0rd</literallayout>
\r
214 <simpara>Using direct mode with SSL:</simpara>
\r
215 <literallayout class="monospaced">[imap]
\r
216 folder = "INBOX.Drafts"
\r
217 host = imaps://imap.example.com
\r
221 sslverify = false</literallayout>
\r
224 <simplesect id="git-imap-send(1)__examples_2">
\r
225 <title>EXAMPLES</title>
\r
226 <simpara>To submit patches using GMail's IMAP interface, first, edit your ~/.gitconfig
\r
227 to specify your account settings:</simpara>
\r
229 folder = "[Gmail]/Drafts"
\r
230 host = imaps://imap.gmail.com
\r
231 user = user@gmail.com
\r
233 sslverify = false</screen>
\r
234 <simpara>You might need to instead use: folder = "[Google Mail]/Drafts" if you get an error
\r
235 that the "Folder doesn't exist".</simpara>
\r
236 <simpara>Once the commits are ready to be sent, run the following command:</simpara>
\r
237 <literallayout class="monospaced">$ git format-patch --cover-letter -M --stdout origin/master | git imap-send</literallayout>
\r
238 <simpara>Just make sure to disable line wrapping in the email client (GMail's web
\r
239 interface will wrap lines no matter what, so you need to use a real
\r
240 IMAP client).</simpara>
\r
242 <simplesect id="git-imap-send(1)__caution">
\r
243 <title>CAUTION</title>
\r
244 <simpara>It is still your responsibility to make sure that the email message
\r
245 sent by your email program meets the standards of your project.
\r
246 Many projects do not like patches to be attached. Some mail
\r
247 agents will transform patches (e.g. wrap lines, send them as
\r
248 format=flowed) in ways that make them fail. You will get angry
\r
249 flames ridiculing you if you don't check this.</simpara>
\r
250 <simpara>Thunderbird in particular is known to be problematic. Thunderbird
\r
251 users may wish to visit this web page for more information:
\r
252 <ulink url="http://kb.mozillazine.org/Plain_text_e-mail_-_Thunderbird#Completely_plain_email">http://kb.mozillazine.org/Plain_text_e-mail_-_Thunderbird#Completely_plain_email</ulink></simpara>
\r
254 <simplesect id="git-imap-send(1)__see_also">
\r
255 <title>SEE ALSO</title>
\r
256 <simpara><xref linkend="git-format-patch(1)" />, <xref linkend="git-send-email(1)" />, mbox(5)</simpara>
\r
258 <simplesect id="git-imap-send(1)__git">
\r
260 <simpara>Part of the <xref linkend="git(1)" /> suite</simpara>
\r