git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Using thunderbird to post/apply patches?
@ 2008-02-07 23:21 Martin Langhoff
  2008-02-07 23:34 ` Johannes Schindelin
  2008-02-07 23:44 ` Brandon Casey
  0 siblings, 2 replies; 9+ messages in thread
From: Martin Langhoff @ 2008-02-07 23:21 UTC (permalink / raw)
  To: Git Mailing List

Is there anyone using thunderbird/mozilla to post patches with
additional email commentary like Junio and Linus do? Are there good
tricks for this? Or otherwise a similar MUA that does things right?

The 2 workflows I am after are...

 - Load up a patch created with git-format-patch into my email editor
to add some commentary before sending. Should not munge the patch
itself!

 - Feed an email I am reading to git-apply-mbox so that if it's
reasonably formatted as a patch it will do the right thing and apply
it.

cheers,



m

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

* Re: Using thunderbird to post/apply patches?
  2008-02-07 23:21 Using thunderbird to post/apply patches? Martin Langhoff
@ 2008-02-07 23:34 ` Johannes Schindelin
  2008-02-07 23:42   ` Martin Langhoff
  2008-02-07 23:44 ` Brandon Casey
  1 sibling, 1 reply; 9+ messages in thread
From: Johannes Schindelin @ 2008-02-07 23:34 UTC (permalink / raw)
  To: Martin Langhoff; +Cc: Git Mailing List

Hi,

On Fri, 8 Feb 2008, Martin Langhoff wrote:

> Is there anyone using thunderbird/mozilla to post patches with 
> additional email commentary like Junio and Linus do? Are there good 
> tricks for this? Or otherwise a similar MUA that does things right?
> 
> The 2 workflows I am after are...
> 
>  - Load up a patch created with git-format-patch into my email editor
> to add some commentary before sending. Should not munge the patch
> itself!

The "Thunderbird" section in Documentation/SubmittingPatches should help 
here.

>  - Feed an email I am reading to git-apply-mbox so that if it's
> reasonably formatted as a patch it will do the right thing and apply
> it.

Recently, git-am learnt to apply mails in maildir format.  Thunderbird 
uses maildir format internally, if I am not mistaken.

Hth,
Dscho

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

* Re: Using thunderbird to post/apply patches?
  2008-02-07 23:34 ` Johannes Schindelin
@ 2008-02-07 23:42   ` Martin Langhoff
  2008-02-08  0:12     ` Johannes Schindelin
  0 siblings, 1 reply; 9+ messages in thread
From: Martin Langhoff @ 2008-02-07 23:42 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: Git Mailing List

On Feb 8, 2008 12:34 PM, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> The "Thunderbird" section in Documentation/SubmittingPatches should help
> here.

If that's state-of-the-art then thunderbird hasn't gotten any better
since I last tried. Shame.

> >  - Feed an email I am reading to git-apply-mbox so that if it's
> > reasonably formatted as a patch it will do the right thing and apply
> > it.
>
> Recently, git-am learnt to apply mails in maildir format.  Thunderbird
> uses maildir format internally, if I am not mistaken.

It uses mbox - but the delimiter is somewhat broken, so sometimes
git-am fails to split the emails correctly.

A pretty sad story overall. Grumble...


m

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

* Re: Using thunderbird to post/apply patches?
  2008-02-07 23:21 Using thunderbird to post/apply patches? Martin Langhoff
  2008-02-07 23:34 ` Johannes Schindelin
@ 2008-02-07 23:44 ` Brandon Casey
  2008-02-08  4:10   ` Jay Soffian
  1 sibling, 1 reply; 9+ messages in thread
From: Brandon Casey @ 2008-02-07 23:44 UTC (permalink / raw)
  To: Martin Langhoff; +Cc: Git Mailing List

Martin Langhoff wrote:
> Is there anyone using thunderbird/mozilla to post patches with
> additional email commentary like Junio and Linus do? Are there good
> tricks for this? Or otherwise a similar MUA that does things right?
> 
> The 2 workflows I am after are...
> 
>  - Load up a patch created with git-format-patch into my email editor
> to add some commentary before sending. Should not munge the patch
> itself!

I use git-send-email to first send the patch to myself.
When it shows up in thunderbird, I Right-click and select "Edit As New..."
Add my text, update the recipients, and voila.

If you're replying to a previous message, you can get the Message-ID to
supply to git-send-email by selecting View->Headers->All. Copy&Paste
everything between the angle brackets.

I have these options set in Edit->Preferences:
  Display->Formatting->Display emoticons as graphics: unchecked, it turns
    HEAD^2 into HEAD squared
  Composition->General->Wrap plain text messages at 0 characters
                                                    ^

I also have mailnews.send_plaintext_flowed => false as suggested in
SubmittingPatches. There is a different suggestion in that document
you may want to read.

>  - Feed an email I am reading to git-apply-mbox so that if it's
> reasonably formatted as a patch it will do the right thing and apply
> it.

I just Right-click and Save As...

cat <saved_as> | git am

-brandon

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

* Re: Using thunderbird to post/apply patches?
  2008-02-07 23:42   ` Martin Langhoff
@ 2008-02-08  0:12     ` Johannes Schindelin
  2008-02-08  4:27       ` Martin Langhoff
  0 siblings, 1 reply; 9+ messages in thread
From: Johannes Schindelin @ 2008-02-08  0:12 UTC (permalink / raw)
  To: Martin Langhoff; +Cc: Git Mailing List

Hi,

On Fri, 8 Feb 2008, Martin Langhoff wrote:

