# Email Processing (RIM)

In addition to Vault's [standard email processor](/en/lr/74665/), you can use a RIM-specific email processor to convert [inbound emails](/en/lr/74659/) and their attachments into unclassified Vault documents. This can be [useful][2], for example, for quickly uploading and classifying Health Authority correspondence sent to your organization as an email attachment.



<div class="note-border alert-info">
  <div class="alert alert-info" role="alert">
    <div><i class="far fa-info-circle"></i></div>
    <div class="alert-text">
      <p><strong>Note</strong>: This feature is only available in RIM Vaults and must be <a href="/en/lr/53688/#configuration-options">configured by an Admin</a>.</p>
    </div>
  </div>
</div>



## About the Vault RIM Create Documents from Email Processor

The _Vault RIM Create Documents from Email_ processor performs many of the same actions on inbound emails as the standard _Create Document from Email_ processor, with special attachment handling for RIM business needs.

When processing inbound emails, Vault:

* Creates _Unclassified_ Vault documents for the email itself and for each individual attachment, when included. If documents in your Vault are configured to allow [Attachments](/en/lr/24287/), the processor also adds them to the email document. See [Email & Attachment Limitations][1].
* Sets the _Created from email_ document field with a link to the [_Email_ object record](/en/lr/74659/) and tags each document with a _Created from ingested email_ [document tag](/en/lr/34963/). You can use both to search and filter for ingested email documents in the Library.
* Notifies the sender of all creation successes and failures in a Vault email and notification. If [duplicate content detection](/en/lr/63141/) is enabled in your Vault, the notification also includes a link to any existing documents skipped during processing.

To enhance your organization's Email Processing capabilities, train [the RIM Bot](/en/lr/518091/), a machine learning model, to automatically classify documents in the Document Inbox.

## Email & Attachment Limitations {#email-and-attachment-limitations}

* The _Vault RIM Create Documents from Email_ processor supports inbound emails with up to 20 attachments. Duplicates (when detection is enabled), blocked items, and the email itself do not count towards this limit. If the email contains 21 or more attachments, Vault marks the _Email_ object record as _Failed_ and sends a notification.
* Duplicate content detection does not extend to the email itself. See the Email Sent to a Group [use case][2] for details on how Vault behaves when the same email is sent more than once.

## Use Cases {#use-cases}

### Email Sent to an Individual

At VernBio, all email correspondence with an outsourced medical writing team is sent directly to Regina. When the team sends a document as an email attachment, Regina forwards the email to her Vault's inbound email address, and Vault creates two _Unclassified_ documents: one for the email, and one for the attached document. Regina manually classifies both from her Document Inbox.

#### With RIM Bot in Use

In the above scenario, Regina only needs to forward the email to her Vault's inbound email address: Once Vault creates the _Unclassified_ documents, RIM Bot classifies them.

### Email Sent to a Group

VernBio's correspondence with the EMA is sent to an inbox shared by the entire Regulatory group, including Roger and Regina. Roger monitors the inbox more frequently, so when the shared inbox receives an email from the EMA with VernBio's latest Approval letter attached, he forwards the email to Vault's inbound email address and manually classifies the email and Approval letter in the Vault Library.

Later in the day, Regina forwards the same email to the inbound email address. Vault creates a document for the email and notifies Regina that the letter is already in the Library. Regina opens the duplicate document from the notification and sees Roger is listed as the document's _Owner_.

As VernBio's [_Inbox_ document lifecycle](/en/lr/15020/#sharing-settings) does not allow Regina (now the duplicate email document _Owner_) to delete such documents, Regina notifies VernBio's Vault Admin of the error, and the Admin deletes the email document from the Document Inbox.

#### With RIM Bot in Use

In the above scenario, RIM Bot automatically classifies the email document for Regina. When Regina reviews the Vault notification and observes the letter is already in the Library, she asks VernBio's Vault Admin to delete the accompanying email document.

## About the Correspondence Email Processor

The _Correspondence Email Processor_ automates the initial steps of the correspondence intake process. 

In addition to creating documents for the email and its attachments, the processor performs the following:

* Automatically classifies documents based on the document type configured for the inbound email address.  
  * For customers who wish to have RIM Bot continue to classify documents, the document type can be configured as Unclassified for the inbound email address   
* Automatically assigns user groups to document roles configured on the _Inbox/Unclassified_ document lifecycle and defaults the user group assignments into the document’s Sharing Settings.  
* Starts a workflow that can auto-assign tasks based on the defaulted roles within the uploaded document’s Sharing Settings.   
* Vault generates a relationship between the original source email document and each document created from the email’s attachments.

With the **Correspondence Email Processor**, Vault automates these steps to ensure documents are immediately actionable. For example:

* If you forward an email to the assigned address, Vault can automatically classify the extracted document as a _Request for Information_.  
* When emails include attachments, Vault creates relationships between the email source and all attachment documents.  
* If configured, Vault automatically initiates a multi-document workflow and assigns tasks to specific user groups so they are notified to process documents in the _Inbox_.

[1]: #email-and-attachment-limitations
[2]: #use-cases
