https://github.com/p3rception/thunderbird-sieve-converter
// Converts Thunderbird email filter rules to Sieve rules
https://github.com/p3rception/thunderbird-sieve-converter
email filters sieve thunderbird
Last synced: about 1 year ago
JSON representation
// Converts Thunderbird email filter rules to Sieve rules
- Host: GitHub
- URL: https://github.com/p3rception/thunderbird-sieve-converter
- Owner: p3rception
- License: mit
- Created: 2024-09-17T15:50:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-17T16:03:33.000Z (over 1 year ago)
- Last Synced: 2025-06-12T13:06:59.376Z (about 1 year ago)
- Topics: email, filters, sieve, thunderbird
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Thunderbird-Sieve-Converter
This Python script converts Thunderbird email filter rules (from `msgFilterRules.dat`) to Sieve script format, which can be used with email systems supporting Sieve filtering, such as Roundcube.
# Usage
```
python filter_converter.py /path/to/msgFilterRules.dat [output_file.sieve]
```
- The first argument is the path to the Thunderbird filter file (msgFilterRules.dat).
- The second argument (optional) specifies the output Sieve file. If omitted, it defaults to roundcube.sieve.
# Common Bug to Watch Out For
When reviewing the generated Sieve script, please ensure the following header format is correct:
```
header :contains "" ""
```
* If the header contains more than one pair of quotation marks, for example, `header :contains ""received""`, this is incorrect.
* The script aims to clean and format headers correctly, but in case you encounter extra or misaligned quotes in the Sieve file, you may need to double-check the msgFilterRules.dat format or notify me of the issue.
# Contributing
Feel free to open issues or submit pull requests if you have suggestions for improvements or find any bugs.
# License
This project is licensed under the MIT License. See the [LICENSE](/LICENSE) file for details.