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, 17:26 UTC
Message-ID
<8c9a060902130926j48b59785l624a3966254517e5@mail.gmail.com>
In-Reply-To
<81bfc67a0902130909i154a7c2epeff98347985c3fb8@mail.gmail.com>
On Fri, Feb 13, 2009 at 09:09, Caleb Cushing <xenoterracide@gmail.com> wrote:
Show 33 quoted lines
> I've followed all the steps in the git Submitting patches guide. In
> fact it works fine for any patch where all lines are less than 80?
> chars. however, some of the patches store sha256 hashes (and the like)
> and have really long lines and gmail word wraps them.
>
> I've tried submitting patches as follows.
>
> git format-patch -1 -M --stdout | git imap-send
>
> git format-patch -1 -M --stdout --attach | git imap-send
>
> git format-patch -1 -M --stdout --inline | git imap-send
>
>
> we know the first corrupts the patches. but what I can't figure out is
> why the next 2 don't work on the receiving end. The comment was.
>
>
> git am -3 -i, when I choose [v]iew patch, I get a binary output.
>
>
> I'm trying to figure out how I can submit patches via gmail for
> someone that uses git am. what is being done wrong?
>
> --
> Caleb Cushing
>
> http://xenoterracide.blogspot.com
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
This is the setup I use for emailing patches using git:
~/.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.

Previous: Caleb CushingNext: Caleb Cushing
Message 2 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.