# Filing

This section configures how MsgFiler 4 operates before, during, and after filing.

<figure><img src="https://4639002-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTVWOEW6NaDJ95yKpBphJ%2Fuploads%2F0hGSvV47QxNplW4Uq3i3%2Fsettings-filing-430.png?alt=media&#x26;token=111054e4-6bf0-4f8f-b252-09cfeb1007ac" alt="" width="563"><figcaption></figcaption></figure>

## &#x20;Before Filing

* **Default Action**: Choose the default action to move messages, copy messages, open the currently selected mailbox, or do nothing.

## During Filing

* **Use Filing Script**: Enables the use of the [MsgFiler Filing Script](https://docs.msgfiler.com/using-msgfiler/msgfiler-filing-script). This enables MsgFiler 4 to perform additional actions such as filing Gmail messages, archiving messages from Mail, and more.
* **Installation Guide**: Learn how to download and install the MsgFiler Filing Script.
* **Gmail filing method**: Read the [Onboarding section on Gmail](https://docs.msgfiler.com/onboarding/gmail) for information about this setting.
* **Account-Specific Settings**: Set a different Gmail filing method for each of your Gmail accounts.
* **Mark messages as read**: Enable to have Mail mark all selected messages as read before filing.
* **Flag filed messages**: Enable to have Mail flag all selected messages with a custom flag before filing.
* **Label filed messages**: Enable to have Mail color code all selected messages with a chosen color or remove the messages' color label(s) before filing.

## After Filing

* **Keep MsgFiler open after filing**: Enable this when filing dozens or hundreds of emails in a single session. After filing, focus will return to MsgFiler 4 whereupon you can enter a new mailbox for filing the next selected message in Mail.
* **Move selection**: If you are filing non-Gmail messages, MsgFiler 4 will try to select the next or previous message in Mail after filing. This feature requires the MsgFiler Filing Script to be installed and activated in order to work.
* **Play sound after filing**: Turn this on to play a custom sound after filing messages in Mail.
* **Filing sound**: MsgFiler 4 comes with a series of different filing sounds, from fun to playful to subtle to professional. Or let MsgFiler 4 choose a random filing sound!

{% hint style="warning" %}
There is not an easy way to determine whether the Mail selection is at the end or beginning of the Message Viewer. As a result, Mail may lose its selection if you are:

* At the end of the message list and MsgFiler 4 is configured to move the selection down.
* At the beginning of the message list and MsgFiler 4 is configured to move the selection up.
  {% endhint %}
