Setup and Config
Getting and Creating Projects
Basic Snapshotting
Branching and Merging
Sharing and Updating Projects
Inspection and Comparison
Patching
Debugging
External Systems
Server Admin
- 2.43.2 → 2.45.2 no changes
- 2.43.1 02/09/24
- 2.43.0 11/20/23
- 2.38.1 → 2.42.3 no changes
- 2.38.0 10/02/22
- 2.29.1 → 2.37.7 no changes
- 2.29.0 10/19/20
- 2.20.1 → 2.28.1 no changes
- 2.20.0 12/09/18
- 2.19.1 → 2.19.6 no changes
- 2.19.0 09/10/18
- 2.18.1 → 2.18.5 no changes
- 2.18.0 06/21/18
- 2.4.12 → 2.17.6 no changes
- 2.3.10 09/28/15
- 2.2.3 09/04/15
- 2.1.4 no changes
- 2.0.5 12/17/14
DESCRIÇÃO
This command uploads a mailbox generated with git format-patch into an IMAP drafts folder. This allows patches to be sent as other email is when using mail clients that cannot read mailbox files directly. The command also works with any general mailbox in which emails have the fields "From", "Date", and "Subject" in that order.
A típica utilização é algo como:
git format-patch --signoff --stdout --attach origin | git imap-send
OPÇÕES
- -v
- --verbose
Seja loquaz.
- -q
- --quiet
Fique em silêncio.
- --curl
Use libcurl to communicate with the IMAP server, unless tunneling into it. Ignored if Git was built without the USE_CURL_FOR_IMAP_SEND option set.
- --no-curl
Talk to the IMAP server using git’s own IMAP routines instead of using libcurl. Ignored if Git was built with the NO_OPENSSL option set.
CONFIGURAÇÃO
Para utilizar a ferramenta, o imap.folder
e o imap.tunnel
ou o imap.host
devem ser configurados com os valores apropriados.
Warning | Missing See original version for this content. |
Warning | Missing See original version for this content. |
EXEMPLOS
Utilizando um modo de tunelamento:
[imap] folder = "INBOX.Drafts" tunnel = "ssh -q -C user@example.com /usr/bin/imapd ./Maildir 2> /dev/null"
Utilizando o modo direto:
[imap] folder = "INBOX.Drafts" host = imap://imap.example.com user = bob pass = p4ssw0rd
Usando o modo direto com SSL:
[imap] folder = "INBOX.Drafts" host = imaps://imap.example.com user = bob pass = p4ssw0rd port = 123 ; sslVerify = false
Note | Você pode querer utilizar sslVerify=false durante a resolução de problemas, caso suspeite que a fonte dos seu problemas de conexão é porque talvez haja um erro de verificação no certificado que você utiliza no servidor privado example.com que você está tentando configurar (ou já configurou). |
Usando a interface IMAP do Gmail:
[imap] folder = "[Gmail]/Drafts" host = imaps://imap.gmail.com user = user@gmail.com port = 993
Note | Você pode precisar utilizar: folder = "[Google Mail]/Drafts" caso receba um erro indicando que a "O diretório não existe". |
Note | Caso a sua conta do Gmail esteja definida para outro idioma que não o inglês, o nome da pasta "Drafts" será localizado para "Rascunhos". |
Quando os commits estiverem prontos para serem enviados, execute o seguinte comando:
$ git format-patch --cover-letter -M --stdout origin/master | git imap-send
Apenas certifique-se de desabilitar a quebra de linha no cliente de email (a interface da Web do Gmail sempre irá quebrar as linhas independentemente de qualquer coisa, portanto, você precisará utilizar um cliente IMAP de verdade).
CUIDADO
It is still your responsibility to make sure that the email message sent by your email program meets the standards of your project. Many projects do not like patches to be attached. Some mail agents will transform patches (e.g. wrap lines, send them as format=flowed) in ways that make them fail. You will get angry flames ridiculing you if you don’t check this.
Thunderbird in particular is known to be problematic. Thunderbird users may wish to visit this web page for more information: https://kb.mozillazine.org/Plain_text_e-mail_-_Thunderbird#Completely_plain_email
VEJA TAMBÉM
git-format-patch[1], git-send-email[1], mbox(5)
GIT
Parte do conjunto git[1]