# git-applymbox fails to extract patch.

3 messages from 2006-03-10 to 2006-03-10. Participants: Dave Jones, Linus Torvalds.
Thread: https://gitlist.dev/t/3616

## Dave Jones, 2006-03-10 05:04

Subject: git-applymbox fails to extract patch.
Message-ID: <20060310050446.GA20764@redhat.com>
URL: https://gitlist.dev/e/20060310050446.GA20764%40redhat.com

```
Since my munged versions of Linus' original apply-mbox scripts
no longer work on current git, I figured I'd try and use the
ones provided with it.

I'm totally confused as to what's going on here.

Here's what I'm trying to apply..
http://userweb.kernel.org/~davej/mbox.txt

And here's what happens..

(04:59:42:davej@hera:cpufreq)$ git-applymbox -k ~/Mail/mbox
1 patch(es) to process.

Applying ''

fatal: No changes


What am I missing ?

		Dave

```

## Linus Torvalds, 2006-03-10 05:35

Subject: Re: git-applymbox fails to extract patch.
Message-ID: <Pine.LNX.4.64.0603092130030.18022@g5.osdl.org>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0603092130030.18022%40g5.osdl.org
In-Reply-To: <20060310050446.GA20764@redhat.com>

```


On Fri, 10 Mar 2006, Dave Jones wrote:
> 
> What am I missing ?

Do you have "Content-Type:" headers with a multi-part boundary? That can 
cause it.

Also, empty X-IMAP messages at the beginning of a mbox (pine does those, 
others probably do too) will cause things like that. The extra "email" 
will have no patch in it..

		Linus

```

## Dave Jones, 2006-03-10 05:47

Subject: Re: git-applymbox fails to extract patch.
Message-ID: <20060310054701.GA27114@redhat.com>
URL: https://gitlist.dev/e/20060310054701.GA27114%40redhat.com
In-Reply-To: <Pine.LNX.4.64.0603092130030.18022@g5.osdl.org>

```
On Thu, Mar 09, 2006 at 09:35:11PM -0800, Linus Torvalds wrote:
 > 
 > 
 > On Fri, 10 Mar 2006, Dave Jones wrote:
 > > 
 > > What am I missing ?
 > 
 > Do you have "Content-Type:" headers with a multi-part boundary? That can 
 > cause it.

ahhh.
I was sent a MIME mail, and saved the attachment, then deleted
the junk from the body, and inlined it.
Never crossed my mind to check the headers.  That'll be it.

Now I remember why I hate hand-munging mails.


*snip snip*


$ git-applymbox -k ~/Mail/mbox
1 patch(es) to process.

Applying '[CPUFREQ] Fix the p4-clockmod N60 errata workaround.'

Wrote tree 6d7d2dfd2309675446f727a6b4b2a6ff475835fb
Committed: 6d373ea012b2974e627b9ee830e75cf3bf3c4c24

Sweet. I'm happy again.

Thanks,

		Dave
-- 
http://www.codemonkey.org.uk

```
