1 <?xml version="1.0" encoding="UTF-8"?>
\r
2 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
\r
4 <article lang="en" id="git-imap-send(1)">
\r
6 <title>git-imap-send(1)</title>
\r
8 <primary>git-imap-send(1)</primary>
\r
11 <simplesect id="_name">
\r
13 <simpara>git-imap-send - Send a collection of patches from stdin to an IMAP folder</simpara>
\r
15 <simplesect id="_synopsis">
\r
16 <title>SYNOPSIS</title>
\r
18 <literallayout><emphasis>git imap-send</emphasis></literallayout>
\r
21 <simplesect id="_description">
\r
22 <title>DESCRIPTION</title>
\r
23 <simpara>This command uploads a mailbox generated with <emphasis>git format-patch</emphasis>
\r
24 into an IMAP drafts folder. This allows patches to be sent as
\r
25 other email is when using mail clients that cannot read mailbox
\r
26 files directly. The command also works with any general mailbox
\r
27 in which emails have the fields "From", "Date", and "Subject" in
\r
28 that order.</simpara>
\r
29 <simpara>Typical usage is something like:</simpara>
\r
30 <simpara>git format-patch --signoff --stdout --attach origin | git imap-send</simpara>
\r
32 <simplesect id="_configuration">
\r
33 <title>CONFIGURATION</title>
\r
34 <simpara>To use the tool, imap.folder and either imap.tunnel or imap.host must be set
\r
35 to appropriate values.</simpara>
\r
36 <section id="_variables">
\r
37 <title>Variables</title>
\r
45 The folder to drop the mails into, which is typically the Drafts
\r
46 folder. For example: "INBOX.Drafts", "INBOX/Drafts" or
\r
47 "[Gmail]/Drafts". Required to use imap-send.
\r
57 Command used to setup a tunnel to the IMAP server through which
\r
58 commands will be piped instead of using a direct network connection
\r
59 to the server. Required when imap.host is not set to use imap-send.
\r
69 A URL identifying the server. Use a <emphasis>imap://</emphasis> prefix for non-secure
\r
70 connections and a <emphasis>imaps://</emphasis> prefix for secure connections.
\r
71 Ignored when imap.tunnel is set, but required to use imap-send
\r
82 The username to use when logging in to the server.
\r
92 The password to use when logging in to the server.
\r
102 An integer port number to connect to on the server.
\r
103 Defaults to 143 for imap:// hosts and 993 for imaps:// hosts.
\r
104 Ignored when imap.tunnel is set.
\r
114 A boolean to enable/disable verification of the server certificate
\r
115 used by the SSL/TLS connection. Default is <emphasis>true</emphasis>. Ignored when
\r
116 imap.tunnel is set.
\r
122 imap.preformattedHTML
\r
126 A boolean to enable/disable the use of html encoding when sending
\r
127 a patch. An html encoded patch will be bracketed with <pre>
\r
128 and have a content type of text/html. Ironically, enabling this
\r
129 option causes Thunderbird to send the patch as a plain/text,
\r
130 format=fixed email. Default is <emphasis>false</emphasis>.
\r
140 Specify authenticate method for authentication with IMAP server.
\r
141 Current supported method is <emphasis>CRAM-MD5</emphasis> only.
\r
147 <section id="_examples">
\r
148 <title>Examples</title>
\r
149 <simpara>Using tunnel mode:</simpara>
\r
150 <literallayout class="monospaced">[imap]
\r
151 folder = "INBOX.Drafts"
\r
152 tunnel = "ssh -q -C user@example.com /usr/bin/imapd ./Maildir 2> /dev/null"</literallayout>
\r
153 <simpara>Using direct mode:</simpara>
\r
154 <literallayout class="monospaced">[imap]
\r
155 folder = "INBOX.Drafts"
\r
156 host = imap://imap.example.com
\r
158 pass = p4ssw0rd</literallayout>
\r
159 <simpara>Using direct mode with SSL:</simpara>
\r
160 <literallayout class="monospaced">[imap]
\r
161 folder = "INBOX.Drafts"
\r
162 host = imaps://imap.example.com
\r
166 sslverify = false</literallayout>
\r
169 <simplesect id="_example">
\r
170 <title>EXAMPLE</title>
\r
171 <simpara>To submit patches using GMail's IMAP interface, first, edit your ~/.gitconfig
\r
172 to specify your account settings:</simpara>
\r
174 folder = "[Gmail]/Drafts"
\r
175 host = imaps://imap.gmail.com
\r
176 user = user@gmail.com
\r
178 sslverify = false</screen>
\r
179 <simpara>You might need to instead use: folder = "[Google Mail]/Drafts" if you get an error
\r
180 that the "Folder doesn't exist".</simpara>
\r
181 <simpara>Once the commits are ready to be sent, run the following command:</simpara>
\r
182 <literallayout class="monospaced">$ git format-patch --cover-letter -M --stdout origin/master | git imap-send</literallayout>
\r
183 <simpara>Just make sure to disable line wrapping in the email client (GMail's web
\r
184 interface will wrap lines no matter what, so you need to use a real
\r
185 IMAP client).</simpara>
\r
187 <simplesect id="_caution">
\r
188 <title>CAUTION</title>
\r
189 <simpara>It is still your responsibility to make sure that the email message
\r
190 sent by your email program meets the standards of your project.
\r
191 Many projects do not like patches to be attached. Some mail
\r
192 agents will transform patches (e.g. wrap lines, send them as
\r
193 format=flowed) in ways that make them fail. You will get angry
\r
194 flames ridiculing you if you don't check this.</simpara>
\r
195 <simpara>Thunderbird in particular is known to be problematic. Thunderbird
\r
196 users may wish to visit this web page for more information:
\r
197 <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
199 <simplesect id="_see_also">
\r
200 <title>SEE ALSO</title>
\r
201 <simpara><xref linkend="git-format-patch(1)" />, <xref linkend="git-send-email(1)" />, mbox(5)</simpara>
\r
203 <simplesect id="_git">
\r
205 <simpara>Part of the <xref linkend="git(1)" /> suite</simpara>
\r