GithubHelp home page GithubHelp logo

synox / disposable-email-imap Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 6.0 486 KB

DISCONTINUED: self-hosted simple disposable email system (php and imap)

ApacheConf 0.75% PHP 28.18% HTML 18.23% CSS 52.83%

disposable-email-imap's People

Contributors

synox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

disposable-email-imap's Issues

Refresh user dir on new email

I'm slowly working on a implementation of refresh on new mail, no code done but using waiting.html checkMails as a reference. As it is right now i just have a button that does onClick="history.go(0)"
And while i was hashing out the idea i quickly realized that having the page refresh at intervals would be annoying while reading an email. Then again we could set up a pool of ~5m and then eventually integrate a desktop notification of new mail (testing the concept on OS X)

I was wondering if you had thoughts about this before i start.

Delete messages inside of a day

I've been trying to delete messages every hour as a test and i can't seem to manage this.
I'm using the following snippet

$before = date('d-m-Y H:i:s', strtotime('1 hour ago'));

based on vendor/php-imap/php-imap/src/PhpImap/Mailbox.php it seems to be only showing date and not datetime.

Yet it seems to support the time format

$mail->date = date('d-m-Y H:i:s', isset($head->date) ? strtotime(preg_replace('/\(.*?\)/', '', $head->date)) : time());

Call to undefined function imap_sort()

On PHP5-FPM (5.5.9) with php5-imap module:

Fatal error: Call to undefined function imap_sort() in /var/www/h0t.in/mail/index.php on line 138

Any ideas?

source and html insecure

Currently the html and source functions do not check the parameters properly, and all emails can easily be enumared.

Make an adress exclusive to the first session

Do you think that is valid if we implement a temporary cookie block other users from accessing a given mail? Because as the software is today, multiple users can have access to the same mailbox, what can allow a malicious user to search for mails on all possible mailboxes on the server. The cookie should be encrypted with strong encryption and a random key for every mail boxes, to keep cookie stealers from identifying what mail box was locked to the user browser. If we are using HTTPS, only the server will know what mail is locked to that browser. The cookie should be deleted on tab closing, if the user click that back or refresh button and for every new tab, with every new mail, a new encrypted cookie should be set. We can use javascript onbeforeunload and onunload to first alert the user that if he leaves the page the session will be terminated and then delete the cookie.

A statement that the service store a cookie for that should be made, of course, but such implementation should be pretty privacy friendly.

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.