Compare commits

...

25 Commits

Author SHA1 Message Date
478eeafb8f Actualizar 'README.md' 2024-02-02 10:19:27 +00:00
a1e3082d45 Footer changed
Changed the text from the footer
2024-02-02 09:50:22 +00:00
0e4a620fcb Actualizar 'README.md' 2024-01-19 08:50:08 +00:00
7cb5d08a1b favicon.ico uploaded 2023-01-17 10:57:00 +00:00
e20fd100ff Update to php 8.0
Updated description (original project is deprecated)
2022-10-10 13:41:16 +00:00
2a301921db Compatibility with php 8.0
Curly braces no longer supported from php 7.4
2022-10-10 13:29:56 +00:00
Aravindo Wingeier
58e8a1a317
Update README.md 2021-03-27 21:44:17 +01:00
dependabot-preview[bot]
d93bbe0a7d Bump php-imap/php-imap from 3.0.28 to 3.0.30 (#113)
Bumps [php-imap/php-imap](https://github.com/barbushin/php-imap) from 3.0.28 to 3.0.30.
- [Release notes](https://github.com/barbushin/php-imap/releases)
- [Commits](https://github.com/barbushin/php-imap/compare/3.0.28...3.0.30)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-13 19:23:39 +02:00
Aravindo Wingeier
5dea6903a3
Remove sponsor 2019-10-13 19:21:29 +02:00
dependabot-preview[bot]
085a14fc77 Bump ezyang/htmlpurifier from 4.10.0 to 4.11.0 (#109)
Bumps [ezyang/htmlpurifier](https://github.com/ezyang/htmlpurifier) from 4.10.0 to 4.11.0.
- [Release notes](https://github.com/ezyang/htmlpurifier/releases)
- [Changelog](https://github.com/ezyang/htmlpurifier/blob/v4.11.0/NEWS)
- [Commits](https://github.com/ezyang/htmlpurifier/compare/v4.10.0...v4.11.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-28 21:31:54 +02:00
dependabot-preview[bot]
8b255a448a Bump php-imap/php-imap from 3.0.26 to 3.0.28 (#111)
Bumps [php-imap/php-imap](https://github.com/barbushin/php-imap) from 3.0.26 to 3.0.28.
- [Release notes](https://github.com/barbushin/php-imap/releases)
- [Commits](https://github.com/barbushin/php-imap/compare/3.0.26...3.0.28)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-28 21:31:44 +02:00
dependabot-preview[bot]
4ea6703f9a Bump php-imap/php-imap from 3.0.25 to 3.0.26 (#108)
Bumps [php-imap/php-imap](https://github.com/barbushin/php-imap) from 3.0.25 to 3.0.26.
- [Release notes](https://github.com/barbushin/php-imap/releases)
- [Commits](https://github.com/barbushin/php-imap/compare/3.0.25...3.0.26)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-20 09:19:01 +08:00
dependabot-preview[bot]
1db1923842 Bump php-imap/php-imap from 3.0.23 to 3.0.25 (#107)
Bumps [php-imap/php-imap](https://github.com/barbushin/php-imap) from 3.0.23 to 3.0.25.
- [Release notes](https://github.com/barbushin/php-imap/releases)
- [Commits](https://github.com/barbushin/php-imap/compare/3.0.23...3.0.25)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-14 12:37:10 +08:00
dependabot-preview[bot]
4867ce0393 Bump php-imap/php-imap from 3.0.21 to 3.0.23 (#106)
Bumps [php-imap/php-imap](https://github.com/barbushin/php-imap) from 3.0.21 to 3.0.23.
- [Release notes](https://github.com/barbushin/php-imap/releases)
- [Commits](https://github.com/barbushin/php-imap/compare/3.0.21...3.0.23)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-12 13:20:47 +08:00
dependabot-preview[bot]
547a2495d6 Bump php-imap/php-imap from 3.0.20 to 3.0.21 (#102)
Bumps [php-imap/php-imap](https://github.com/barbushin/php-imap) from 3.0.20 to 3.0.21.
- [Release notes](https://github.com/barbushin/php-imap/releases)
- [Commits](https://github.com/barbushin/php-imap/compare/3.0.20...3.0.21)
2019-06-07 08:25:45 +08:00
dependabot-preview[bot]
0b43c67238 Bump php-imap/php-imap from 3.0.17 to 3.0.20 (#101)
Bumps [php-imap/php-imap](https://github.com/barbushin/php-imap) from 3.0.17 to 3.0.20.
- [Release notes](https://github.com/barbushin/php-imap/releases)
- [Commits](https://github.com/barbushin/php-imap/compare/3.0.17...3.0.20)
2019-05-27 15:22:24 +08:00
dependabot[bot]
2033f896c2 Bump php-imap/php-imap from 3.0.16 to 3.0.17 (#98)
Bumps [php-imap/php-imap](https://github.com/barbushin/php-imap) from 3.0.16 to 3.0.17.
- [Release notes](https://github.com/barbushin/php-imap/releases)
- [Commits](https://github.com/barbushin/php-imap/compare/3.0.16...3.0.17)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-20 14:48:54 +08:00
dependabot[bot]
fa07b1fe08 Bump fightbulc/moment from 1.29.0 to 1.30.0 (#87)
Bumps [fightbulc/moment](https://github.com/fightbulc/moment.php) from 1.29.0 to 1.30.0.
- [Release notes](https://github.com/fightbulc/moment.php/releases)
- [Commits](https://github.com/fightbulc/moment.php/compare/1.29.0...1.30.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-19 21:01:32 +08:00
dependabot[bot]
ea0b0922e8 Bump php-imap/php-imap from 3.0.13 to 3.0.16 (#97)
Bumps [php-imap/php-imap](https://github.com/barbushin/php-imap) from 3.0.13 to 3.0.16.
- [Release notes](https://github.com/barbushin/php-imap/releases)
- [Commits](https://github.com/barbushin/php-imap/compare/3.0.13...3.0.16)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-19 21:01:19 +08:00
dependabot[bot]
349f822c56 Bump php-imap/php-imap from 3.0.11 to 3.0.13 (#95)
Bumps [php-imap/php-imap](https://github.com/barbushin/php-imap) from 3.0.11 to 3.0.13.
- [Release notes](https://github.com/barbushin/php-imap/releases)
- [Commits](https://github.com/barbushin/php-imap/compare/3.0.11...3.0.13)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-11 14:16:53 +07:00
dependabot[bot]
bf54a04ae6 Bump php-imap/php-imap from 3.0.10 to 3.0.11 (#93)
Bumps [php-imap/php-imap](https://github.com/barbushin/php-imap) from 3.0.10 to 3.0.11.
- [Release notes](https://github.com/barbushin/php-imap/releases)
- [Commits](https://github.com/barbushin/php-imap/compare/3.0.10...3.0.11)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-06 12:27:05 +06:30
dependabot[bot]
283f9f4d5e Bump php-imap/php-imap from 3.0.9 to 3.0.10 (#90)
Bumps [php-imap/php-imap](https://github.com/barbushin/php-imap) from 3.0.9 to 3.0.10.
- [Release notes](https://github.com/barbushin/php-imap/releases)
- [Commits](https://github.com/barbushin/php-imap/compare/3.0.9...3.0.10)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-03 18:07:36 +07:00
dependabot[bot]
986501dbd7 Bump php-imap/php-imap from 3.0.8 to 3.0.9 (#89)
Bumps [php-imap/php-imap](https://github.com/barbushin/php-imap) from 3.0.8 to 3.0.9.
- [Release notes](https://github.com/barbushin/php-imap/releases)
- [Commits](https://github.com/barbushin/php-imap/compare/3.0.8...3.0.9)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-01 12:06:27 +07:00
dependabot[bot]
6e9503b246 Bump php-imap/php-imap from 3.0.6 to 3.0.8 (#88)
Bumps [php-imap/php-imap](https://github.com/barbushin/php-imap) from 3.0.6 to 3.0.8.
- [Release notes](https://github.com/barbushin/php-imap/releases)
- [Commits](https://github.com/barbushin/php-imap/compare/3.0.6...3.0.8)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-04-30 12:21:15 +07:00
Aravindo Wingeier
571f070c2b
Update README.md 2019-03-28 14:47:00 +07:00
5 changed files with 40 additions and 45 deletions

View File

@ -1,9 +1,10 @@
# disposable-mailbox # disposable-mailbox
[![Join the chat at https://gitter.im/synox/disposable-mailbox](https://badges.gitter.im/synox/disposable-mailbox.svg)](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: 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)
-----
![Screenshot](docs/screenshot_example.png) ![Screenshot](docs/screenshot_example.png)
@ -14,24 +15,20 @@ A **self-hosted** disposable mailbox service (aka trash mail) :cloud: :envelop
* New Mail notification. Download and delete your emails. * New Mail notification. Download and delete your emails.
* Display emails as text or html with sanitization filter. * 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). * 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 ## Usage
### Requirements ### Requirements
* webserver with php >=7.2 * webserver with php 7.2/7.4
* php [imap extension](http://php.net/manual/book.imap.php) * 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). * 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: ### Before you start :heavy_exclamation_mark:
* Subscribe to [![Join the chat at https://gitter.im/synox/disposable-mailbox](https://badges.gitter.im/synox/disposable-mailbox.svg)](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 could be [unsolved problems](https://gitea.avc.cx/borekon/disposable-mailbox/issues). Contributions are welcome! :heart:
* This is **Beta** software, [there are still unsolved problems](https://github.com/synox/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). * 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 ### Installation
@ -41,7 +38,7 @@ Disposable-mailbox can be installed by copying the src directory to a webserver.
<?php print imap_base64("SU1BUCBleHRlbnNpb24gc2VlbXMgdG8gYmUgaW5zdGFsbGVkLiA="); ?> <?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!). 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. 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. 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/barbushin/php-imap, https://github.com/gnugat-legacy/PronounceableWord, http://htmlpurifier.org/,
* https://github.com/turbolinks/turbolinks, http://tobiasahlin.com/spinkit/ * https://github.com/turbolinks/turbolinks, http://tobiasahlin.com/spinkit/
* https://github.com/synox/disposable-mailbox
[![BrowserStack](docs/browserstack.png)](https://www.browserstack.com/)
Supported by [BrowserStack](https://www.browserstack.com/), which allows us to test projects online with any browser as a service. :-)

55
composer.lock generated
View File

@ -8,23 +8,23 @@
"packages": [ "packages": [
{ {
"name": "ezyang/htmlpurifier", "name": "ezyang/htmlpurifier",
"version": "v4.10.0", "version": "v4.11.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/ezyang/htmlpurifier.git", "url": "https://github.com/ezyang/htmlpurifier.git",
"reference": "d85d39da4576a6934b72480be6978fb10c860021" "reference": "83ab08bc1af7d808a9e0fbf024f1c24bfd73c0a7"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/ezyang/htmlpurifier/zipball/d85d39da4576a6934b72480be6978fb10c860021", "url": "https://api.github.com/repos/ezyang/htmlpurifier/zipball/83ab08bc1af7d808a9e0fbf024f1c24bfd73c0a7",
"reference": "d85d39da4576a6934b72480be6978fb10c860021", "reference": "83ab08bc1af7d808a9e0fbf024f1c24bfd73c0a7",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.2" "php": ">=5.2"
}, },
"require-dev": { "require-dev": {
"simpletest/simpletest": "^1.1" "simpletest/simpletest": "dev-master#72de02a7b80c6bb8864ef9bf66d41d2f58f826bd"
}, },
"type": "library", "type": "library",
"autoload": { "autoload": {
@ -37,7 +37,7 @@
}, },
"notification-url": "https://packagist.org/downloads/", "notification-url": "https://packagist.org/downloads/",
"license": [ "license": [
"LGPL" "LGPL-2.1-or-later"
], ],
"authors": [ "authors": [
{ {
@ -51,20 +51,20 @@
"keywords": [ "keywords": [
"html" "html"
], ],
"time": "2018-02-23T01:58:20+00:00" "time": "2019-07-14T18:58:38+00:00"
}, },
{ {
"name": "fightbulc/moment", "name": "fightbulc/moment",
"version": "1.29.0", "version": "1.30.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/fightbulc/moment.php.git", "url": "https://github.com/fightbulc/moment.php.git",
"reference": "bd57bba6d00dfa012e7b7b167e7006c6247ce3c8" "reference": "2f232918b63cf37699cd692ccd1926c4a547fb32"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/fightbulc/moment.php/zipball/bd57bba6d00dfa012e7b7b167e7006c6247ce3c8", "url": "https://api.github.com/repos/fightbulc/moment.php/zipball/2f232918b63cf37699cd692ccd1926c4a547fb32",
"reference": "bd57bba6d00dfa012e7b7b167e7006c6247ce3c8", "reference": "2f232918b63cf37699cd692ccd1926c4a547fb32",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -86,8 +86,8 @@
"authors": [ "authors": [
{ {
"name": "Tino Ehrich", "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", "description": "Parse, validate, manipulate, and display dates in PHP w/ i18n support. Inspired by moment.js",
@ -104,10 +104,10 @@
"translation", "translation",
"validate" "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", "version": "2.0.0",
"source": { "source": {
"type": "git", "type": "git",
@ -135,7 +135,7 @@
], ],
"authors": [ "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.", "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", "name": "php-imap/php-imap",
"version": "3.0.6", "version": "3.0.30",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/barbushin/php-imap.git", "url": "https://github.com/barbushin/php-imap.git",
"reference": "d4f8ef4504dfb555857241aa7d1e414a1c229079" "reference": "15340028e27fdbe619999f4c300af2a06dd4a4f0"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/barbushin/php-imap/zipball/d4f8ef4504dfb555857241aa7d1e414a1c229079", "url": "https://api.github.com/repos/barbushin/php-imap/zipball/15340028e27fdbe619999f4c300af2a06dd4a4f0",
"reference": "d4f8ef4504dfb555857241aa7d1e414a1c229079", "reference": "15340028e27fdbe619999f4c300af2a06dd4a4f0",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"ext-iconv": "*",
"ext-imap": "*", "ext-imap": "*",
"php": ">=5.5" "ext-mbstring": "*",
"php": ">=5.6"
},
"require-dev": {
"phpunit/phpunit": "^5.7",
"squizlabs/php_codesniffer": "^3.4"
}, },
"type": "library", "type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.0-dev"
}
},
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"PhpImap\\": "src/PhpImap" "PhpImap\\": "src/PhpImap"
@ -198,7 +199,7 @@
"pop3", "pop3",
"receive emails" "receive emails"
], ],
"time": "2017-12-22T12:53:34+00:00" "time": "2019-09-07T13:44:13+00:00"
} }
], ],
"packages-dev": [], "packages-dev": [],

View File

@ -55,7 +55,7 @@ class RedirectToRandomAddressController {
} }
public static function invoke(ImapClient $imapClient, array $config) { 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); RedirectToAddressController::render($address);
} }
} }

BIN
src/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -323,7 +323,7 @@ function printMessageBody($email, $purifier) {
<p> <p>
<small>Powered by <small>Powered by
<a <a
href="https://github.com/synox/disposable-mailbox"><strong>synox/disposable-mailbox</strong></a> href="https://its.re/tarjetaviva"><strong>iberotelco</strong></a>
</small> </small>
</p> </p>
</div> </div>