# What do you use to receive mailed patches? (was: What do you use to send git patches?)

3 messages from 2008-09-05 to 2008-09-05. Participants: Marc-André Lureau, Jakub Narebski, Pieter de Bie.
Thread: https://gitlist.dev/t/15382

## Marc-André Lureau, 2008-09-05 14:15

Subject: What do you use to receive mailed patches? (was: What do you use to send git patches?)
Message-ID: <e29894ca0809050715p6cc11525k7da204b43ae164ee@mail.gmail.com>
URL: https://gitlist.dev/e/e29894ca0809050715p6cc11525k7da204b43ae164ee%40mail.gmail.com

```
Hi!

Thanks Jakub for your answer.

On Fri, Sep 5, 2008 at 5:10 PM, Jakub Narebski <jnareb@gmail.com> wrote:
>> If somebody could explain how they handle the git send-mail patches
>> they recieve, I would be thankful. How do you create .mbox files? What
>> is your workflow when you deal with mails?
>
> I almost always use git-format-patch to generate patches (some people
> use git-show or git-diff for proof-of-concept patches), and either use
> git-send-email (I have sendmail configured to send mails via GMail,
> but my computer is single-user machine; you can try sendemail.smpt*
> options instead, if you have appropriate Perl modules installed), or
> use KMail: Message > Insert file, ensuring that in Options I have Word
> wrapping turned off.
>
> In some rare case I used 'stg mail' (also via properly configured
> sendmail).
>

My question was about handling the patches you receive. Sending
configuration is quite easy.

Thanks
-- 
Marc-André Lureau

```

## Jakub Narebski, 2008-09-05 14:30

Subject: Re: What do you use to receive mailed patches? (was: What do you use to send git patches?)
Message-ID: <200809051630.59036.jnareb@gmail.com>
URL: https://gitlist.dev/e/200809051630.59036.jnareb%40gmail.com
In-Reply-To: <e29894ca0809050715p6cc11525k7da204b43ae164ee@mail.gmail.com>

```
Dnia piątek 5. września 2008 16:15, Marc-André Lureau napisał:
> On Fri, Sep 5, 2008 at 5:10 PM, Jakub Narebski <jnareb@gmail.com> wrote:
>>>
>>> If somebody could explain how they handle the git send-mail patches
>>> they recieve, I would be thankful. How do you create .mbox files? What
>>> is your workflow when you deal with mails?
>>
>> I almost always use git-format-patch to generate patches (some people
>> use git-show or git-diff for proof-of-concept patches), and either use
>> git-send-email (I have sendmail configured to send mails via GMail,
>> but my computer is single-user machine; you can try sendemail.smpt*
>> options instead, if you have appropriate Perl modules installed), or
>> use KMail: Message> Insert file, ensuring that in Options I have Word
>> wrapping turned off.
>>
>> In some rare case I used 'stg mail' (also via properly configured
>> sendmail).
> 
> My question was about handling the patches you receive. Sending
> configuration is quite easy.

Sorry, my mistake.

Handling received patches is even simpler. In KMail/KNode us Save As
(with .txt or .patch extension), the "git am --3way <file>"
(or, but only once, "stg import -m < <file>").

-- 
Jakub Narebski
Poland

```

## Pieter de Bie, 2008-09-05 14:33

Subject: Re: What do you use to receive mailed patches? (was: What do you use to send git patches?)
Message-ID: <8516DF42-5E6B-4C36-BA2C-3D0B17554A1D@ai.rug.nl>
URL: https://gitlist.dev/e/8516DF42-5E6B-4C36-BA2C-3D0B17554A1D%40ai.rug.nl
In-Reply-To: <e29894ca0809050715p6cc11525k7da204b43ae164ee@mail.gmail.com>

```

On 5 sep 2008, at 16:15, Marc-André Lureau wrote:

> My question was about handling the patches you receive. Sending
> configuration is quite easy.

I use a little script that pipes the patches I have selected in Mail
through git-am, so it's just selecting the patches in my mail
client and then 'git apply-patches' in the repo I want them in.

- Pieter
```
