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

Re: [PATCH] Documentation/SubmittingPatches: fix Gmail workaround advice

From
ACAaron Crane <git@aaroncrane.co.uk>
Date
Feb 7, 2010, 20:03 UTC
Message-ID
<bc341e101002071203x52bceaach8d42c6188630f1d1@mail.gmail.com>
In-Reply-To
<7v8wb4gaef.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> wrote:
Show 8 quoted lines
> Aaron Crane <git@aaroncrane.co.uk> writes:
>> The suggested approach to dealing with Gmail's propensity for breaking
>> patches doesn't seem to work.  Recommend an alternative technique which
>> does.
>
> Do you know _why_ it does not work?  For example, does it not work _at
> all_ for you?  Or only certain things does not reliably work (iow, perhaps
> you are seeing a bug in imap-send)?

What happens for me is that `git imap-send` successfully puts the message into the gmail Drafts folder, but when it's sent it's been line-wrapped (and any line-end spaces are deleted, which breaks diffs containing empty context lines).

I've verified that it's not `git imap-send` at fault, by tweaking it to tee all socket-written data to a local file; all whitespace in the mail prepared locally is sent to Gmail unchanged. So Gmail is mangling the message when it gets uploaded (or possibly when it's opened in the web interface, or when it's sent).

I've tried this both with a vanilla Gmail account, and with Google Apps For Your Domain Standard Edition, and I get the same behaviour.

> What I am trying to get at is to see if the current imap-send suggestion
> is fundamentally unworkable with gmail.  Perhaps they stopped supporting
> imap.  Perhaps the procedure never worked.

As far as I can determine, the current imap-send suggestion is fundamentally unworkable with gmail at the moment. I don't know whether it ever used to work, though I've been assuming that it did.

-- 
Aaron Crane ** http://aaroncrane.co.uk/
Previous: Junio C HamanoNext: Jonathan Nieder
Message 4 of 7 in “Documentation/SubmittingPatches: fix Gmail workaround advice”
  1. Documentation/SubmittingPatches: fix Gmail workaround adviceAaron Crane, Feb 7, 2010
  2. Jay SoffianFeb 7, 2010
  3. Junio C HamanoFeb 7, 2010
  4. Aaron CraneFeb 7, 2010
  5. Jonathan NiederFeb 7, 2010
  6. Jonathan NiederFeb 7, 2010
  7. Junio C HamanoFeb 8, 2010

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.