mirror of
https://github.com/friendica/friendica
synced 2024-11-18 00:23:47 +00:00
Fix storing mail settings
This commit is contained in:
parent
e351122cc5
commit
421dd028ce
2 changed files with 16 additions and 15 deletions
|
@ -108,7 +108,7 @@ function settings_post(App $a)
|
|||
'port' => $mail_port,
|
||||
'ssltype' => $mail_ssl,
|
||||
'user' => $mail_user,
|
||||
`action` => $mail_action,
|
||||
'action' => $mail_action,
|
||||
'movetofolder' => $mail_movetofolder,
|
||||
'mailbox' => 'INBOX',
|
||||
'reply_to' => $mail_replyto,
|
||||
|
|
|
@ -27,6 +27,7 @@ use Friendica\Content\Text\BBCode;
|
|||
use Friendica\Content\Text\HTML;
|
||||
use Friendica\Model\Item;
|
||||
use Friendica\Util\Strings;
|
||||
use \IMAP\Connection;
|
||||
|
||||
/**
|
||||
* Email class
|
||||
|
@ -37,7 +38,7 @@ class Email
|
|||
* @param string $mailbox The mailbox name
|
||||
* @param string $username The username
|
||||
* @param string $password The password
|
||||
* @return resource
|
||||
* @return Connection
|
||||
* @throws \Exception
|
||||
*/
|
||||
public static function connect($mailbox, $username, $password)
|
||||
|
@ -50,7 +51,7 @@ class Email
|
|||
|
||||
$errors = imap_errors();
|
||||
if (!empty($errors)) {
|
||||
Logger::notice('IMAP Errors occured', ['errora' => $errors]);
|
||||
Logger::notice('IMAP Errors occured', ['errors' => $errors]);
|
||||
}
|
||||
|
||||
$alerts = imap_alerts();
|
||||
|
@ -62,7 +63,7 @@ class Email
|
|||
}
|
||||
|
||||
/**
|
||||
* @param resource $mbox mailbox
|
||||
* @param Connection $mbox mailbox
|
||||
* @param string $email_addr email
|
||||
* @return array
|
||||
* @throws \Exception
|
||||
|
@ -112,7 +113,7 @@ class Email
|
|||
}
|
||||
|
||||
/**
|
||||
* @param resource $mbox mailbox
|
||||
* @param Connection $mbox mailbox
|
||||
* @param integer $uid user id
|
||||
* @return mixed
|
||||
*/
|
||||
|
@ -123,7 +124,7 @@ class Email
|
|||
}
|
||||
|
||||
/**
|
||||
* @param resource $mbox mailbox
|
||||
* @param Connection $mbox mailbox
|
||||
* @param integer $uid user id
|
||||
* @param string $reply reply
|
||||
* @return array
|
||||
|
@ -210,7 +211,7 @@ class Email
|
|||
/**
|
||||
* fetch the specified message part number with the specified subtype
|
||||
*
|
||||
* @param resource $mbox mailbox
|
||||
* @param Connection $mbox mailbox
|
||||
* @param integer $uid user id
|
||||
* @param object $p parts
|
||||
* @param integer $partno part number
|
||||
|
|
Loading…
Reference in a new issue