{"thread":{"id":"22550","subject":"Gmail and unwanted line-wrapping","startedAt":"2010-02-06T20:29:32Z","lastAt":"2010-02-08T15:20:53Z","messageCount":8,"participants":["Aaron Crane","Sverre Rabbelier","Jacob Helwig","David Aguilar","Jay Soffian","Erik Faye-Lund"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"133824","messageId":"bc341e101002061229t7a1525c2w2d5a8e221124b3c2@mail.gmail.com","threadId":"22550","inReplyTo":null,"subject":"Gmail and unwanted line-wrapping","fromName":"Aaron Crane","fromEmail":"git@aaroncrane.co.uk","sentAt":"2010-02-06T20:29:32Z","receivedAt":"2010-02-06T20:29:32Z","isPatch":false,"sender":{"key":"git@aaroncrane.co.uk","avatar":null},"body":"Documentation/SubmittingPatches says this about dealing with Gmail's\npropensity for breaking your email:\n\n> GMail does not appear to have any way to turn off line wrapping in the web\n> interface, so this will mangle any emails that you send.  You can however\n> use any IMAP email client to connect to the google imap server, and forward\n> the emails through that.  Just make sure to disable line wrapping in that\n> email client.  Alternatively, use \"git send-email\" instead.\n>\n> Submitting properly formatted patches via Gmail is simple now that\n> IMAP support is available. First, edit your ~/.gitconfig to specify your\n> account settings:\n<snip>\n> Next, ensure that your Gmail settings are correct. In \"Settings\" the\n> \"Use Unicode (UTF-8) encoding for outgoing messages\" should be checked.\n>\n> Once your commits are ready to send to the mailing list, run the following\n> command to send the patch emails to your Gmail Drafts folder.\n>\n>         $ git format-patch -M --stdout origin/master | git imap-send\n>\n> Go to your Gmail account, open the Drafts folder, find the patch email, fill\n> in the To: and CC: fields and send away!\n\nHowever, the advice beginning \"Submitting properly formatted patches\nvia Gmail is simple now\" doesn't match my experience.  Following those\nguidelines seemed to work, but my patch was line-wrapped anyway.\n\nIt seems I'm not the only person who's observed this:\nhttp://article.gmane.org/gmane.comp.version-control.git/133020\n\nCan anyone think of anything I might have done wrong here?  If not,\nI'm inclined to suggest dropping all of that advice.  That's not\nideal, because it leaves Gmail users with no obvious way to submit\nwell-formatted patches to the list; but it's better than suggesting\nsomething which apparently doesn't work.\n\n-- \nAaron Crane ** http://aaroncrane.co.uk/\n"},{"id":"133825","messageId":"fabb9a1e1002061247k7a8fba5at4c687faac0dcabb8@mail.gmail.com","threadId":"22550","inReplyTo":"bc341e101002061229t7a1525c2w2d5a8e221124b3c2@mail.gmail.com","subject":"Re: Gmail and unwanted line-wrapping","fromName":"Sverre Rabbelier","fromEmail":"srabbelier@gmail.com","sentAt":"2010-02-06T20:47:39Z","receivedAt":"2010-02-06T20:47:39Z","isPatch":false,"sender":{"key":"srabbelier@gmail.com","avatar":"https://avatars.githubusercontent.com/u/3098?v=4"},"body":"Heya,\n\nOn Sat, Feb 6, 2010 at 21:29, Aaron Crane <git@aaroncrane.co.uk> wrote:\n> Can anyone think of anything I might have done wrong here?  If not,\n> I'm inclined to suggest dropping all of that advice.  That's not\n> ideal, because it leaves Gmail users with no obvious way to submit\n> well-formatted patches to the list; but it's better than suggesting\n> something which apparently doesn't work.\n\nI'm using git send-email with this configuration:\n[sendemail]\n  smtencryption = tls\n  smtpserver = smtp.gmai.com\n  smtpuser = srabbelier@gmail.com\n  smptserverport = 587\n\nIt'll ask you for your password when you're sending the emails. Like so:\n\n$ git format-patch --no-color -C -M origin/master..topic-branch -o outgoing/\n$ git send-email --compose outgoing/00*\n\nOf course you should substitute specific things as appropriate, I\ndoubt you'll want to be sending your patches pretending to be me :P.\n\n-- \nCheers,\n\nSverre Rabbelier\n"},{"id":"133826","messageId":"20100206204917.GA30894@vfb-9.home","threadId":"22550","inReplyTo":"bc341e101002061229t7a1525c2w2d5a8e221124b3c2@mail.gmail.com","subject":"Re: Gmail and unwanted line-wrapping","fromName":"Jacob Helwig","fromEmail":"jacob.helwig@gmail.com","sentAt":"2010-02-06T20:49:17Z","receivedAt":"2010-02-06T20:49:17Z","isPatch":false,"sender":{"key":"jacob.helwig@gmail.com","avatar":"https://avatars.githubusercontent.com/u/14557?v=4"},"body":"On 20:29 Sat 06 Feb     , Aaron Crane wrote:\n> Documentation/SubmittingPatches says this about dealing with Gmail's\n> propensity for breaking your email:\n> \n> > GMail does not appear to have any way to turn off line wrapping in the web\n> > interface, so this will mangle any emails that you send.  You can however\n> > use any IMAP email client to connect to the google imap server, and forward\n> > the emails through that.  Just make sure to disable line wrapping in that\n> > email client.  Alternatively, use \"git send-email\" instead.\n> >\n> > Submitting properly formatted patches via Gmail is simple now that\n> > IMAP support is available. First, edit your ~/.gitconfig to specify your\n> > account settings:\n> <snip>\n> > Next, ensure that your Gmail settings are correct. In \"Settings\" the\n> > \"Use Unicode (UTF-8) encoding for outgoing messages\" should be checked.\n> >\n> > Once your commits are ready to send to the mailing list, run the following\n> > command to send the patch emails to your Gmail Drafts folder.\n> >\n> >         $ git format-patch -M --stdout origin/master | git imap-send\n> >\n> > Go to your Gmail account, open the Drafts folder, find the patch email, fill\n> > in the To: and CC: fields and send away!\n> \n> However, the advice beginning \"Submitting properly formatted patches\n> via Gmail is simple now\" doesn't match my experience.  Following those\n> guidelines seemed to work, but my patch was line-wrapped anyway.\n> \n> It seems I'm not the only person who's observed this:\n> http://article.gmane.org/gmane.comp.version-control.git/133020\n> \n> Can anyone think of anything I might have done wrong here?  If not,\n> I'm inclined to suggest dropping all of that advice.  That's not\n> ideal, because it leaves Gmail users with no obvious way to submit\n> well-formatted patches to the list; but it's better than suggesting\n> something which apparently doesn't work.\n> \n> -- \n> Aaron Crane ** http://aaroncrane.co.uk/\n\nI don't use the web interface at all, when I want to send out patches\nusing GMail (we use Google Apps for Business at $day_job).  I just use\n\"git send-email\" and send the patch(es) out straight from the command\nline.  There's a nice summary online [0] of how to get this setup with\nGMail.\n\nI don't get the handy address-book of the web interface, but I don't\nhave to worry about line-wrapping.\n\n[0] http://morefedora.blogspot.com/2009/02/configuring-git-send-email-to-use-gmail.html\n\n-- \nJacob Helwig\n"},{"id":"133827","messageId":"fabb9a1e1002061259t78d3239dmdbe78d5136db8fab@mail.gmail.com","threadId":"22550","inReplyTo":"20100206204917.GA30894@vfb-9.home","subject":"Re: Gmail and unwanted line-wrapping","fromName":"Sverre Rabbelier","fromEmail":"srabbelier@gmail.com","sentAt":"2010-02-06T20:59:39Z","receivedAt":"2010-02-06T20:59:39Z","isPatch":false,"sender":{"key":"srabbelier@gmail.com","avatar":"https://avatars.githubusercontent.com/u/3098?v=4"},"body":"Heya,\n\nOn Sat, Feb 6, 2010 at 21:49, Jacob Helwig <jacob.helwig@gmail.com> wrote:\n> I don't get the handy address-book of the web interface, but I don't\n> have to worry about line-wrapping.\n\nI get both using the magic awesomeness that is copy/paste. (Figure out\nwho to mail in web interface, then copy/paste To: line to cmdline)\n\n-- \nCheers,\n\nSverre Rabbelier\n"},{"id":"133835","messageId":"20100207002413.GA14744@gmail.com","threadId":"22550","inReplyTo":"fabb9a1e1002061247k7a8fba5at4c687faac0dcabb8@mail.gmail.com","subject":"Re: Gmail and unwanted line-wrapping","fromName":"David Aguilar","fromEmail":"davvid@gmail.com","sentAt":"2010-02-07T00:24:14Z","receivedAt":"2010-02-07T00:24:14Z","isPatch":false,"sender":{"key":"davvid@gmail.com","avatar":"https://avatars.githubusercontent.com/u/13196?v=4"},"body":"On Sat, Feb 06, 2010 at 09:47:39PM +0100, Sverre Rabbelier wrote:\n> Heya,\n> \n> On Sat, Feb 6, 2010 at 21:29, Aaron Crane <git@aaroncrane.co.uk> wrote:\n> > Can anyone think of anything I might have done wrong here?  If not,\n> > I'm inclined to suggest dropping all of that advice.  That's not\n> > ideal, because it leaves Gmail users with no obvious way to submit\n> > well-formatted patches to the list; but it's better than suggesting\n> > something which apparently doesn't work.\n> \n> I'm using git send-email with this configuration:\n> [sendemail]\n>   smtencryption = tls\n>   smtpserver = smtp.gmai.com\n>   smtpuser = srabbelier@gmail.com\n>   smptserverport = 587\n> \n> It'll ask you for your password when you're sending the emails. Like so:\n> \n> $ git format-patch --no-color -C -M origin/master..topic-branch -o outgoing/\n> $ git send-email --compose outgoing/00*\n> \n> Of course you should substitute specific things as appropriate, I\n> doubt you'll want to be sending your patches pretending to be me :P.\n> \n> -- \n> Cheers,\n> \n> Sverre Rabbelier\n\nGreat tip!\n\nI've added it to the Git Wiki:\nhttp://git.wiki.kernel.org/index.php/GitTips#Using_gmail_to_send_your_patches\n\n\nGood stuff,\n\n-- \n\t\tDavid\n"},{"id":"133836","messageId":"76718491002061650ge299426s22de5e00b26af108@mail.gmail.com","threadId":"22550","inReplyTo":"20100207002413.GA14744@gmail.com","subject":"Re: Gmail and unwanted line-wrapping","fromName":"Jay Soffian","fromEmail":"jaysoffian@gmail.com","sentAt":"2010-02-07T00:50:35Z","receivedAt":"2010-02-07T00:50:35Z","isPatch":false,"sender":{"key":"jaysoffian@gmail.com","avatar":"https://avatars.githubusercontent.com/u/155970?v=4"},"body":"> I've added it to the Git Wiki:\n> http://git.wiki.kernel.org/index.php/GitTips#Using_gmail_to_send_your_patches\n\nIf you're on MacOS X and have MacPorts installed, then install both\nthe curl and msmtp packages, then use an .msmtprc as follows:\n\ndefaults\ntls on\ntls_trust_file /opt/local/share/curl/curl-ca-bundle.crt\nsyslog LOG_MAIL\n\n# gmail\naccount gmail\nhost smtp.gmail.com\nport 587\nauth on\nfrom jaysoffian@gmail.com\nuser jaysoffian@gmail.com\n\n# Default account\naccount default : gmail\n\nAdjusting for you account of course. And in your git config:\n\n[sendemail]\n\tsmtpserver = /opt/local/bin/msmtp\n\n\nNow why would you do this you ask instead of using git's built-in SMTP\nsupport? Because I provided a patch to msmtp long ago that lets it\naccess your gmail password from Mac OS X's keychain. Note that it\nlooks for a password stored in the same format as Mail.app would store\nit, see the msmtp man page for details.\n\nFWIW, I think Gnome also has a keychain like thingy that msmtp can also query.\n\nj.\n"},{"id":"133837","messageId":"76718491002061651t2c10b9fcge3f139164dabe471@mail.gmail.com","threadId":"22550","inReplyTo":"76718491002061650ge299426s22de5e00b26af108@mail.gmail.com","subject":"Re: Gmail and unwanted line-wrapping","fromName":"Jay Soffian","fromEmail":"jaysoffian@gmail.com","sentAt":"2010-02-07T00:51:43Z","receivedAt":"2010-02-07T00:51:43Z","isPatch":false,"sender":{"key":"jaysoffian@gmail.com","avatar":"https://avatars.githubusercontent.com/u/155970?v=4"},"body":"On Sat, Feb 6, 2010 at 7:50 PM, Jay Soffian <jaysoffian@gmail.com> wrote:\n> tls_trust_file /opt/local/share/curl/curl-ca-bundle.crt\n\nActually you need the curl-ca-bundle port.\n\nj.\n"},{"id":"133925","messageId":"40aa078e1002080720y4fe67d1eue2860dff9e12e0bf@mail.gmail.com","threadId":"22550","inReplyTo":"76718491002061650ge299426s22de5e00b26af108@mail.gmail.com","subject":"Re: Gmail and unwanted line-wrapping","fromName":"Erik Faye-Lund","fromEmail":"kusmabite@googlemail.com","sentAt":"2010-02-08T15:20:53Z","receivedAt":"2010-02-08T15:20:53Z","isPatch":false,"sender":{"key":"kusmabite@gmail.com","avatar":"https://avatars.githubusercontent.com/u/47073?v=4"},"body":"On Sun, Feb 7, 2010 at 1:50 AM, Jay Soffian <jaysoffian@gmail.com> wrote:\n>> I've added it to the Git Wiki:\n>> http://git.wiki.kernel.org/index.php/GitTips#Using_gmail_to_send_your_patches\n>\n> If you're on MacOS X and have MacPorts installed, then install both\n> the curl and msmtp packages, then use an .msmtprc as follows:\n>\n\nThere's also an article on the msysGit-wiki about using msmtp to send patches:\nhttp://code.google.com/p/msysgit/wiki/UsingSendEmail\n\n-- \nErik \"kusma\" Faye-Lund\n"}]}