Skip to content

Commit

Permalink
AS16 - Imap drafts $draftID
Browse files Browse the repository at this point in the history
  • Loading branch information
matidau committed Dec 7, 2024
1 parent 25ad8e7 commit d0bc93f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/backend/imap/imap.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
class BackendIMAP extends BackendDiff implements ISearchProvider {
private $wasteID;
private $sentID;
private $draftID;
private $server;
private $mbox;
private $mboxFolder;
Expand Down Expand Up @@ -71,6 +72,7 @@ public function __construct() {
}
$this->wasteID = false;
$this->sentID = false;
$this->draftID = false;
$this->mboxFolder = "";

if (!function_exists("imap_open"))
Expand Down Expand Up @@ -107,6 +109,7 @@ public function __construct() {
public function Logon($username, $domain, $password) {
$this->wasteID = false;
$this->sentID = false;
$this->draftID = false;
$this->server = "{" . IMAP_SERVER . ":" . IMAP_PORT . "/imap" . IMAP_OPTIONS . "}";

if (!function_exists("imap_open"))
Expand Down Expand Up @@ -853,6 +856,7 @@ public function GetFolder($id) {
$folder->parentid = "0";
$folder->displayname = "Drafts";
$folder->type = SYNC_FOLDER_TYPE_DRAFTS;
$this->draftID = $id;
}
else if (strcasecmp($imapid, $this->create_name_folder(IMAP_FOLDER_SENT)) == 0) {
$folder->parentid = "0";
Expand Down

0 comments on commit d0bc93f

Please sign in to comment.