update README.md

pull/16/head
Alex Puiu 2022-02-10 14:50:46 +02:00
rodzic bed78e5333
commit 5b025184a0
2 zmienionych plików z 5 dodań i 3 usunięć

Wyświetl plik

@ -53,9 +53,11 @@ If using a self-hosted Postfix server, clone this repository into the home direc
su - incoming
git clone https://github.com/newroco/mail2deck.git mail2deck
```
Edit the config file as you need:
Create config.php file and edit it for your needs:
```
sudo nano /home/incoming/mail2deck/config.php
cd /home/incoming/mail2deck
cp config.example.php config.php
sudo vim config.php
```
*You can refer to https://www.php.net/manual/en/function.imap-open.php for setting the value of MAIL_SERVER_FLAGS*
## Add a cronjob which will run mail2deck.

Wyświetl plik

@ -1,5 +1,5 @@
<?php
define("NC_SERVER", "localhost"); // server.domain
define("NC_SERVER", "localhost"); // https://server.domain (without "https://" attachments will not be created)
define("NC_USER", "deckbot");
define("NC_PASSWORD", "****");
define("MAIL_SERVER", "localhost"); // server.domain