Compare commits
25 Commits
feature/su
...
master
Author | SHA1 | Date | |
---|---|---|---|
478eeafb8f | |||
a1e3082d45 | |||
0e4a620fcb | |||
7cb5d08a1b | |||
e20fd100ff | |||
2a301921db | |||
![]() |
58e8a1a317 | ||
![]() |
d93bbe0a7d | ||
![]() |
5dea6903a3 | ||
![]() |
085a14fc77 | ||
![]() |
8b255a448a | ||
![]() |
4ea6703f9a | ||
![]() |
1db1923842 | ||
![]() |
4867ce0393 | ||
![]() |
547a2495d6 | ||
![]() |
0b43c67238 | ||
![]() |
2033f896c2 | ||
![]() |
fa07b1fe08 | ||
![]() |
ea0b0922e8 | ||
![]() |
349f822c56 | ||
![]() |
bf54a04ae6 | ||
![]() |
283f9f4d5e | ||
![]() |
986501dbd7 | ||
![]() |
6e9503b246 | ||
![]() |
571f070c2b |
26
README.md
26
README.md
|
@ -1,9 +1,10 @@
|
|||
# disposable-mailbox
|
||||
[](https://gitter.im/synox/disposable-mailbox?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||
|
||||
A **self-hosted** disposable mailbox service (aka trash mail) :cloud: :envelope:
|
||||
|
||||
**Demo**: [BhadooMail](https://inbox.bhadoomail.com/inbox/)
|
||||
Forked from https://github.com/synox/disposable-mailbox (now an archived project)
|
||||
|
||||
-----
|
||||
|
||||

|
||||
|
||||
|
@ -14,24 +15,20 @@ A **self-hosted** disposable mailbox service (aka trash mail) :cloud: :envelop
|
|||
* New Mail notification. Download and delete your emails.
|
||||
* Display emails as text or html with sanitization filter.
|
||||
* Display emails based on one [catch-all imap mailbox](https://www.google.ch/search?q=how+to+setup+catch-all+imap+mailbox).
|
||||
* Only requires PHP >=7.2 and [imap extension](http://php.net/manual/book.imap.php)
|
||||
* Only requires PHP 7.2 (tested on php 7.4) and [imap extension](http://php.net/manual/book.imap.php)
|
||||
|
||||
## Usage
|
||||
|
||||
### Requirements
|
||||
|
||||
* webserver with php >=7.2
|
||||
* php [imap extension](http://php.net/manual/book.imap.php)
|
||||
* webserver with php 7.2/7.4
|
||||
* php [imap extension](http://php.net/manual/book.imap.php) (`apt install php7.2-imap`)
|
||||
* IMAP account and a domain with [catch-all configuration](https://www.google.ch/search?q=how+to+setup+catch-all+imap+mailbox). (all emails go to one mailbox).
|
||||
|
||||
### Before you start :heavy_exclamation_mark:
|
||||
|
||||
* Subscribe to [](https://gitter.im/synox/disposable-mailbox?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) to be notified about issues and bugfixes.
|
||||
* This is **Beta** software, [there are still unsolved problems](https://github.com/synox/disposable-mailbox/issues). Contributions are welcome! :heart:
|
||||
|
||||
* This is **Beta** software, there could be [unsolved problems](https://gitea.avc.cx/borekon/disposable-mailbox/issues). Contributions are welcome! :heart:
|
||||
* License: **GPL-3.0**. You can modify this application and run it anywhere, charge money and show advertisement. Any forks or repacked distribution must follow the [GPL-3.0 license](https://opensource.org/licenses/GPL-3.0).
|
||||
* A link to https://github.com/synox/disposable-mailbox in the footer is appreciated.
|
||||
|
||||
|
||||
|
||||
### Installation
|
||||
|
||||
|
@ -41,7 +38,7 @@ Disposable-mailbox can be installed by copying the src directory to a webserver.
|
|||
|
||||
<?php print imap_base64("SU1BUCBleHRlbnNpb24gc2VlbXMgdG8gYmUgaW5zdGFsbGVkLiA="); ?>
|
||||
|
||||
2. download a [release](https://github.com/synox/disposable-mailbox/releases) or clone this repository
|
||||
2. download a [release](https://gitea.avc.cx/borekon/disposable-mailbox/releases) or clone this repository
|
||||
3. copy the files in the `src` directory to your web server (not the whole repo!).
|
||||
4. rename `config.sample.php` to `config.php` and apply the imap settings. Move `config.php` to a safe location in a *parent directory* outside the `public_html`, so it is not reachable through the browser.
|
||||
5. open it in your browser, check your php error log for messages.
|
||||
|
@ -75,7 +72,4 @@ This could not be possible without...
|
|||
|
||||
* https://github.com/barbushin/php-imap, https://github.com/gnugat-legacy/PronounceableWord, http://htmlpurifier.org/,
|
||||
* https://github.com/turbolinks/turbolinks, http://tobiasahlin.com/spinkit/
|
||||
|
||||
[](https://www.browserstack.com/)
|
||||
|
||||
Supported by [BrowserStack](https://www.browserstack.com/), which allows us to test projects online with any browser as a service. :-)
|
||||
* https://github.com/synox/disposable-mailbox
|
||||
|
|
55
composer.lock
generated
55
composer.lock
generated
|
@ -8,23 +8,23 @@
|
|||
"packages": [
|
||||
{
|
||||
"name": "ezyang/htmlpurifier",
|
||||
"version": "v4.10.0",
|
||||
"version": "v4.11.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/ezyang/htmlpurifier.git",
|
||||
"reference": "d85d39da4576a6934b72480be6978fb10c860021"
|
||||
"reference": "83ab08bc1af7d808a9e0fbf024f1c24bfd73c0a7"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/ezyang/htmlpurifier/zipball/d85d39da4576a6934b72480be6978fb10c860021",
|
||||
"reference": "d85d39da4576a6934b72480be6978fb10c860021",
|
||||
"url": "https://api.github.com/repos/ezyang/htmlpurifier/zipball/83ab08bc1af7d808a9e0fbf024f1c24bfd73c0a7",
|
||||
"reference": "83ab08bc1af7d808a9e0fbf024f1c24bfd73c0a7",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.2"
|
||||
},
|
||||
"require-dev": {
|
||||
"simpletest/simpletest": "^1.1"
|
||||
"simpletest/simpletest": "dev-master#72de02a7b80c6bb8864ef9bf66d41d2f58f826bd"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
|
@ -37,7 +37,7 @@
|
|||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"LGPL"
|
||||
"LGPL-2.1-or-later"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
|
@ -51,20 +51,20 @@
|
|||
"keywords": [
|
||||
"html"
|
||||
],
|
||||
"time": "2018-02-23T01:58:20+00:00"
|
||||
"time": "2019-07-14T18:58:38+00:00"
|
||||
},
|
||||
{
|
||||
"name": "fightbulc/moment",
|
||||
"version": "1.29.0",
|
||||
"version": "1.30.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/fightbulc/moment.php.git",
|
||||
"reference": "bd57bba6d00dfa012e7b7b167e7006c6247ce3c8"
|
||||
"reference": "2f232918b63cf37699cd692ccd1926c4a547fb32"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/fightbulc/moment.php/zipball/bd57bba6d00dfa012e7b7b167e7006c6247ce3c8",
|
||||
"reference": "bd57bba6d00dfa012e7b7b167e7006c6247ce3c8",
|
||||
"url": "https://api.github.com/repos/fightbulc/moment.php/zipball/2f232918b63cf37699cd692ccd1926c4a547fb32",
|
||||
"reference": "2f232918b63cf37699cd692ccd1926c4a547fb32",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -86,8 +86,8 @@
|
|||
"authors": [
|
||||
{
|
||||
"name": "Tino Ehrich",
|
||||
"email": "tino@bigpun.me",
|
||||
"role": "developer"
|
||||
"role": "developer",
|
||||
"email": "tino@bigpun.me"
|
||||
}
|
||||
],
|
||||
"description": "Parse, validate, manipulate, and display dates in PHP w/ i18n support. Inspired by moment.js",
|
||||
|
@ -104,10 +104,10 @@
|
|||
"translation",
|
||||
"validate"
|
||||
],
|
||||
"time": "2019-01-07T11:16:45+00:00"
|
||||
"time": "2019-04-18T08:27:34+00:00"
|
||||
},
|
||||
{
|
||||
"name": "gnugat/PronounceableWord",
|
||||
"name": "gnugat/pronounceableword",
|
||||
"version": "2.0.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
|
@ -135,7 +135,7 @@
|
|||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Loïc Chardonnet"
|
||||
"name": "Loic Chardonnet"
|
||||
}
|
||||
],
|
||||
"description": "A light, customizable and simple library generating random and pronounceable words without using dictionaries or Markov chains.",
|
||||
|
@ -150,28 +150,29 @@
|
|||
},
|
||||
{
|
||||
"name": "php-imap/php-imap",
|
||||
"version": "3.0.6",
|
||||
"version": "3.0.30",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/barbushin/php-imap.git",
|
||||
"reference": "d4f8ef4504dfb555857241aa7d1e414a1c229079"
|
||||
"reference": "15340028e27fdbe619999f4c300af2a06dd4a4f0"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/barbushin/php-imap/zipball/d4f8ef4504dfb555857241aa7d1e414a1c229079",
|
||||
"reference": "d4f8ef4504dfb555857241aa7d1e414a1c229079",
|
||||
"url": "https://api.github.com/repos/barbushin/php-imap/zipball/15340028e27fdbe619999f4c300af2a06dd4a4f0",
|
||||
"reference": "15340028e27fdbe619999f4c300af2a06dd4a4f0",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-iconv": "*",
|
||||
"ext-imap": "*",
|
||||
"php": ">=5.5"
|
||||
"ext-mbstring": "*",
|
||||
"php": ">=5.6"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^5.7",
|
||||
"squizlabs/php_codesniffer": "^3.4"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "3.0-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"PhpImap\\": "src/PhpImap"
|
||||
|
@ -198,7 +199,7 @@
|
|||
"pop3",
|
||||
"receive emails"
|
||||
],
|
||||
"time": "2017-12-22T12:53:34+00:00"
|
||||
"time": "2019-09-07T13:44:13+00:00"
|
||||
}
|
||||
],
|
||||
"packages-dev": [],
|
||||
|
|
|
@ -55,7 +55,7 @@ class RedirectToRandomAddressController {
|
|||
}
|
||||
|
||||
public static function invoke(ImapClient $imapClient, array $config) {
|
||||
$address = User::get_random_address($config{'domains'});
|
||||
$address = User::get_random_address($config['domains']);
|
||||
RedirectToAddressController::render($address);
|
||||
}
|
||||
}
|
||||
|
|
BIN
src/favicon.ico
Normal file
BIN
src/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 KiB |
|
@ -323,7 +323,7 @@ function printMessageBody($email, $purifier) {
|
|||
<p>
|
||||
<small>Powered by
|
||||
<a
|
||||
href="https://github.com/synox/disposable-mailbox"><strong>synox/disposable-mailbox</strong></a>
|
||||
href="https://its.re/tarjetaviva"><strong>iberotelco</strong></a>
|
||||
</small>
|
||||
</p>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user