git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: gmail screws up patches looking for workable workaround

From
Jacob Helwig <jacob.helwig@gmail.com>
Date
Feb 13, 2009, 18:11 UTC
Message-ID
<8c9a060902131011u5bc7d0dft4edc4adb1af1dad8@mail.gmail.com>
In-Reply-To
<81bfc67a0902131000n2d67e88epd743c7c39842fbc@mail.gmail.com>
On Fri, Feb 13, 2009 at 10:00, Caleb Cushing <xenoterracide@gmail.com> wrote:
Show 35 quoted lines
>> ~/.gitconfig
>> [sendemail]
>>    smtpserver = smtp.gmail.com
>>    smtpserverport = 587
>>    smtpuser = your.email@gmail.com
>>    smtppass = yourPassword
>>    smtpencryption = tls
>>
>> $ git format-patch <options>
>> # add comments to 00*.patch files.
>> $ git send-email 00*
>> I've never seen any mangling using send-email, and the gmail SMTP
>> server.  I've never actually tried using imap-send.  Not quite the
>> answer to your question, but hopefully, it's another option.
>>
>
> [sendmail]
>    smtpserver = smtp.gmail.com
>    smtpserverport = 587
>    smtpuser = xenoterracide@gmail.com
>    smtppass = YeahITypedThisRight
>    smtpencryption = tls
>
> everything look good here? because mail isn't actually reaching it's
> destination. I have a feeling that's because the MTA isn't set up. I
> /could/ set that up... but I don't think that's something that anyone
> should have to do to send email patches.
>
> also according to someone else the reason git can't handle the
> attachments is because they are still base64 encoded.
> --
> Caleb Cushing
>
> http://xenoterracide.blogspot.com
>

"git imap-send" doesn't use the [sendmail] section of the .gitconfig. It uses the [imap] section. The [sendmail] configuration is if you're using "git send-email".

If you setup the smtp* options, you don't need a local MTA, since send-email will use the SMTP server you configured.

Are you still getting the corruption if you let format-patch generate the patch on disk (don't use the --stdout option), and give the patch filename(s) as the final arguments to send-email? (Could you show the new sequence of commands you're using, and what the output is?)

Previous: Caleb CushingNext: Caleb Cushing
Message 4 of 7 in “gmail screws up patches looking for workable workaround”
  1. Caleb CushingFeb 13, 2009
  2. Jacob HelwigFeb 13, 2009
  3. Caleb CushingFeb 13, 2009
  4. Jacob HelwigFeb 13, 2009
  5. Caleb CushingFeb 13, 2009
  6. Jacob HelwigFeb 13, 2009
  7. Sitaram ChamartyFeb 14, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.