git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] add instructions on how to send patches to the mailing list with Gmail
@ 2008-11-01  7:28 Tom Preston-Werner
  2008-11-01 10:00 ` Santi Béjar
  0 siblings, 1 reply; 5+ messages in thread
From: Tom Preston-Werner @ 2008-11-01  7:28 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano

Gmail is one of the most popular email providers in the world. Now that Gmail
supports IMAP, sending properly formatted patches via `git imap-send` is
trivial. This section in SubmittingPatches explains how to do so.

Signed-off-by: Tom Preston-Werner <tom@github.com>
---
 Documentation/SubmittingPatches |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/Documentation/SubmittingPatches b/Documentation/SubmittingPatches
index a1e9100..f0295c6 100644
--- a/Documentation/SubmittingPatches
+++ b/Documentation/SubmittingPatches
@@ -456,3 +456,30 @@ This should help you to submit patches inline using KMail.

 5) Back in the compose window: add whatever other text you wish to the
 message, complete the addressing and subject fields, and press send.
+
+
+Gmail
+-----
+
+Submitting properly formatted patches via Gmail is simple now that
+IMAP support is available. First, edit your ~/.gitconfig to specify your
+account settings:
+
+[imap]
+	folder = "[Gmail]/Drafts"
+	host = imaps://imap.gmail.com
+	user = user@gmail.com
+	pass = p4ssw0rd
+	port = 993
+	sslverify = false
+
+Next, ensure that your Gmail settings are correct. In "Settings" the
+"Use Unicode (UTF-8) encoding for outgoing messages" should be checked.
+
+Once your commits are ready to send to the mailing list, run the following
+command to send the patch emails to your Gmail Drafts folder.
+
+	$ git format-patch -M --stdout origin/master | git imap-send
+
+Go to your Gmail account, open the Drafts folder, find the patch email, fill
+in the To: and CC: fields and send away!
-- 
1.6.0.2

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] add instructions on how to send patches to the mailing list with Gmail
  2008-11-01  7:28 [PATCH] add instructions on how to send patches to the mailing list with Gmail Tom Preston-Werner
@ 2008-11-01 10:00 ` Santi Béjar
  2008-11-01 20:40   ` Tom Preston-Werner
  0 siblings, 1 reply; 5+ messages in thread
From: Santi Béjar @ 2008-11-01 10:00 UTC (permalink / raw)
  To: Tom Preston-Werner; +Cc: git, Junio C Hamano

On Sat, Nov 1, 2008 at 8:28 AM, Tom Preston-Werner <tom@github.com> wrote:
> Gmail is one of the most popular email providers in the world. Now that Gmail
> supports IMAP, sending properly formatted patches via `git imap-send` is
> trivial. This section in SubmittingPatches explains how to do so.
>
> Signed-off-by: Tom Preston-Werner <tom@github.com>
> ---
>  Documentation/SubmittingPatches |   27 +++++++++++++++++++++++++++
>  1 files changed, 27 insertions(+), 0 deletions(-)
>
> diff --git a/Documentation/SubmittingPatches b/Documentation/SubmittingPatches
> index a1e9100..f0295c6 100644
> --- a/Documentation/SubmittingPatches
> +++ b/Documentation/SubmittingPatches
> @@ -456,3 +456,30 @@ This should help you to submit patches inline using KMail.
>
>  5) Back in the compose window: add whatever other text you wish to the
>  message, complete the addressing and subject fields, and press send.
> +
> +
> +Gmail
> +-----
> +
> +Submitting properly formatted patches via Gmail is simple now that
> +IMAP support is available. First, edit your ~/.gitconfig to specify your
> +account settings:
> +
> +[imap]
> +       folder = "[Gmail]/Drafts"
> +       host = imaps://imap.gmail.com
> +       user = user@gmail.com
> +       pass = p4ssw0rd
> +       port = 993
> +       sslverify = false

Warning: It is not secure.

> +
> +Next, ensure that your Gmail settings are correct. In "Settings" the
> +"Use Unicode (UTF-8) encoding for outgoing messages" should be checked.
> +
> +Once your commits are ready to send to the mailing list, run the following
> +command to send the patch emails to your Gmail Drafts folder.
> +
> +       $ git format-patch -M --stdout origin/master | git imap-send
> +
> +Go to your Gmail account, open the Drafts folder, find the patch email, fill
> +in the To: and CC: fields and send away!

Are you sure the mail does not get whitespace damaged?

Santi

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] add instructions on how to send patches to the mailing list with Gmail
  2008-11-01 10:00 ` Santi Béjar
