{"thread":{"id":"12946","subject":"Sending patches via gmail","startedAt":"2008-04-01T09:49:34Z","lastAt":"2008-04-01T11:03:55Z","messageCount":4,"participants":["Jonathan del Strother","David Aguilar","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"73490","messageId":"57518fd10804010249h4fe43bbfu64cf9576ca2edcf3@mail.gmail.com","threadId":"12946","inReplyTo":null,"subject":"Sending patches via gmail","fromName":"Jonathan del Strother","fromEmail":"maillist@steelskies.com","sentAt":"2008-04-01T09:49:34Z","receivedAt":"2008-04-01T09:49:34Z","isPatch":false,"sender":{"key":"jon.delstrother@bestbefore.tv","avatar":"https://gravatar.com/avatar/754e21ab701c00e2d21fc261187254c34b2a1c0b959d9ee5be1a295990be3081?d=mp&s=160"},"body":"I can't seem to send patches via gmail without it adding spurious line\nbreaks -  eg http://article.gmane.org/gmane.comp.version-control.git/78407.\n I thought this was supposed to be possible...  All I'm doing is\ncopying the contents of my patch, then in Gmail, clicking Compose\nMail, make sure it's in Plain Text rather than Rich Formatting mode,\npaste my patch, and moving the mail header lines out of the message\nbody.\n\nWhat am I missing?\nJonathan del Strother\n"},{"id":"73491","messageId":"402731c90804010309w6a27d2d1t2df25ac41fff96b9@mail.gmail.com","threadId":"12946","inReplyTo":"57518fd10804010249h4fe43bbfu64cf9576ca2edcf3@mail.gmail.com","subject":"Re: Sending patches via gmail","fromName":"David Aguilar","fromEmail":"davvid@gmail.com","sentAt":"2008-04-01T10:09:28Z","receivedAt":"2008-04-01T10:09:28Z","isPatch":false,"sender":{"key":"davvid@gmail.com","avatar":"https://avatars.githubusercontent.com/u/13196?v=4"},"body":"On 4/1/08, Jonathan del Strother <maillist@steelskies.com> wrote:\n> I can't seem to send patches via gmail without it adding spurious line\n>  breaks -  eg http://article.gmane.org/gmane.comp.version-control.git/78407.\n>   I thought this was supposed to be possible...  All I'm doing is\n>  copying the contents of my patch, then in Gmail, clicking Compose\n>  Mail, make sure it's in Plain Text rather than Rich Formatting mode,\n>  paste my patch, and moving the mail header lines out of the message\n>  body.\n>\n>  What am I missing?\n>  Jonathan del Strother\n\nTry git send-email w/ msmtp:\nhttp://git.or.cz/gitwiki/GitTips#head-a015948617d9becbdc9836776f96ad244ba87cb8\n\n\n-- \n    David\n"},{"id":"73492","messageId":"57518fd10804010351x341ba728i69cfcad8f3909d6a@mail.gmail.com","threadId":"12946","inReplyTo":"402731c90804010309w6a27d2d1t2df25ac41fff96b9@mail.gmail.com","subject":"Re: Sending patches via gmail","fromName":"Jonathan del Strother","fromEmail":"maillist@steelskies.com","sentAt":"2008-04-01T10:51:38Z","receivedAt":"2008-04-01T10:51:38Z","isPatch":false,"sender":{"key":"jon.delstrother@bestbefore.tv","avatar":"https://gravatar.com/avatar/754e21ab701c00e2d21fc261187254c34b2a1c0b959d9ee5be1a295990be3081?d=mp&s=160"},"body":"On Tue, Apr 1, 2008 at 11:09 AM, David Aguilar <davvid@gmail.com> wrote:\n> On 4/1/08, Jonathan del Strother <maillist@steelskies.com> wrote:\n>\n>\n> > I can't seem to send patches via gmail without it adding spurious line\n>  >  breaks -  eg http://article.gmane.org/gmane.comp.version-control.git/78407.\n>  >   I thought this was supposed to be possible...  All I'm doing is\n>  >  copying the contents of my patch, then in Gmail, clicking Compose\n>  >  Mail, make sure it's in Plain Text rather than Rich Formatting mode,\n>  >  paste my patch, and moving the mail header lines out of the message\n>  >  body.\n>  >\n>  >  What am I missing?\n>  >  Jonathan del Strother\n>\n>\n>\n> Try git send-email w/ msmtp:\n>  http://git.or.cz/gitwiki/GitTips#head-a015948617d9becbdc9836776f96ad244ba87cb8\n>\n\n...which seems to work ok, except for the fact that the From line in\nmy patch (the output of git format-patch) then appears at the top of\nmy message body in the resulting email (from git send-email).\nDeleting the From line from the patch seems to make everything work as\nexpected.  Any ideas what's going on there?\n"},{"id":"73494","messageId":"20080401110355.GA3777@coredump.intra.peff.net","threadId":"12946","inReplyTo":"57518fd10804010351x341ba728i69cfcad8f3909d6a@mail.gmail.com","subject":"Re: Sending patches via gmail","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2008-04-01T11:03:55Z","receivedAt":"2008-04-01T11:03:55Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Tue, Apr 01, 2008 at 11:51:38AM +0100, Jonathan del Strother wrote:\n\n> ...which seems to work ok, except for the fact that the From line in\n> my patch (the output of git format-patch) then appears at the top of\n> my message body in the resulting email (from git send-email).\n> Deleting the From line from the patch seems to make everything work as\n> expected.  Any ideas what's going on there?\n\nsend-email will create a \"from\" line in the body of the message if the\n\"sender\" (using --from, or answering \"Who should the emails appear to be\nfrom\") doesn't match the patch's author (the \"From:\" line in the\ngenerated patch, which comes from the author field of the commit).\nThe line is interpeted by git-am to properly credit the original author.\n\nIt looks like you are committing as jon.delStrother@bestbefore.tv,\nbut sending the emails as maillist@steelskies.com.\n\n-Peff\n"}]}