]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-imap-send.txt
Sync with 'maint'
[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]
1e16b255 12'git imap-send' [-v] [-q] [--[no-]curl]
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
f1a35295
BR
29OPTIONS
30-------
31
32-v::
33--verbose::
34 Be verbose.
35
36-q::
37--quiet::
38 Be quiet.
39
1e16b255
BR
40--curl::
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
43 option set.
44
45--no-curl::
46 Talk to the IMAP server using git's own IMAP routines instead of
dcd01ea1
KM
47 using libcurl. Ignored if Git was built with the NO_OPENSSL option
48 set.
1e16b255 49
f1a35295 50
454a35b8
MM
51CONFIGURATION
52-------------
53
587e69b5 54To use the tool, `imap.folder` and either `imap.tunnel` or `imap.host` must be set
c82b0748
RS
55to appropriate values.
56
18d89fe2
ÆAB
57include::includes/cmd-config-section-rest.txt[]
58
ae461026 59include::config/imap.txt[]
ae9c606e 60
587e69b5
PB
61EXAMPLES
62--------
c82b0748 63Using tunnel mode:
454a35b8 64
2b5f3ed3 65..........................
454a35b8 66[imap]
c82b0748
RS
67 folder = "INBOX.Drafts"
68 tunnel = "ssh -q -C user@example.com /usr/bin/imapd ./Maildir 2> /dev/null"
69..........................
454a35b8 70
c82b0748
RS
71Using direct mode:
72
73.........................
454a35b8 74[imap]
c82b0748
RS
75 folder = "INBOX.Drafts"
76 host = imap://imap.example.com
77 user = bob
78 pass = p4ssw0rd
f8a48aff 79.........................
c82b0748
RS
80
81Using direct mode with SSL:
454a35b8 82
c82b0748 83.........................
454a35b8 84[imap]
c82b0748
RS
85 folder = "INBOX.Drafts"
86 host = imaps://imap.example.com
87 user = bob
88 pass = p4ssw0rd
89 port = 123
08a694bb 90 ; sslVerify = false
f8a48aff 91.........................
454a35b8
MM
92
93
08a694bb
PB
94[NOTE]
95You may want to use `sslVerify=false`
96while troubleshooting, if you suspect that the reason you are
97having trouble connecting is because the certificate you use at
98the private server `example.com` you are trying to set up (or
99have set up) may not be verified correctly.
100
587e69b5 101Using Gmail's IMAP interface:
36c10e6d
JN
102
103---------
104[imap]
105 folder = "[Gmail]/Drafts"
106 host = imaps://imap.gmail.com
107 user = user@gmail.com
108 port = 993
36c10e6d
JN
109---------
110
08a694bb 111[NOTE]
587e69b5 112You might need to instead use: `folder = "[Google Mail]/Drafts"` if you get an error
36c10e6d
JN
113that the "Folder doesn't exist".
114
1bbac2a8
PB
115[NOTE]
116If your Gmail account is set to another language than English, the name of the "Drafts"
117folder will be localized.
118
36c10e6d
JN
119Once the commits are ready to be sent, run the following command:
120
121 $ git format-patch --cover-letter -M --stdout origin/master | git imap-send
122
587e69b5 123Just make sure to disable line wrapping in the email client (Gmail's web
36c10e6d
JN
124interface will wrap lines no matter what, so you need to use a real
125IMAP client).
126
1a526d48
JW
127CAUTION
128-------
129It is still your responsibility to make sure that the email message
130sent by your email program meets the standards of your project.
131Many projects do not like patches to be attached. Some mail
132agents will transform patches (e.g. wrap lines, send them as
133format=flowed) in ways that make them fail. You will get angry
134flames ridiculing you if you don't check this.
135
136Thunderbird in particular is known to be problematic. Thunderbird
137users may wish to visit this web page for more information:
d05b08cd 138 https://kb.mozillazine.org/Plain_text_e-mail_-_Thunderbird#Completely_plain_email
1a526d48 139
36c10e6d
JN
140SEE ALSO
141--------
142linkgit:git-format-patch[1], linkgit:git-send-email[1], mbox(5)
143
454a35b8
MM
144GIT
145---
9e1f0a85 146Part of the linkgit:git[1] suite