@ 2008-11-01 20:40   ` Tom Preston-Werner
  2008-11-02  9:10     ` Pierre Habouzit
  0 siblings, 1 reply; 5+ messages in thread
From: Tom Preston-Werner @ 2008-11-01 20:40 UTC (permalink / raw)
  To: Santi Béjar; +Cc: git, Junio C Hamano

On Sat, Nov 1, 2008 at 3:00 AM, Santi Béjar <santi@agolina.net> wrote:
> On Sat, Nov 1, 2008 at 8:28 AM, Tom Preston-Werner <tom@github.com> wrote:
>> Gmail is one of the most popular email providers in the world. Now that Gmail
>> supports IMAP, sending properly formatted patches via `git imap-send` is
>> trivial. This section in SubmittingPatches explains how to do so.
>>
>> Signed-off-by: Tom Preston-Werner <tom@github.com>
>> ---
>>  Documentation/SubmittingPatches |   27 +++++++++++++++++++++++++++
>>  1 files changed, 27 insertions(+), 0 deletions(-)
>>
>> diff --git a/Documentation/SubmittingPatches b/Documentation/SubmittingPatches
>> index a1e9100..f0295c6 100644
>> --- a/Documentation/SubmittingPatches
>> +++ b/Documentation/SubmittingPatches
>> @@ -456,3 +456,30 @@ This should help you to submit patches inline using KMail.
>>
>>  5) Back in the compose window: add whatever other text you wish to the
>>  message, complete the addressing and subject fields, and press send.
>> +
>> +
>> +Gmail
>> +-----
>> +
>> +Submitting properly formatted patches via Gmail is simple now that
>> +IMAP support is available. First, edit your ~/.gitconfig to specify your
>> +account settings:
>> +
>> +[imap]
>> +       folder = "[Gmail]/Drafts"
>> +       host = imaps://imap.gmail.com
>> +       user = user@gmail.com
>> +       pass = p4ssw0rd
>> +       port = 993
>> +       sslverify = false
>
> Warning: It is not secure.

It is true that the certificate is not verified, but since the patches
are destined for a public mailing list, this does not represent a
large problem.

>> +
>> +Next, ensure that your Gmail settings are correct. In "Settings" the
>> +"Use Unicode (UTF-8) encoding for outgoing messages" should be checked.
>> +
>> +Once your commits are ready to send to the mailing list, run the following
>> +command to send the patch emails to your Gmail Drafts folder.
>> +
>> +       $ git format-patch -M --stdout origin/master | git imap-send
>> +
>> +Go to your Gmail account, open the Drafts folder, find the patch email, fill
>> +in the To: and CC: fields and send away!
>
> Are you sure the mail does not get whitespace damaged?

Yes, I have sent patches using exactly this method. Here is an example
of one I sent today:
http://article.gmane.org/gmane.comp.version-control.git/99759. Tabs
are preserved and lines are not wrapped improperly.

