4 ms·
Coincidentally, I made something like this for myself. Although perhaps not really a wiki, it's a static-site generator that uses e-mail messages as input. It'
by thsealienbstrds 7y ago
Coincidentally, I made something like this for myself. Although perhaps not really a wiki, it's a static-site generator that uses e-mail messages as input.
It's based on a ~400 line Python script that extracts mails from specified folders in my mailbox and a ~100 line Bash script that turns it into a website. It's not user-friendly really... but I like the fact that the system is rather simple (bias mine).
The Python script takes a mailbox folder, concatenates the bodies of all the messages and stores the result in a single file derived from the mailbox-folder's name. The attachments for a message are stored in a dedicated folder for each message, where the names of those folder are derived from the subjects of the messages, and the attachments' filenames are simplified.
The Bash script then assumes that the resulting collection of concatenated files are in markdown format and runs Pandoc on them to generate the HTML files. Then, the entire result is copied to document-root.
As it is, it is mainly useful for (micro)blogging... it's a bit tedious to edit markdown on a smart-phone, especially linking to files. On the other hand, it's basically Twitter in 500 LOC. There's got to be some value in that.