> ## 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

To enable interaction logging for the IMAP protocol when importing documents, set up the appropriate key in the registry:

1. Launch Regedit.
2. Create a key named `Controller` in `HKEY_CURRENT_USER\SOFTWARE\ABBYY\FlexiCapture\12.0`.
3. In the `Controller` key, create a new key named `TextTcpStream`.
4. In the `TextTcpStream` key, create a string variable named `LogFilePath`.
5. For the value of the `LogFilePath` variable, specify a path where the log file is created.

The registry key looks as follows (for example, if the specified path is `C:\Temp`):

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

After enabling logging, reproduce the error and analyze the records in the log file. If you cannot fix the error yourself, contact ABBYY's technical support, providing the log file.

## MAPI protocol interaction log

To enable MAPI protocol interaction logging, create a `DeveloperSettings.xml` file in the folder where the processing station is installed.

Add the following to the file:

```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 a `C:\LogFolder` folder and provide all users with write rights to it. Create a temp folder inside this folder (that is, `C:\LogFolder\temp`).

After enabling logging, recreate the error and analyze the records in the log file. If you cannot fix the error yourself, contact ABBYY's technical support, providing the log file.