Tom

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] add instructions on how to send patches to the mailing list with Gmail
  2008-11-01 20:40   ` Tom Preston-Werner
@ 2008-11-02  9:10     ` Pierre Habouzit
  2008-11-02 15:01       ` Fredrik Skolmli
  0 siblings, 1 reply; 5+ messages in thread
From: Pierre Habouzit @ 2008-11-02  9:10 UTC (permalink / raw)
  To: Tom Preston-Werner; +Cc: Santi Béjar, git, Junio C Hamano

[-- Attachment #1: Type: text/plain, Size: 2030 bytes --]

On Sat, Nov 01, 2008 at 08:40:27PM +0000, Tom Preston-Werner wrote:
> On Sat, Nov 1, 2008 at 3:00 AM, Santi Béjar <santi@agolina.net> wrote:
> > On Sat, Nov 1, 2008 at 8:28 AM, Tom Preston-Werner <tom@github.com> wrote:
> >> Gmail is one of the most popular email providers in the world. Now that Gmail
> >> supports IMAP, sending properly formatted patches via `git imap-send` is
> >> trivial. This section in SubmittingPatches explains how to do so.
> >>
> >> Signed-off-by: Tom Preston-Werner <tom@github.com>
> >> ---
> >>  Documentation/SubmittingPatches |   27 +++++++++++++++++++++++++++
> >>  1 files changed, 27 insertions(+), 0 deletions(-)
> >>
> >> diff --git a/Documentation/SubmittingPatches b/Documentation/SubmittingPatches
> >> index a1e9100..f0295c6 100644
> >> --- a/Documentation/SubmittingPatches
> >> +++ b/Documentation/SubmittingPatches
> >> @@ -456,3 +456,30 @@ This should help you to submit patches inline using KMail.
> >>
> >>  5) Back in the compose window: add whatever other text you wish to the
> >>  message, complete the addressing and subject fields, and press send.
> >> +
> >> +
> >> +Gmail
> >> +-----
> >> +
> >> +Submitting properly formatted patches via Gmail is simple now that
> >> +IMAP support is available. First, edit your ~/.gitconfig to specify your
> >> +account settings:
> >> +
> >> +[imap]
> >> +       folder = "[Gmail]/Drafts"
> >> +       host = imaps://imap.gmail.com
> >> +       user = user@gmail.com
> >> +       pass = p4ssw0rd
> >> +       port = 993
> >> +       sslverify = false
> >
> > Warning: It is not secure.
> 
> It is true that the certificate is not verified, but since the patches
> are destined for a public mailing list, this does not represent a
> large problem.

What he means is that the password is cleartext ;)
(I think)


-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] add instructions on how to send patches to the mailing list with Gmail
  2008-11-02  9:10     ` Pierre Habouzit
@ 2008-11-02 15:01       ` Fredrik Skolmli
  0 siblings, 0 replies; 5+ messages in thread
From: Fredrik Skolmli @ 2008-11-02 15:01 UTC (permalink / raw)
  To: Pierre Habouzit; +Cc: Tom Preston-Werner, Santi Béjar, git, Junio C Hamano

On Sun, Nov 02, 2008 at 10:10:06AM +0100, Pierre Habouzit wrote:

> > > Warning: It is not secure.
> > 
> > It is true that the certificate is not verified, but since the patches
> > are destined for a public mailing list, this does not represent a
> > large problem.
> 
> What he means is that the password is cleartext ;)
> (I think)

The way I read and understand it, the issues arises if a MITM-attack takes
place.  If the client doesn't verify the certificate, an attacker can easily
get the username and password. 

So unless someone creates a separate gmail-account for submitting patches,
one should really trust the connection (ie not a public wlan), or verify the
certificate before transmitting the password.

-- 
Kind regards,
Fredrik Skolmli

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-11-02 15:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-01  7:28 [PATCH] add instructions on how to send patches to the mailing list with Gmail Tom Preston-Werner
2008-11-01 10:00 ` Santi Béjar
2008-11-01 20:40   ` Tom Preston-Werner
2008-11-02  9:10     ` Pierre Habouzit
2008-11-02 15:01       ` Fredrik Skolmli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).