Hi,
I wrote a PHP script that imports emails (through IMAP) as Dokuwiki pages.
It supports HTML emails, imports webpages (with URLs specified in the subject line), and uploads attachments with the relevant links. It then emails you the link to the newly added Dokuwiki page via your SMTP server.
You may get the source and the documentation here -
https://github.com/kelvinq/mail-to-dokuwiki
I wrote this to scratch my own itch, get back into the joy of building something, and hope it turns out to be useful for someone else. 🙂
If you like it, please share with me how I may improve it.
Kelvin Quee