title: fetch sent emails from gmail imap using nodejs
body: <p>I'm trying to fetch SENT emails from gmail server using nodemailer through Imap.</p>
  
  <p>the solution below is not working and the result is the INBOX not SENT </p>
  
  <pre><code>var imap = new Imap({
          user: request.body.email,
          password: request.body.password,
          host: '{imap.gmail.com:993/imap/ssl}INBOX.Sent',
          port: 993,
          tlsOptions: { rejectUnauthorized: false },
          tls: true
      });
  </code></pre>