title: How to get the number of mail read and unread or sent and received with gmali-api?
body: <p>I want to use python to know how many emails have been sent and how many have been received.</p>
  
  <pre><code>label_id_one = 'INBOX'
  label_id_two = 'UNREAD'
  # Getting all the unread messages from Inbox
  unread_msgs = GMAIL.users().messages().list(userId='me', labelIds=[label_id_one, label_id_two]).execute()
  </code></pre>
  
  <p>When I use this code,I can get the count of unread mails from inbox.</p>
  
  <p>But how to get the count of readed mails?</p>
  
  <p>Use the count of all mails minus unread mails?I don't think that's good.</p>
  
  <p>I queried the API at this <a href="https://developers.google.com/gmail/api/v1/reference/" rel="nofollow noreferrer">link</a>, but no API provided such data.</p>
  
  <p>How can I get such data?</p>