Giter VIP home page Giter VIP logo

mail-to-dokuwiki's Introduction

Mail to Dokuwiki

Mail to Dokuwiki is a Dokuwiki action plugin that creates a new wiki page from matching emails. It is ispired by https://github.com/kelvinq/mail-to-dokuwiki with some code from https://www.dokuwiki.org/tips:mail2page and https://www.dokuwiki.org/plugin:clearhistory. The aim is to create an archive of circular emails inside an organization.

  • All emails (not only unread emails) will be pulled from an IMAP-Mailbox and a wiki-page with their text content and attachments will be created.
  • The email subject is prefixed with the date to create a chronologic email-archive.
  • The headline shows also date and sender of the email.
  • The emails are deleted after processing.
  • Only emails from a domain specified in the config menu are processed. Other Emails are deleted.
  • Only attachments of MIME-types specified in path_to_dokuwiki/conf/mime.conf are allowed (application/octet-stream is not allowed).

You will need to specify an IMAP email box for the script to check.

Mail to Dokuwiki processes your content according to the format of your subject line -

Subject line format Any non-URL line
Example Fwd: Meeting 01/04/2026
Mode Convert body of email, text-only, into new Dokuwiki page.
Page title Email subject line
Page body Email body (text-only)
Files Uploaded to the specified namespace with timestamp appended.
Links to files Appended to the end of the page

New feature: Post short news to specific section

You can specify a starting keyword to turn the email subject into a section on an existing wiki-page instaed of turning the whole email into a new wiki-page. This is intended to post short news on the landing page. These news-sections expire after a number of days specified in the configuration menu.

Subject line format Keyword Any non-URLS subject line
Example WCOTW John Doe wrote a great article. This is why his photo is on the landing page for 7 days!
Mode Convert subjcet line of email, text-only, into a section Dokuwiki page.
Section title Specified in configuration menu, e.g. Wiki-contributor of the week
Email body Ignored
Images Included in the newly inserted section, only images are processed, any other attachments are discarded

Dependencies & Install

bundeled in repo

{
    "require": {
        "php-imap/php-imap": ">=4.1",
        "ueberdosis/pandoc": ">=0.7"
    }
}

Maybe you need to install PHP-IMAP and Pandoc.

Download the repo as zipfile an install it in Dokuwiki via the plugin manager.

Configuration

Configuration can be done via the Config menu on the Admin page.

Limitations

  • Supports only first level namespaces.

mail-to-dokuwiki's People

Contributors

g-wenzel avatar kelvinq avatar

Stargazers

Christian Friedow avatar Jasper Mecklenburg avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.