> For the complete documentation index, see [llms.txt](https://docs.cogram.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cogram.com/guides/importing-emails.md).

# Importing Historical Emails

Cogram can import existing project emails into a project on your behalf. Imported emails appear in the project's **Emails** tab alongside any live-filed correspondence and are available as context for the AI agent.

## Supported formats

| Format             | Extension |
| ------------------ | --------- |
| Outlook archive    | `.pst`    |
| Email message file | `.eml`    |
| Outlook message    | `.msg`    |

A `.pst` archive is the most efficient format for large imports.

## How to request an import

Contact your Cogram representative or email **<support@cogram.com>** with:

* The email files (attached or as a secure download link)
* The Cogram project name or project ID
* Your Cogram user email address

One import request = one project. For multiple projects, submit one request per project.

Emails already in the project (matched by Message-ID) are skipped automatically.

## Exporting a PST from Outlook

1. Go to **File → Open & Export → Import/Export**.
2. Select **Export to a file → Outlook Data File (.pst)**.
3. Select the account or folder to export. Check **Include subfolders** for a full export.
4. Choose a save location and click **Finish**.

## After the import

Cogram will confirm when the import is complete and provide a summary of imported, duplicate, and skipped messages. Imported emails are identical to live-filed emails: searchable, available to Agent, and part of the project record.

## Next steps

* [Emails](/guides/emails.md): forward or auto-file ongoing project correspondence
* [Outlook Add-In: Email Filing](/guides/outlook-add-in-email-filing.md): connect Outlook to file emails automatically going forward
* [Agent](/guides/agent.md): use imported email history to generate summaries and reports


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.cogram.com/guides/importing-emails.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
