<h2id="ImapClient">ImapClient<aclass="anchor-link"href="#ImapClient"></a></h2><p>The <ahref="/gmail_importer/importers.EmailImporter.html#EmailImporter"><code>EmailImporter</code></a> communicates with email providers over imap. We created a convenience class around pythons imaplib , called the <code>ImapClient</code> that lets you list your mailboxes, retriev your mails and get their content.</p>
<h2id="ImapClient">ImapClient<aclass="anchor-link"href="#ImapClient"></a></h2><p>The <ahref="/gmail_imap/importers.EmailImporter.html#EmailImporter"><code>EmailImporter</code></a> communicates with email providers over imap. We created a convenience class around pythons imaplib , called the <code>ImapClient</code> that lets you list your mailboxes, retriev your mails and get their content.</p>
<h2id="ImapClient">ImapClient<aclass="anchor-link"href="#ImapClient"></a></h2><p>The <ahref="/gmail_importer/importers.GmailImporter.html#EmailImporter"><code>EmailImporter</code></a> communicates with email providers over imap. We created a convenience class around pythons imaplib , called the <code>ImapClient</code> that lets you list your mailboxes, retriev your mails and get their content.</p>
<h2id="ImapClient">ImapClient<aclass="anchor-link"href="#ImapClient"></a></h2><p>The <ahref="/gmail_imap/importers.GmailImporter.html#EmailImporter"><code>EmailImporter</code></a> communicates with email providers over imap. We created a convenience class around pythons imaplib , called the <code>ImapClient</code> that lets you list your mailboxes, retriev your mails and get their content.</p>
This importers fetches your emails and accounts over IMAP, it uses the python built-in imap client and some convenience functions for easier usage, batching and importing to the pod. This importer requires you to login with your email address and an app password. It is tested on gmail, but should work for other IMAP-servers.
%% Cell type:markdown id: tags:
> Note: **The recommended usage for Gmail is to enable two-factor authentication. In this case, make sure you allow [SMTP-connections](https://www.gmass.co/blog/gmail-smtp/) and set an application password (explained in the same link)**