mirror of
https://github.com/itflow-org/itflow
synced 2026-08-05 07:07:14 +00:00
Add new optional beta email parser thats based on ImapEngine instead of Webklex
This commit is contained in:
16
plugins/vendor/directorytree/imapengine/src/ComparesFolders.php
vendored
Normal file
16
plugins/vendor/directorytree/imapengine/src/ComparesFolders.php
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace DirectoryTree\ImapEngine;
|
||||
|
||||
trait ComparesFolders
|
||||
{
|
||||
/**
|
||||
* Determine if two folders are the same.
|
||||
*/
|
||||
protected function isSameFolder(FolderInterface $a, FolderInterface $b): bool
|
||||
{
|
||||
return $a->path() === $b->path()
|
||||
&& $a->mailbox()->config('host') === $b->mailbox()->config('host')
|
||||
&& $a->mailbox()->config('username') === $b->mailbox()->config('username');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user