Thank you very much for your reply! <div><br></div><div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br>
</div>So it works if you boot directly to Ubuntu, but not if you boot Ubuntu as a<br>
virtual machine?<br>
<div><br></div></blockquote><div> </div><div>Yes that's what happened. I didn't know why either. The /bin/sh worked fine. </div><div>I didn't try to trouble shoot it since it worked on Ubuntu host.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes, patchwork needs a List-Id (or X-Mailing-List) header to determine which<br>
project an email is for. If the mbox you have is from a mailing list, it<br>
should have one of these headers. You will need to check that the settings for<br>
the project (in the patchwork /admin/ interface) have the matching list-id<br>
setting.<br></blockquote><div><br></div><div>When I am taking about mailinglist, I meant the archive from this page. <a href="http://lists.ozlabs.org/pipermail/patchwork/" target="_blank">http://lists.ozlabs.org/pipermail/patchwork/</a>. When I unzip the archive it didn't have the List-ID information.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br> formail -i 'List-Id: My project <<a href="http://bar.foo.com" target="_blank">bar.foo.com</a>>' < old.mbox > new.mbox<br></blockquote><div> </div><div>Thank you very much. I modified it a bit so that it works with multiple email per file.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">parsemail.py expects one email on its input.<br>
<br>
However, you can use formail to execute the parser on each mail of a multiple-<br>
mail mbox file:<br>
<br>
formail -s /srv/patchwork/apps/patchwork/bin/parsemail.sh < your-file.mbox<br></blockquote><div><br></div><div>This works fine. Thanks!</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><br>
> I saw the parsemail-batch.sh, but it seems to require one email per<br>
> file because it uses the parsemail.py.<br>
<br>
</div>This is for importing a maildir-style directory of single-mail files<br>
<br>
Cheers,<br>
<font color="#888888"><br>
<br>
Jeremy<br>
</font></blockquote></div><br></div></div>