title: How to replicate a SMTP incoming mail on JAVA args
body: <p>I am trying to locally debug a remote issue where a java jar is processing an incoming mail:</p>
  
  <pre><code>java -jar /usr/local/bin/processmail.jar $*
  </code></pre>
  
  <p>I have the code within my eclipse and want to pass the email to it. Is there a way to capture the mail, such as in a logfile, or in a file and pass it to my Java project?</p>
  
  <p>Cheers</p>