# mbox: Convert local email messages to log messages

Using the `mbox()` driver, AxoSyslog can read email messages from local mbox files, and convert them to multiline log messages.

This driver has only one required option, the filename of the mbox file. To use the `mbox()` driver, the `scl.conf` file must be included in your AxoSyslog configuration:
```
 
       @include "scl.conf"
    
```

The `mbox()` driver is actually a reusable configuration snippet configured to read log messages using the `file()` driver. For details on using or writing such configuration snippets, see [Reusing configuration blocks](../../docs/axosyslog-core/chapter-configuration-file/large-configs/config-blocks/index.md). You can find the source of the configuration snippet on [GitHub](<https://github.com/axoflow/axosyslog/blob/master/scl/mbox/mbox.conf>).

## Example: Using the mbox() driver

The following example reads the emails of the root user on the AxoSyslog host.
```
 
       @include "scl.conf"
        source root-mbox {
            mbox("/var/spool/mail/root");
        };
    
```

* * *

[mbox() source options](../../docs/axosyslog-core/chapter-sources/configuring-source-mbox/reference-source-mbox/index.md)

Last modified June 4, 2024: [More github link updates (13f3206e)](<https://github.com/axoflow/axosyslog-core-docs/commit/13f3206e659157ec0efc7371296867db7371b637>)