title: Javax.mail.FolderNotFoundException: Sent Items not found
body: <p>Hello im trying to retreive emails sent by my outlook mail but i have a prob in the folder name
  I can retreive my mail inbox using the folder &quot;Inbox&quot; but i want the sent items folder</p>
  <pre><code>final String username = &quot;XXXX@outlook.fr&quot;;  
      final String password = &quot;XXXX&quot;;
          Properties props = new Properties();
  props.setProperty(&quot;mail.store.protocol&quot;, &quot;imaps&quot;);        
  props.setProperty(&quot;mail.imap.port&quot;, &quot;993&quot;);
  props.setProperty(&quot;mail.imap.connectiontimeout&quot;, &quot;5000&quot;);
  props.setProperty(&quot;mail.imap.timeout&quot;, &quot;5000&quot;);
  
          Session session = Session.getDefaultInstance(props, null);
          session.setDebug(true);
          try {
              Store store = session.getStore(&quot;imaps&quot;);
              store.connect(&quot;outlook.office365.com&quot;, username, password);
              
  
              Folder inbox = store.getFolder(&quot;Sent Items&quot;);
              inbox.open(Folder.READ_ONLY);
              Message[] messages = inbox.getMessages();
              for (int i = 0; i &lt; messages.length; i++) {
                  Message message = messages[i];
                  System.out.println(&quot;---------------------------------&quot;);
                  System.out.println(&quot;Email Number &quot; + (i + 1));
                  System.out.println(&quot;Subject: &quot; + message.getSubject());
                  System.out.println(&quot;To: &quot; + message.getRecipients(Message.RecipientType.TO));
                  System.out.println(&quot;Text: &quot; + message.getContent().toString());
              }
              inbox.close(true);
              store.close();
          } catch (Exception e){
     e.printStackTrace();
    }
  </code></pre>
  <pre><code>avax.mail.FolderNotFoundException: Sent Items not found
      at com.sun.mail.imap.IMAPFolder.checkExists(IMAPFolder.java:455)
      at com.sun.mail.imap.IMAPFolder.open(IMAPFolder.java:1068)
      at com.sun.mail.imap.IMAPFolder.open(IMAPFolder.java:1001)
      at com.jsf.com.SendEmail.read2(SendEmail.java:61)
      at com.jsf.com.SendEmail.main(SendEmail.java:11)
  </code></pre>