title: Convert Maildir to mbox
body: <p>Im changing hosts and i need to convert my maildir accounts on my old server to mbox on my new server.</p>
  
  <p>Any ideas on the best way to do this?</p>
  
  <p>I found this:</p>
  
  <p>for i in new/* cur/*;do formail &lt;”$i” >> ../mbox;done</p>
  
  <p>But i dont really understand it. I have a basic knowledge of linux and I have root access to my server via ssh.</p>
  
  <p>most of the Maildir folder have the following contents:</p>
  
  <hr>
  
  <p>cur<br>
  new<br>
  tmp<br>
  dovecot.index.log<br>
  dovecot-uidlist<br>
  dovecot.index<br>
  dovecot.index.log.2<br>
  dovecot.index.cache<br>
  dovecot-keywords<br>
  subscriptions</p>
  
  <hr>
  
  <p>Do i need all of that or can i ignore the dovecot files?</p>
  
  <p>Any advice would be greatly appreciated.</p>
  
  <p>C</p>