Skip to content
Learn › Get data in › Connectors: open the docs menu

Import email attachments into Mammoth over IMAP

The Email (IMAP) connector reads a mailbox over IMAP so files that arrive as email attachments can come into Mammoth. It's a file source, like a drive or file server. Open it from Data Library > New dataset > Connectors and search for Email (IMAP). Project Admins create the connection; Project Editors can start datasets from a connection the project already has. Which connectors you can add depends on your plan.

What you can bring in from email

  • Attachments of these types: .csv, .tsv, .xls, .xlsx and .xlsm.
  • Attachments from unread messages. Mammoth lists attachments from the 50 most recent unread messages in a folder, newest first. The default folder is INBOX.

Before you connect a mailbox

You need:

  • The mailbox's IMAP server, port and security setting.
  • The email address and its password. Many providers require an app password for IMAP access. For Gmail, create one at myaccount.google.com/apppasswords.
  • IMAP access turned on for the mailbox.

Connect a mailbox over IMAP

  1. Go to the Data Library, click New dataset, and choose Connectors.
  2. Search for Email (IMAP) and click its tile. The connector workspace opens with the Chat showing. See Connect a database or app for the shared steps.
  3. Enter the connection details below and connect.
FieldWhat to enter
HostIMAP server. Default imap.gmail.com. Other examples: outlook.office365.com, imap.mail.yahoo.com
PortDefault 993
SecuritySSL/TLS (port 993) (default), STARTTLS (port 143) or None
EmailThe mailbox address
PasswordThe mailbox password or app password
Display NameOptional label for this connection in Mammoth
Allow self-signed certificateTick only if your mail server uses a self-signed certificate
Security optionWhat it does
SSL/TLS (port 993)Encrypts the connection from the start
STARTTLS (port 143)Upgrades a plain connection to an encrypted one
NoneSends credentials in clear text

When Allow self-signed certificate is off (the default), Mammoth checks the server's TLS certificate. Turn it on only for a trusted server.

Keep collecting new email attachments

A file you save from a file source is saved once; Mammoth shows Saved once. Scheduled refresh for files is coming. Email (IMAP) datasets can't be added to a Dataset Refresh automation. To keep bringing in new attachments:

  1. Set up a File Collection automation with Email (IMAP) as the source. See What you can automate.
  2. Set up a Data Consolidation automation to add the collected files to a dataset.

Email (IMAP) limits

LimitValue
Messages scanned when listing attachmentsThe 50 most recent unread messages in the folder
Attachment sizeAttachments over 100 MB are skipped
Attachment types.csv, .tsv, .xls, .xlsx, .xlsm

Troubleshoot IMAP connections

SymptomLikely causeFix
Connection failsPort doesn't match SecurityUse 993 for SSL/TLS and 143 for STARTTLS
Connection failsIMAP is off, or the provider needs an app passwordTurn on IMAP access for the mailbox, and use an app password
Certificate errorThe server uses a self-signed certificateTick Allow self-signed certificate
An attachment doesn't appearIt's on an older or already-read message, too large, or an unsupported typeCheck it's among the 50 most recent unread messages, under 100 MB, and a supported type
Was this page helpful?

Something wrong? support@mammoth.io