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.
61 The folder to drop the mails into, which is typically the Drafts
62 folder. For example: "INBOX.Drafts", "INBOX/Drafts" or
63 "[Gmail]/Drafts". Required.
66 Command used to setup a tunnel to the IMAP server through which
67 commands will be piped instead of using a direct network connection
68 to the server. Required when imap.host is not set.
71 A URL identifying the server. Use an `imap://` prefix for non-secure
72 connections and an `imaps://` prefix for secure connections.
73 Ignored when imap.tunnel is set, but required otherwise.
76 The username to use when logging in to the server.
79 The password to use when logging in to the server.
82 An integer port number to connect to on the server.
83 Defaults to 143 for imap:// hosts and 993 for imaps:// hosts.
84 Ignored when imap.tunnel is set.
87 A boolean to enable/disable verification of the server certificate
88 used by the SSL/TLS connection. Default is `true`. Ignored when
91 imap.preformattedHTML::
92 A boolean to enable/disable the use of html encoding when sending
93 a patch. An html encoded patch will be bracketed with <pre>
94 and have a content type of text/html. Ironically, enabling this
95 option causes Thunderbird to send the patch as a plain/text,
96 format=fixed email. Default is `false`.
99 Specify authenticate method for authentication with IMAP server.
100 If Git was built with the NO_CURL option, or if your curl version is older
101 than 7.34.0, or if you're running git-imap-send with the `--no-curl`
102 option, the only supported method is 'CRAM-MD5'. If this is not set
103 then 'git imap-send' uses the basic IMAP plaintext LOGIN command.
110 ..........................
112 folder = "INBOX.Drafts"
113 tunnel = "ssh -q -C user@example.com /usr/bin/imapd ./Maildir 2> /dev/null"
114 ..........................
118 .........................
120 folder = "INBOX.Drafts"
121 host = imap://imap.example.com
124 .........................
126 Using direct mode with SSL:
128 .........................
130 folder = "INBOX.Drafts"
131 host = imaps://imap.example.com
136 .........................
141 To submit patches using GMail's IMAP interface, first, edit your ~/.gitconfig
142 to specify your account settings:
146 folder = "[Gmail]/Drafts"
147 host = imaps://imap.gmail.com
148 user = user@gmail.com
153 You might need to instead use: folder = "[Google Mail]/Drafts" if you get an error
154 that the "Folder doesn't exist".
156 Once the commits are ready to be sent, run the following command:
158 $ git format-patch --cover-letter -M --stdout origin/master | git imap-send
160 Just make sure to disable line wrapping in the email client (GMail's web
161 interface will wrap lines no matter what, so you need to use a real
166 It is still your responsibility to make sure that the email message
167 sent by your email program meets the standards of your project.
168 Many projects do not like patches to be attached. Some mail
169 agents will transform patches (e.g. wrap lines, send them as
170 format=flowed) in ways that make them fail. You will get angry
171 flames ridiculing you if you don't check this.
173 Thunderbird in particular is known to be problematic. Thunderbird
174 users may wish to visit this web page for more information:
175 http://kb.mozillazine.org/Plain_text_e-mail_-_Thunderbird#Completely_plain_email
179 linkgit:git-format-patch[1], linkgit:git-send-email[1], mbox(5)
183 Part of the linkgit:git[1] suite