> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Extended diagnostics for email import

> Enable interaction logging for IMAP and MAPI email import in ABBYY FlexiCapture, using registry keys and a DeveloperSettings.xml file to capture logs.

## Interaction log for the IMAP protocol

A registry key turns on IMAP interaction logging during document import.

<Steps>
  <Step title="Create the Controller key">
    In Regedit, create a key named `Controller` in `HKEY_CURRENT_USER\SOFTWARE\ABBYY\FlexiCapture\12.0`.
  </Step>

  <Step title="Create the TextTcpStream key">
    Add a key named `TextTcpStream` inside `Controller`.
  </Step>

  <Step title="Set the log file path">
    In `TextTcpStream`, create a string variable named `LogFilePath` and set it to the path where the log file should be created.
  </Step>
</Steps>

With `C:\Temp` as the path, the finished key looks like this.

```reg theme={null}
[HKEY_CURRENT_USER\Software\ABBYY\FlexiCapture\12.0\Controller\TextTcpStream]
"LogFilePath"="C:\\Temp"
```

Reproduce the error and analyze the records in the log file. If you cannot fix it yourself, contact ABBYY technical support with the log file.

## MAPI protocol interaction log

Create a `DeveloperSettings.xml` file in the folder where the Processing Station is installed, containing the following.

```xml theme={null}
<DeveloperSettings VersionNumber="1">
  <LogsSettings>
    <Application IsEnabled="true" NamePreffix="" UseProcessIdInName="true" Path="C:\LogFolder" Extention="log" StringTypes="Test;Error;RpcCall;StreamProtocol" ExeNames="*" MaxLogLength="10485760" MaxLogPartsCount="1000" Format="Plain"/>
  </LogsSettings>
  <PathToDumpTempFiles>C:\LogFolder\temp</PathToDumpTempFiles> <!-- saves PDFtools temporary files -->
</DeveloperSettings>
```

Create the `C:\LogFolder` folder and grant all users write access to it. Create `C:\LogFolder\temp` inside it.

Reproduce the error and analyze the records in the log file. If you cannot fix it yourself, contact ABBYY technical support with the log file.
