blob: d016dafd491de5a4635e30b92607dadbaf7bf46f [file] [log] [blame]
Junio C Hamano883d8432006-04-06 23:15:391git-imap-send(1)
2================
3
4NAME
5----
Junio C Hamano5cf43ca2008-08-20 09:14:146git-imap-send - Send a collection of patches from stdin to an IMAP folder
Junio C Hamano883d8432006-04-06 23:15:397
8
9SYNOPSIS
10--------
Junio C Hamanofce7c7e2008-07-02 03:06:3811'git imap-send'
Junio C Hamano883d8432006-04-06 23:15:3912
13
14DESCRIPTION
15-----------
Junio C Hamano5cf43ca2008-08-20 09:14:1416This command uploads a mailbox generated with 'git-format-patch'
17into an IMAP drafts folder. This allows patches to be sent as
18other email is when using mail clients that cannot read mailbox
Junio C Hamano883d8432006-04-06 23:15:3919files directly.
20
21Typical usage is something like:
22
Junio C Hamanofce7c7e2008-07-02 03:06:3823git format-patch --signoff --stdout --attach origin | git imap-send
Junio C Hamano883d8432006-04-06 23:15:3924
25
26CONFIGURATION
27-------------
28
Junio C Hamano5cf43ca2008-08-20 09:14:1429To use the tool, imap.folder and either imap.tunnel or imap.host must be set
30to appropriate values.
31
32Variables
33~~~~~~~~~
34
35imap.folder::
36The folder to drop the mails into, which is typically the Drafts
37folder. For example: "INBOX.Drafts", "INBOX/Drafts" or
38"[Gmail]/Drafts". Required to use imap-send.
39
40imap.tunnel::
41Command used to setup a tunnel to the IMAP server through which
42commands will be piped instead of using a direct network connection
43to the server. Required when imap.host is not set to use imap-send.
44
45imap.host::
46A URL identifying the server. Use a `imap://` prefix for non-secure
47connections and a `imaps://` prefix for secure connections.
48Ignored when imap.tunnel is set, but required to use imap-send
49otherwise.
50
51imap.user::
52The username to use when logging in to the server.
53
Junio C Hamano4cfa5362009-04-18 23:01:0154imap.pass::
Junio C Hamano5cf43ca2008-08-20 09:14:1455The password to use when logging in to the server.
56
57imap.port::
58An integer port number to connect to on the server.
59Defaults to 143 for imap:// hosts and 993 for imaps:// hosts.
60Ignored when imap.tunnel is set.
61
62imap.sslverify::
63A boolean to enable/disable verification of the server certificate
64used by the SSL/TLS connection. Default is `true`. Ignored when
65imap.tunnel is set.
66
Junio C Hamano0a235222009-03-06 08:21:0967imap.preformattedHTML::
68A boolean to enable/disable the use of html encoding when sending
69a patch. An html encoded patch will be bracketed with <pre>
70and have a content type of text/html. Ironically, enabling this
71option causes Thunderbird to send the patch as a plain/text,
72format=fixed email. Default is `false`.
73
Junio C Hamano5cf43ca2008-08-20 09:14:1474Examples
75~~~~~~~~
76
77Using tunnel mode:
Junio C Hamano883d8432006-04-06 23:15:3978
Junio C Hamano1bb569e2006-05-05 23:14:2579..........................
Junio C Hamano883d8432006-04-06 23:15:3980[imap]
Junio C Hamano5cf43ca2008-08-20 09:14:1481 folder = "INBOX.Drafts"
82 tunnel = "ssh -q -C user@example.com /usr/bin/imapd ./Maildir 2> /dev/null"
83..........................
Junio C Hamano883d8432006-04-06 23:15:3984
Junio C Hamano5cf43ca2008-08-20 09:14:1485Using direct mode:
Junio C Hamano883d8432006-04-06 23:15:3986
Junio C Hamano5cf43ca2008-08-20 09:14:1487.........................
Junio C Hamano883d8432006-04-06 23:15:3988[imap]
Junio C Hamano5cf43ca2008-08-20 09:14:1489 folder = "INBOX.Drafts"
90 host = imap://imap.example.com
91 user = bob
92 pass = p4ssw0rd
93..........................
94
95Using direct mode with SSL:
96
97.........................
98[imap]
99 folder = "INBOX.Drafts"
100 host = imaps://imap.example.com
101 user = bob
102 pass = p4ssw0rd
103 port = 123
104 sslverify = false
Junio C Hamano1bb569e2006-05-05 23:14:25105..........................
Junio C Hamano883d8432006-04-06 23:15:39106
107
Junio C Hamanoec3b9a72009-02-13 08:45:52108CAUTION
109-------
110It is still your responsibility to make sure that the email message
111sent by your email program meets the standards of your project.
112Many projects do not like patches to be attached. Some mail
113agents will transform patches (e.g. wrap lines, send them as
114format=flowed) in ways that make them fail. You will get angry
115flames ridiculing you if you don't check this.
116
117Thunderbird in particular is known to be problematic. Thunderbird
118users may wish to visit this web page for more information:
119 http://kb.mozillazine.org/Plain_text_e-mail_-_Thunderbird#Completely_plain_email
120
121
Junio C Hamano883d8432006-04-06 23:15:39122BUGS
123----
124Doesn't handle lines starting with "From " in the message body.
125
126
127Author
128------
129Derived from isync 1.0.1 by Mike McCormack.
130
131Documentation
132--------------
133Documentation by Mike McCormack
134
135GIT
136---
Junio C Hamanof7c042d2008-06-06 22:50:53137Part of the linkgit:git[1] suite