]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-imap-send.txt
Documentation: adjust document title underlining
[thirdparty/git.git] / Documentation / git-imap-send.txt
CommitLineData
454a35b8
MM
1git-imap-send(1)
2================
3
4NAME
5----
c82b0748 6git-imap-send - Send a collection of patches from stdin to an IMAP folder
454a35b8
MM
7
8
9SYNOPSIS
10--------
7791a1d9 11[verse]
b1889c36 12'git imap-send'
454a35b8
MM
13
14
15DESCRIPTION
16-----------
0b444cdb 17This command uploads a mailbox generated with 'git format-patch'
c82b0748
RS
18into an IMAP drafts folder. This allows patches to be sent as
19other email is when using mail clients that cannot read mailbox
4916c8f9
RR
20files directly. The command also works with any general mailbox
21in which emails have the fields "From", "Date", and "Subject" in
22that order.
454a35b8
MM
23
24Typical usage is something like:
25
b1889c36 26git format-patch --signoff --stdout --attach origin | git imap-send
454a35b8
MM
27
28
29CONFIGURATION
30-------------
31
c82b0748
RS
32To use the tool, imap.folder and either imap.tunnel or imap.host must be set
33to appropriate values.
34
35Variables
36~~~~~~~~~
37
38imap.folder::
39 The folder to drop the mails into, which is typically the Drafts
40 folder. For example: "INBOX.Drafts", "INBOX/Drafts" or
a127b3f2 41 "[Gmail]/Drafts". Required.
c82b0748
RS
42
43imap.tunnel::
44 Command used to setup a tunnel to the IMAP server through which
45 commands will be piped instead of using a direct network connection
a127b3f2 46 to the server. Required when imap.host is not set.
c82b0748
RS
47
48imap.host::
49 A URL identifying the server. Use a `imap://` prefix for non-secure
50 connections and a `imaps://` prefix for secure connections.
a127b3f2 51 Ignored when imap.tunnel is set, but required otherwise.
c82b0748
RS
52
53imap.user::
54 The username to use when logging in to the server.
55
43be7a78 56imap.pass::
c82b0748
RS
57 The password to use when logging in to the server.
58
59imap.port::
60 An integer port number to connect to on the server.
61 Defaults to 143 for imap:// hosts and 993 for imaps:// hosts.
62 Ignored when imap.tunnel is set.
63
64imap.sslverify::
65 A boolean to enable/disable verification of the server certificate
66 used by the SSL/TLS connection. Default is `true`. Ignored when
67 imap.tunnel is set.
68
c64d84f1
JW
69imap.preformattedHTML::
70 A boolean to enable/disable the use of html encoding when sending
71 a patch. An html encoded patch will be bracketed with <pre>
72 and have a content type of text/html. Ironically, enabling this
73 option causes Thunderbird to send the patch as a plain/text,
74 format=fixed email. Default is `false`.
75
ae9c606e
HM
76imap.authMethod::
77 Specify authenticate method for authentication with IMAP server.
f07243fe
TF
78 Current supported method is 'CRAM-MD5' only. If this is not set
79 then 'git imap-send' uses the basic IMAP plaintext LOGIN command.
ae9c606e 80
c82b0748
RS
81Examples
82~~~~~~~~
83
84Using tunnel mode:
454a35b8 85
2b5f3ed3 86..........................
454a35b8 87[imap]
c82b0748
RS
88 folder = "INBOX.Drafts"
89 tunnel = "ssh -q -C user@example.com /usr/bin/imapd ./Maildir 2> /dev/null"
90..........................
454a35b8 91
c82b0748
RS
92Using direct mode:
93
94.........................
454a35b8 95[imap]
c82b0748
RS
96 folder = "INBOX.Drafts"
97 host = imap://imap.example.com
98 user = bob
99 pass = p4ssw0rd
100..........................
101
102Using direct mode with SSL:
454a35b8 103
c82b0748 104.........................
454a35b8 105[imap]
c82b0748
RS
106 folder = "INBOX.Drafts"
107 host = imaps://imap.example.com
108 user = bob
109 pass = p4ssw0rd
110 port = 123
684ec6c6 111 sslverify = false
2b5f3ed3 112..........................
454a35b8
MM
113
114
36c10e6d
JN
115EXAMPLE
116-------
117To submit patches using GMail's IMAP interface, first, edit your ~/.gitconfig
118to specify your account settings:
119
120---------
121[imap]
122 folder = "[Gmail]/Drafts"
123 host = imaps://imap.gmail.com
124 user = user@gmail.com
125 port = 993
126 sslverify = false
127---------
128
129You might need to instead use: folder = "[Google Mail]/Drafts" if you get an error
130that the "Folder doesn't exist".
131
132Once the commits are ready to be sent, run the following command:
133
134 $ git format-patch --cover-letter -M --stdout origin/master | git imap-send
135
136Just make sure to disable line wrapping in the email client (GMail's web
137interface will wrap lines no matter what, so you need to use a real
138IMAP client).
139
1a526d48
JW
140CAUTION
141-------
142It is still your responsibility to make sure that the email message
143sent by your email program meets the standards of your project.
144Many projects do not like patches to be attached. Some mail
145agents will transform patches (e.g. wrap lines, send them as
146format=flowed) in ways that make them fail. You will get angry
147flames ridiculing you if you don't check this.
148
149Thunderbird in particular is known to be problematic. Thunderbird
150users may wish to visit this web page for more information:
151 http://kb.mozillazine.org/Plain_text_e-mail_-_Thunderbird#Completely_plain_email
152
36c10e6d
JN
153SEE ALSO
154--------
155linkgit:git-format-patch[1], linkgit:git-send-email[1], mbox(5)
156
454a35b8
MM
157GIT
158---
9e1f0a85 159Part of the linkgit:git[1] suite