I'm trying to build a solution to transfer attachments from Mail to an FTP folder. Are there any suggestions to solve this task?
My first idea was to write a shell script which fetches the mail from the Cyrus /var/imap folder and searches for the mail attachment finally writing it into a pdf file. As this does not seem to be the intended way of solving this issue, there might be a better one.