title: mail sessions - too many active sessions
body: <p>I'm trying to develope a mail program to download/read emails from an Internet-server (e.g. gmail, gmx, ...). Therefore I need:</p>
  <ul>
  <li>a <code>Message[]</code>-Array to store/copy the INBOX-folder from the server</li>
  <li>a <code>Store</code>-object to connect to the pop3-Server.</li>
  <li>a <code>Map&lt;String,List&lt;?&gt;&gt;</code> to keep track of three different lists, storing the sender-adress, the sent-date and the subject of the mail, respectively.</li>
  </ul>
  <p>Since each of this methods needs to access the pop3-server, a <code>store</code>-object is created and connected to the pop-server.
  When creating the <code>store</code>-object seperately in each method, I get a &quot;javax.mail.AuthenticationFailedException&quot; (<em>too many axctive sessions</em>).
  I guess, that for each mail in the <code>Message[]</code>-Array, a single session-Object is created, thus getting about 1.800 sessions. Is there a way to create the <code>store</code>-object or the session kind-of globally an pass <em>the same</em> instance to each method? And, especially, to use <em>one</em> <code>store</code>-Object for each message in the Array?</p>
  <p>Thanks for any tips.</p>
  <p>PS.: Dunno if necessary to be mentioned, but I'm using javax.mail on an eclipse-IDE</p>