On 05/07/2020 18:07 Marcel Blenkers <marcel.blenkers@web.de> wrote:



Hi everyone,

i hope someone can help me.

There is one folder in a mailbox for user a

i need to export the following information about the mails in this folder

from, to, subject, date

is there a script for this?

doveadm dump shows me to much and i am not able to export those informations in a csv

if there is a way to use doveadm dump to export into a csv i would be happy

every mail is one file in this folder.

thanks in advance

Greetings
Marcel
--
Diese Nachricht wurde von meinem Android Mobiltelefon mit WEB.DE Mail gesendet.

doveadm -ftab fetch -u user "hdr.from hdr.to date hdr.subject" mailbox FooBox | sed -e "s/\t/;/g" > result.csv

Might need bit of tuning
---
Aki Tuomi