mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Draft rfc4467 for #288
This commit is contained in:
parent
e0fa23822c
commit
9fbe7e8d13
1 changed files with 52 additions and 0 deletions
|
|
@ -0,0 +1,52 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This file is part of MailSo.
|
||||||
|
*
|
||||||
|
* (c) 2021 DJMaze
|
||||||
|
*
|
||||||
|
* For the full copyright and license information, please view the LICENSE
|
||||||
|
* file that was distributed with this source code.
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace MailSo\Imap\Commands;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @category MailSo
|
||||||
|
* @package Imap
|
||||||
|
*/
|
||||||
|
trait UrlAuth
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* https://datatracker.ietf.org/doc/html/rfc4467#section-7
|
||||||
|
*/
|
||||||
|
public function RESETKEY(string $sFolderName, string $sMechanism)
|
||||||
|
{
|
||||||
|
$aParams = [];
|
||||||
|
if ($sFolderName) {
|
||||||
|
$aParams[] = $this->EscapeFolderName($sFolderName);
|
||||||
|
}
|
||||||
|
if ($sMechanism) {
|
||||||
|
$aParams[] = $this->EscapeString($sMechanism);
|
||||||
|
}
|
||||||
|
$oResponses = $this->SendRequestGetResponse('RESETKEY', $aParams);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function GENURLAUTH(string $sMechanisms)
|
||||||
|
{
|
||||||
|
$oResponses = $this->SendRequestGetResponse('GENURLAUTH', array(
|
||||||
|
$this->EscapeString($sMechanism)
|
||||||
|
));
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function URLFETCH(string $sURLs)
|
||||||
|
{
|
||||||
|
$oResponses = $this->SendRequestGetResponse('URLFETCH', array(
|
||||||
|
$this->EscapeString($sURLs)
|
||||||
|
));
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue