title: Decoding name of file attachment doesnt work with properties
body: <p>I read this documentation:</p>
  
  <p><a href="http://docs.oracle.com/javaee/6/api/javax/mail/internet/package-summary.html" rel="nofollow">http://docs.oracle.com/javaee/6/api/javax/mail/internet/package-summary.html</a></p>
  
  <p>so I add some properties to mimeMessage:</p>
  
  <pre><code>Properties props = new Properties();
          props.put("mail.mime.decodefilename", true);
  
      Session mailConnection = Session.getInstance(props, null);
  
      source = new FileInputStream(emlFile);
  
      MimeMessage message = new MimeMessage(mailConnection, source);
  </code></pre>
  
  <p>now I am expectaing that method <code>bodyPart.getFileName()</code> return correct name of file. But with this configuration it still doesn work and I need to call mimeUtils: <code>MimeUtility.decodeText</code> - what I dont want. I also try:</p>
  
  <pre><code>        props.put("mail.mime.decodefilename", "true");
  </code></pre>
  
  <p>but with no success. So what I am doing wrong ?</p>
  
  <p>UPDATE:</p>
  
  <p>after debuging I had this sollution:</p>
  
  <p>this works</p>
  
  <pre><code>    Properties props = System.getProperties();        
      props.put("mail.mime.decodefilename", "true");
  </code></pre>
  
  <p>this doesnt work:</p>
  
  <pre><code>    Properties props = new Properites();
      props.put("mail.mime.decodefilename", "true");
  </code></pre>
  
  <p>so if filename is decoding depends on system property too. Does anyone know which properties ? I dont have pattion to try all system properties and solve which one it is</p>