Coder Social home page Coder Social logo

ananaspfirsichsaft / phpmaildirclass Goto Github PK

View Code? Open in Web Editor NEW
3.0 0.0 2.0 15 KB

phpmaildirclass allows you to view your e-mails in browser from a maildir source, not pop3/imap.

License: MIT License

PHP 90.58% CSS 9.42%
php maildir webmail webserver demo mail mailparser rfc822

phpmaildirclass's Introduction

phpmaildirclass

Description

phpmaildirclass is a small demo written in the scripting language PHP. It allows you to view your mails in your favorite browser. Multiple mail folders and user authentication by http (i.e. 'htpasswd') are supported.

Where the mail data come from does not matter as long as it is located in your file system and is readable by the webserver/php process. It must be stored in Maildir format easily recognisable by its folder names 'cur' and 'new' and subfolders beginning with a dot. mbox (all mails in one file) is unsupported.

It supports no mail sending by SMTP or any comfort like addressbook, HTML formatting, PGP integration and so on. It is read-only and does NOT grab your mails by POP3 or IMAP.

Requirements

  • PHP. Versions less than 7.x are untested.

  • A webserver. Either the PHP internal or another.

  • A web browser capable of HTML5.

Audience

Anyone interested in mail parsing or want to build a (read-only) webmail without mail server access.

Install

Well, copy all files to a directory your webserver can access.

You can adapt some variables in pmdc-demo.php to your needs to fit your environment. Anything beyond the capabilities of this demo must be done on your own.

pmdc-class.php does the dirty work by reading the contents of a given filename and processes the header and body data. The raw is split into chunks and computed one by one. "Meta data" like header lines, content type or charset definitions are put directly on a stack where you can retrieve it. To save compute time and memory body parts are not kept in memory but only byte offsets where they can be found in the raw. Some resource limitations can be tweaked at the beginning of the class.

License

All files are released to the MIT License.

phpmaildirclass's People

Contributors

ananaspfirsichsaft avatar

Stargazers

 avatar  avatar  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.