> On Feb 8, 2008 12:34 PM, Johannes Schindelin 
> <Johannes.Schindelin@gmx.de> wrote:
>
> > Martin wrote:
> >
> > >  - Feed an email I am reading to git-apply-mbox so that if it's 
> > > reasonably formatted as a patch it will do the right thing and apply 
> > > it.
> >
> > Recently, git-am learnt to apply mails in maildir format.  
> > Thunderbird uses maildir format internally, if I am not mistaken.
> 
> It uses mbox - but the delimiter is somewhat broken, so sometimes git-am 
> fails to split the emails correctly.
> 
> A pretty sad story overall. Grumble...

Do you have an example of a non-working mbox for git-am?

Thanks,
Dscho

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

* Re: Using thunderbird to post/apply patches?
  2008-02-07 23:44 ` Brandon Casey
@ 2008-02-08  4:10   ` Jay Soffian
  2008-02-08  7:26     ` Junio C Hamano
  2008-02-08 11:38     ` Johannes Schindelin
  0 siblings, 2 replies; 9+ messages in thread
From: Jay Soffian @ 2008-02-08  4:10 UTC (permalink / raw)
  To: Brandon Casey; +Cc: Martin Langhoff, Git Mailing List

On Feb 7, 2008 6:44 PM, Brandon Casey <casey@nrlssc.navy.mil> wrote:

> I also have mailnews.send_plaintext_flowed => false as suggested in
> SubmittingPatches.

Would teaching git-mailsplit to handle format=flowed be considered a
useful contribution?

(W/o sounding like a total script weenie, I'm actually wondering if
converting git-am, git-mailsplit, and git-mailinfo to Perl code
wouldn't be a bad idea... groking email is a lot more pleasant in Perl
than shell and/or C.)

j.

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

* Re: Using thunderbird to post/apply patches?
  2008-02-08  0:12     ` Johannes Schindelin
@ 2008-02-08  4:27       ` Martin Langhoff
  0 siblings, 0 replies; 9+ messages in thread
From: Martin Langhoff @ 2008-02-08  4:27 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: Git Mailing List

On Feb 8, 2008 1:12 PM, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> Do you have an example of a non-working mbox for git-am?

good news - tested the mbox files I have (which used to get git-am to
barf back in the v0.99 days), and they work well. So things have
gotten much better on that front... probably git mailsplit got
smarter. I doubt thunderbird has changed one bit :-)

cheers!


m

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

* Re: Using thunderbird to post/apply patches?
  2008-02-08  4:10   ` Jay Soffian
@ 2008-02-08  7:26     ` Junio C Hamano
  2008-02-08 11:38     ` Johannes Schindelin
  1 sibling, 0 replies; 9+ messages in thread
From: Junio C Hamano @ 2008-02-08  7:26 UTC (permalink / raw)
  To: Jay Soffian; +Cc: Brandon Casey, Martin Langhoff, Git Mailing List

"Jay Soffian" <jaysoffian+git@gmail.com> writes:

> On Feb 7, 2008 6:44 PM, Brandon Casey <casey@nrlssc.navy.mil> wrote:
>
>> I also have mailnews.send_plaintext_flowed => false as suggested in
>> SubmittingPatches.
>
> Would teaching git-mailsplit to handle format=flowed be considered a
> useful contribution?

In the way the e-mail processing toolchain is structured, I
think git-mailinfo is the logical place to do that, not
git-mailsplit.  It already knows how to unwrap single level of
MIME multi-part and also CTE.

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

* Re: Using thunderbird to post/apply patches?
  2008-02-08  4:10   ` Jay Soffian
  2008-02-08  7:26     ` Junio C Hamano
@ 2008-02-08 11:38     ` Johannes Schindelin
  1 sibling, 0 replies; 9+ messages in thread
From: Johannes Schindelin @ 2008-02-08 11:38 UTC (permalink / raw)
  To: Jay Soffian; +Cc: Brandon Casey, Martin Langhoff, Git Mailing List

Hi,

On Thu, 7 Feb 2008, Jay Soffian wrote:

> On Feb 7, 2008 6:44 PM, Brandon Casey <casey@nrlssc.navy.mil> wrote:
> 
> > I also have mailnews.send_plaintext_flowed => false as suggested in 
> > SubmittingPatches.
> 
> Would teaching git-mailsplit to handle format=flowed be considered a 
> useful contribution?
> 
> (W/o sounding like a total script weenie, I'm actually wondering if 
> converting git-am, git-mailsplit, and git-mailinfo to Perl code wouldn't 
> be a bad idea... groking email is a lot more pleasant in Perl than shell 
> and/or C.)

FWIW I think you have it backwards.  It might look nicer in Perl, but we 
try very hard to consolidate the major pieces into C code.  This is done 
for several reasons:

- reducing dependencies (not everybody needs all git programs, so it even 
helps if one script is converted at a time), and

- making the experience nicer on Windows (reducing the foot-print, since 
Perl is _not_ commonly installed, and drastically improving performance, 
since the number of processes is reduced).

So no, I would not like these scripts being converted (back?) to scripts.

Thank you,
Dscho

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

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

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-07 23:21 Using thunderbird to post/apply patches? Martin Langhoff
2008-02-07 23:34 ` Johannes Schindelin
2008-02-07 23:42   ` Martin Langhoff
2008-02-08  0:12     ` Johannes Schindelin
2008-02-08  4:27       ` Martin Langhoff
2008-02-07 23:44 ` Brandon Casey
2008-02-08  4:10   ` Jay Soffian
2008-02-08  7:26     ` Junio C Hamano
2008-02-08 11:38     ` Johannes Schindelin

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).