Back to Documentation

Exporting Emails

Export archived emails from Piler to EML format.

Export to EML Format

Export all emails >10kB in last December

pilerexport -s 10000 --start-date 2024.12.01 --stop-date 2024.12.31

Export all emails if size is between 100k and 2MB AND the sender is any of aaa@aaa.fu,bbb@aaa.fu,ccc@ccc.fu AND the recipient is aaa@gmail.com

pilerexport -s 100000 -S 2000000 -f aaa@aaa.fu -f bbb@aaa.fu -f ccc@ccc.fu -r aaa@gmail.com

Daily backup to a zip file in the the current directory

pilerexport --start-date 2025.12.20 --stop-date 2025.12.20 --zip daily-20251220.zip

Export all emails matching the search query

pilerexport --index-list piler1 --where-condition "match('@subject vendor invoices')"

Additional Resources