ddeboer / imap Goto Github PK
View Code? Open in Web Editor NEWObject-oriented, fully tested PHP IMAP library
License: MIT License
Object-oriented, fully tested PHP IMAP library
License: MIT License
How should we go about testing this library (preferably on Travis CI)? As much code in the library calls PHP’s \imap
functions directly, mocking doesn't seem to make much sense.
Does anyone know of a fake IMAP server that we can use in unit tests? Or should we perhaps use a GMail test account for integration tests?
preg_replace(): Parameter mismatch, pattern is a string while replacement is an array after called $message->getTo() and $message->getFrom()
Do not read the object $ message-> getChildren () how to use it?
Could you put even the most basic usage into the README? Otherwise it's just guesswork.
Hi guys,
I used the SearchExpression parameter on getMessages() func.
With telnet cmd write (OR SUBJECT "lien" BODY "lien") to get mails with these criterias:
d search OR SUBJECT "lien" BODY "lien"
* SEARCH 17 24 33 77 83 84 88 89 91 103 104 106 115 117 118 120 122 124 133 135 136 138 139 143 147 181 186 187 194 199 209 210 213 214 220 254 261 264 266 267 269 274 283 291 296 309 312 335 361 366 371 378 386 409 412 425 427 435 436 440 448 462 467 476 479 480 491 497 502 506 520 523 545 555 557 567 571 572 581 608 612 614 618 619 621 627 642 649 654 661 673 678 680 690 695 699 733 734 744 758 767 773 809 818 823 831 836 838 843 882 895 916 932 938 1011 1031 1036 1095 1106 1115 1143 1146 1159 1161 1179 1185 1186 1204 1211 1216 1222 1287 1322 1328 1332 1344 1345 1350 1369 1385 1389 1433 1444 1474 1487 1563 1631
d OK SEARCH done.
And it work !
In my controller I use my own service for instantiate mailboxes connection and I have any other route and she works but for my question only show you the search route :
<?php
namespace WM\API\MailsBundle\Controller;
use Doctrine\Common\Collections\ArrayCollection;
use FOS\RestBundle\Controller\Annotations as Rest;
use FOS\RestBundle\Controller\FOSRestController as Controller;
use FOS\RestBundle\Request\ParamFetcher;
use Nelmio\ApiDocBundle\Annotation\ApiDoc;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Ddeboer\Imap\Server;
use Ddeboer\Imap\Mailbox;
use Ddeboer\Imap\SearchExpression;
use Ddeboer\Imap\Search;
use WM\API\MailsBundle\Representation\Email;
/**
* @Route("/emails")
*/
class InboxController extends Controller
{
/**
* @Rest\Get("/search", name="search_inbox_emails")
*
* @Rest\QueryParam(
* name="page",
* default=1,
* nullable=true,
* description="Page number"
* )
*
* @Rest\QueryParam(
* name="limit",
* default=25,
* nullable=true,
* description="Emails per pages"
* )
*
* @ApiDoc(
* section="Inbox",
* description="Search emails from inbox."
* )
*/
public function searchInboxEmailsAction(ParamFetcher $paramFetcher)
{
$connection = $this->getConnection();
$inbox = $connection->getMailbox('INBOX');
$search = new SearchExpression();
$search
->addCondition(new Search\LogicalOperator\OrConditions())
->addCondition(new Search\Text\Subject('lien'))
->addCondition(new Search\Text\Body('lien'))
;
echo $search;
$emails = new ArrayCollection();
$currentIds = $this->sortIds($inbox, $paramFetcher, $search);
foreach($currentIds as $id) {
$emails->add(new Email($inbox->getMessage($id)));
}
return $emails;
}
/**
* @return \Ddeboer\Imap\Connection
* @ApiDoc(
* section="Inbox",
* description="Get mailboxes connection from Connectator service."
* )
*/
private function getConnection()
{
$connectator = $this->get('wmapi_mails.connectator');
return $connectator->getConnection();
}
/**
* @param Mailbox $mailBox
* @param ParamFetcher $paramFetcher
* @param SearchExpression|null $search
* @return array
*
* @ApiDoc(
* section="Inbox",
* description="Reverse Mailbox emails and return limit mails for each pages"
* )
*/
private function sortIds(Mailbox $mailBox, ParamFetcher $paramFetcher, SearchExpression $search=null)
{
$currentIds = array_slice(
array_reverse($mailBox->getMessages($search)->getArrayCopy()),
($paramFetcher->get('page')-1) * $paramFetcher->get('limit'),
$paramFetcher->get('limit')
);
return $currentIds;
}
}
An echo of $search give me :
echo $search;
// -->OR SUBJECT "lien" BODY "lien"
This not work !
Obviously when give one condition or more without OrConditions() it work great !
Please help me because I've not found any results with my best friend google ...
Thanks.
This issue is related with this #39
Now we use utf8_encode() function to encode conent.
\utf8_encode( \quoted_printable_decode($this->getContent()));
But this function only encodes an ISO-8859-1 string to UTF-8, so we should use iconv() function instead.
Hi,
nothing is working anymore for me.
ErrorException
imap_header(): Bad message number
my research has shown me that
imap_header()
http://us1.php.net/manual/en/function.imap-headerinfo.php doesn't work with uid ...
think a decision is needed if the slower imap_fetchheader should be used within the getHeaders function
This is a comment on php.net:
"I typically use UID's to identify messages, and recently discovered that the headers I had been pulling using this function and a message-number didn't match the UID's. Instead of worrying about it, I just began using imap_fetchheader() and imap_ rfc822_ parse_ headers() on its output. The only significant difference I immediately noticed was that there is no "udate" property, so I assigned one with the result of strtotime() on the 'date' property.
Dustin"
I've just run into the below error:
PHP Fatal error: Uncaught Ddeboer\Transcoder\Exception\ExtensionMissingException: iconv in /home/chris/Projects/Dashboard/vendor/ddeboer/transcoder/src/IconvTranscoder.php:16
Stack trace:
#0 /home/chris/Projects/Dashboard/vendor/ddeboer/transcoder/src/Transcoder.php(62): Ddeboer\Transcoder\IconvTranscoder->__construct('UTF-8')
#1 /home/chris/Projects/Dashboard/vendor/ddeboer/imap/src/Parameters.php(41): Ddeboer\Transcoder\Transcoder::create()
#2 /home/chris/Projects/Dashboard/vendor/ddeboer/imap/src/Parameters.php(20): Ddeboer\Imap\Parameters->decode('multipart_alter...')
#3 /home/chris/Projects/Dashboard/vendor/ddeboer/imap/src/Message/Part.php(236): Ddeboer\Imap\Parameters->add(Array)
#4 /home/chris/Projects/Dashboard/vendor/ddeboer/imap/src/Message.php(329): Ddeboer\Imap\Message\Part->parseStructure(Object(stdClass))
#5 /home/chris/Projects/Dashboard/vendor/ddeboer/imap/src/Message.php(34): Ddeboer\Imap\Message->loadStructure()
#6 /home/chris/Projects/Dashboard/vendor/ddeboer/imap/src/MessageIterator.php(29): Ddeboer\Imap\ in /home/chris/Projects/Dashboard/vendor/ddeboer/transcoder/src/IconvTranscoder.php on line 16
<?php
require "vendor/autoload.php";
use Ddeboer\Imap\Server;
$server = new Server('abc', 993);
$connection = $server->authenticate('abcxyz', 'abcxyz');
$inbox = $connection->getMailbox("INBOX");
$messages = $inbox->getMessages();
foreach ($messages as $message){
echo $message->getSubject() . PHP_EOL;
}
Hi everybody,
I was testing your library with my professional Office 365 account, it's working fine (at least, I can get a listing of all my emails).
But when I want to do some tests with my personal Gmail account (with exactly the same code), I get stuck with the error :
Fatal error: Uncaught exception 'Ddeboer\Imap\Exception\AuthenticationFailedException' with message 'Authentication failed for user [email protected] ...
on the line :
$connection = $server->authenticate( ... );
I checked my Gmail settings, IMAP enabled, "Less secure apps" turned on, ... I don't understand.
I was thinking, maybe it's because my password contains some "fancy" characters ( / , `, ' , and others) but Gmail always accepted it.
Do you have any idea? Thanks.
Would it be possible to setup a timeout on
$connection = $server->authenticate('my_username', 'my_password');
Sometimes (and no idea why) it takes too long to authenticate and I'd rather retry. How do I stop (and debug) php when doing imap_open. Code snippet from https://github.com/ddeboer/imap/blob/master/src/Server.php below:
public function authenticate($username, $password)
{
// Wrap imap_open, which gives notices instead of exceptions
set_error_handler(
function ($nr, $message) use ($username) {
throw new AuthenticationFailedException($username, $message);
}
);
$resource = imap_open(
$this->getServerString(),
$username,
$password,
null,
1,
$this->parameters
);
if (false === $resource) {
throw new AuthenticationFailedException($username);
}
restore_error_handler();
$check = imap_check($resource);
$mailbox = $check->Mailbox;
$this->connection = substr($mailbox, 0, strpos($mailbox, '}')+1);
// These are necessary to get rid of PHP throwing IMAP errors
imap_errors();
imap_alerts();
return new Connection($resource, $this->connection);
}
I'm trying to move email to another mailbox. Library does not return any error. Looks like success, but email isn't moved.
$message->move($this->mailboxProcessed);
$this->mailboxProcessed->expunge();
Also another issue is, that emails cannot be moved in a loop. Strange, but this issue occurs even when emails doesn't get moved:
[Ddeboer\Imap\Exception\MessageDoesNotExistException]
Message 4 does not exist: imap_fetchstructure(): Bad message number
I'm trying to move email on Bluehost email server.
It's needed sometimes if you have to connect to exchange servers - so for instance array('DISABLE_AUTHENTICATOR' => 'GSSAPI') can be used.
Sometimes date
header is not in a proper format, for example, mail.ru returns this for date
header: =?utf-8?B?0fAsIDQg4OLjIDIwMTAgMTM6MDE6NDAgKzAzMDA=?=
This makes library fail in file Header.php
on line 33. Using maildate
from headers array instead solved it for me, but I'm not sure if this is a right way to do this.
On this code
$messages = $mailbox->getMessages();
foreach ($messages as $message) {
// $message is instance of \Ddeboer\Imap\Message
echo "\ngetting Message...";
echo "\n".$message->getSubject();
}
it breaks at a certain point...
getting Message...PHP Warning 'yii\base\ErrorException' with message 'mb_convert_encoding(): Unable to detect character encoding'
in /var/www/myhost.com/vendor/ddeboer/imap/src/Ddeboer/Imap/Message/Headers.php:20
// Decode subject, as it may be UTF-8 encoded
if (isset($headers->subject)) {
$subject = '';
foreach (\imap_mime_header_decode($headers->subject) as $part) {
// $part->charset can also be 'default', i.e. plain US-ASCII
$charset = $part->charset == 'default' ? 'auto' : $part->charset;
$subject .= \mb_convert_encoding($part->text, 'UTF-8', $charset);
}
$this->array['subject'] = $subject;
}
sorry to post here, new using your lib, but got this and something related on how to atleast fix it: php-mime-mail-parser/php-mime-mail-parser#26
the bad part is that i got this exception while the message is being initialized, so no other operations can be performed on it (move delete), using getMessages() is not safe.
Encoding from ks_c_5601-1987' to
UTF-8' is unsupported on this platform: iconv(): Wrong charset, conversion from ks_c_5601-1987' to
UTF-8' is not allowed#0 [internal function]: Ddeboer\Transcoder\IconvTranscoder->Ddeboer\Transcoder{closure}(8, 'iconv(): Wrong ...', '/var/www/releas...', 38, Array)
#1 /vendor/ddeboer/transcoder/src/IconvTranscoder.php(38): iconv('ks_c_5601-1987', 'UTF-8', '[SUSPECTED SPAM...')
Hi, when I download messages with encoding other than UTF-8, the message body content gets garbled.
What helped me resolve this issue is replace mb_encode_string with iconv.
Is there a way to delete messages (or move them to another folder?)
Consider following From: header of a message From: Something: Somewhere <[email protected]>
. When this kind of message is read, PHP Catchable fatal error: Method Ddeboer\Imap\Message\EmailAddress::__toString() must return a string value
is thrown.
It seems that PHP's native imap_headerinfo()
parses this kind of address line incorrectly. When putting print_r($value)
to the header parsing script vendor/ddeboer/imap/src/Message/Headers.php
the output is:
Array
(
[0] => stdClass Object
(
[mailbox] => Something
)
[1] => stdClass Object
(
[personal] => Somewhere
[mailbox] => example
[host] => example.com
)
[2] => stdClass Object
(
)
)
I've my system working fine on my dev machine but I've an issue on my prod server.
I've the same PHP version on both and I'm completely sure that authentication data is correct.
Imap extension it's installed and activated on both machines.
I receive this error on prod server:
[Ddeboer\Imap\Exception\AuthenticationFailedException]
Authentication failed for user my_user with error imap_open(): Couldn't ope
n stream {localhost:143}
I've tried to do a telnet localhost 143
and I can login without any problems.
Anybody know what's happening?
Before foreach $this->attachments
should be initialized to an empty array. Otherwise return value is null
which can cause Warning: Invalid argument supplied for foreach()
.
Hey
When calling getAttachments, i don't get anything back
Upon doing some research, i saw that the function getParts() is not returning the parts as instance of Message\Attachments, but the getAttachments() function is looking for that
Looking further in the getParts function i saw that my parts don't show up a disposition ( which is why the parts are returned as a Part instead of an Attachment instance )
Here's a gist with the array returned by parseStructure() for all the elements of my email:
https://gist.github.com/raulp/ce7236054284e751f713
Let me know if you need any other info ...
Thank you
Hello,
Is it possible to have message with a tree of threaded message ?
http://php.net/manual/en/function.imap-thread.php
Thanks
Regards
For some reason, HHVM's Authentication with IMAP is not working. Does anyone else have this problem?
Message::getAttachments() returns null.
However, the messages do have attachments. This behaviour was tested on messages sent from MS Outlook through MS Exchange, and from GMail through the web application.
Hello,
I'm getting this problem when do a composer update
Problem 1
- Installation request for ddeboer/imap dev-master -> satisfiable by ddeboer/imap[dev-master].
- ddeboer/imap dev-master requires ext-imap * -> the requested PHP extension imap is missing from your system.
I'm using MAMP PRO with PHP 7.0.3 and IMAP library is installed.
I'll appreciate any help.
Current result: test 123 ir lietuviškos raid�s
Expected: test 123 ir lietuviškos raidės
Possible solution (partly tested):
/**
* Decodes IMAP encoded string (RFC2047)
*
* @param string $string
*
* @return string
*/
public function decodeImapString($string)
{
$result = array();
$parts = imap_mime_header_decode($string);
foreach ($parts as $part) {
if ($part->charset == 'default') {
$result[] = $part->text;
} else {
$result[] = mb_convert_encoding($part->text, 'UTF-8', $part->charset);
}
}
return implode($result);
}
This logic should be applied to header lines (including attachment names)
Hi
$server = new Server($config['mail']['server'], 993, '/imap/ssl/novalidate-cert');
$connection = $server->authenticate($config['mail']['username'], $config['mail']['password']);
$mailboxes = $connection->getMailboxes();
$mailbox = $connection->getMailbox('INBOX');
if(isset($_GET['id'])){
$message = $mailbox->getMessage($_GET['id']);
$message->keepUnseen();
$message->getSubject(); //etc
}
Really this message has flag seen
how i can add flag unseen and star to this message ?
I have this error using on laravel:
Authentication failed for user xxxxxx with error imap_open() expects at most 5 parameters, 6 given
Right now I need to save the private properties of Ddeboer\Imap\Message\EmailAddress.
But I cannot access the object properties due the private attribution.
I know we can take the 'sender' key from header, but,
May we change the properties to public?
Seems to be really slow connecting sometimes. TO what sort of extent is this caching connections to IMAP servers?
The method Message::move() has the CP_UID option set, so it uses UIDs for the messages. However, Message::delete() doesn't use the corresponding FT_UID option.
http://php.net/manual/de/function.imap-delete.php
Is this behaviour intentional or should delete also be able to use message UIDs?
Thank you very much!
Hello, I've got the problem that it always delete the wrong email
My code:
$message = $mailbox->getMessage(233);
$message->delete();
$mailbox->expunge();
Instead of message 223 it deletes one out of ~775
The Move Message are creating a copy and Delete Message not work.
Is it possible to add option to not mark messages automatically as read. This can be useful if you want user to see little snippet of message text before open it f.e. It can be done by setting option FT_PEEK in imap_fetchbody function.
Hello,
I get the attachments from the mailbox's unread messages using $attachment->getDecodedContent() and I'm having some trouble with them. They are UTF-8 XML. The transcode method is causing an Exception on iconv function saying it has an illegal character.
https://github.com/ddeboer/imap/blob/master/src/Message/Part.php#L185-L188
I just changed this to:
https://github.com/darit/imap/blob/master/src/Message/Part.php#L185-L189
This change works fine for me.
darit@3ba77f1?diff=unified
Exception detected at line 385 in /var/www/app/test.php :
exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (Fri, 24 Jul 2015 20:36:59 -0-100 -0700) at position 33 (-): Double timezone specification' in /var/www/app/vendor/ddeboer/imap/src/Message/Headers.php:56
Stack trace:
#0 /var/www/app/vendor/ddeboer/imap/src/Message/Headers.php(56): DateTime->__construct('Fri, 24 Jul 201...')
#1 /var/www/app/vendor/ddeboer/imap/src/Message/Headers.php(23): Ddeboer\Imap\Message\Headers->parseHeader('date', 'Fri, 24 Jul 201...')
#2 /var/www/app/vendor/ddeboer/imap/src/Message.php(185): Ddeboer\Imap\Message\Headers->__construct(Object(stdClass))
#3 /var/www/app/vendor/ddeboer/imap/src/Message.php(56): Ddeboer\Imap\Message->getHeaders()
#4 /var/www/app/vendor/emailapi/inboxwatch/src/InboxWatch.php(383): Ddeboer\Imap\Message->getFrom()
#5 /var/www/app/test.php(44): MyApp->imap_retrieve()
I've noticed my PR failed on Travis with this error:
RuntimeException: Please set environment variable EMAIL_USERNAME before running functional tests
I've seen that in other PR, so I guess it happens to everyone. Can that be fixed? Repo would be easier to maintain, right? 😃
how i can paginate my INBOX ?!
When receiving an email whose recipient was set in BCC, an "Undefined property" error is thrown because the "host" is undefined. This happens in Headers.php line 51.
Hello,
On one of my messages I get:
exception 'ErrorException' with message 'mb_convert_encoding(): Illegal character encoding specified' in /var/www/vhosts/archive/vendor/ddeboer/imap/src/Ddeboer/Imap/Message/Headers.php:20
Any ideas on how to fix that?
Thank you!
Hey ddeboer, help me, please add function order email by date
Delivered-To: [email protected]
Received: by 10.202.195.68 with SMTP id t65csp871342oif;
Sun, 15 Feb 2015 02:21:54 -0800 (PST)
X-Received: by 10.236.209.35 with SMTP id r23mr13006152yho.26.1423995713978;
Sun, 15 Feb 2015 02:21:53 -0800 (PST)
Return-Path: <[email protected]>
Received: from mail-yk0-x245.google.com (mail-yk0-x245.google.com. [2607:f8b0:4002:c07::245])
by mx.google.com with ESMTPS id h70si1767496yhq.9.2015.02.15.02.21.52
for <[email protected]>
(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Sun, 15 Feb 2015 02:21:53 -0800 (PST)
Received-SPF: pass (google.com: domain of [email protected] designates 2607:f8b0:4002:c07::245 as permitted sender) client-ip=2607:f8b0:4002:c07::245;
Authentication-Results: mx.google.com;
spf=pass (google.com: domain of [email protected] designates 2607:f8b0:4002:c07::245 as permitted sender) [email protected];
dkim=pass [email protected]
Received: by mail-yk0-f197.google.com with SMTP id 19sf76654028ykq.0
for <[email protected]>; Sun, 15 Feb 2015 02:21:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=yyy.cz; s=google;
h=sender:mime-version:message-id:date:subject:from:to:content-type
:content-disposition:content-transfer-encoding:x-original-sender
:x-original-authentication-results:precedence:mailing-list:list-id
:list-help:reply-to;
bh=CplHfCqscVv63ZCvirQ+kOAnaGy+fQ75nMYfE7lYq9k=;
b=DPypTwmlwUGYaPk2qqgJqjKDY8Ep3k9qefc6KQQC86Eah/OGM/Garig6jT13iLwyET
FtYsvRn2T8w64BnJyOPecm78M8L2huzBewNvoelkeWJ/iOy7Q6aBvs6QRfSlofEj5h6J
fY+smO5ygB3vV83l940XlOny+DBIqVpOEbMHY=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20130820;
h=sender:x-gm-message-state:mime-version:message-id:date:subject:from
:to:content-type:content-disposition:content-transfer-encoding
:x-original-sender:x-original-authentication-results:precedence
:mailing-list:list-id:list-help:reply-to;
bh=CplHfCqscVv63ZCvirQ+kOAnaGy+fQ75nMYfE7lYq9k=;
b=PsyED0jEeSUp2AIAVSDPml90JG3aUJohwjIW25jlclqk1URF/aE8cqXQ18ZRXb+aN0
NrQMYWpzaTH7Lhm8P4zhx4RwSpg/5ARF3DcBn1sq3pvrbyq+EPb8VVCRaNzFfBDgvyhy
PzjAOcj+ePn5JHgF72Vcwe1otXzrNjdwmOlac8InvAXB7o3m9BJSJDRXDr1njey6nTrs
rxkRG/m00hudFhUfS8mIOcBDzRQlxhv2Qyieqx9MOD5GWx3yahNIdOlxGMp2aKygIjdi
Ido74o8k7Toxg9+i8ezRe0u2PPPXKvcvS6C3jfDFur3itznWrigANhKx72579XfwwUG5
hBGw==
Sender: [email protected]
X-Gm-Message-State: ALoCoQk7KfRa8eCPbeV/RdlsyKq6gQuK7klaYSAFQPzgRNVhuflMuZp/M0VpRUca9zwJDjYrEv/u
X-Received: by 10.236.36.39 with SMTP id v27mr16650675yha.24.1423995712566;
Sun, 15 Feb 2015 02:21:52 -0800 (PST)
X-BeenThere: [email protected]
Received: by 10.107.170.129 with SMTP id g1ls1295636ioj.69.gmail; Sun, 15 Feb
2015 02:21:52 -0800 (PST)
X-Received: by 10.107.168.207 with SMTP id e76mr22648201ioj.60.1423995712409;
Sun, 15 Feb 2015 02:21:52 -0800 (PST)
Received: from mail-ie0-f201.google.com (mail-ie0-f201.google.com. [209.85.223.201])
by mx.google.com with ESMTPS id s10si8220288igg.4.2015.02.15.02.21.52
for <[email protected]>
(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Sun, 15 Feb 2015 02:21:52 -0800 (PST)
Received-SPF: pass (google.com: domain of [email protected] designates 209.85.223.201 as permitted sender) client-ip=209.85.223.201;
Received: by iecrl12 with SMTP id rl12so7777265iec.0
for <[email protected]>; Sun, 15 Feb 2015 02:21:52 -0800 (PST)
MIME-Version: 1.0
X-Received: by 10.182.50.161 with SMTP id d1mr16824193obo.28.1423995711904;
Sun, 15 Feb 2015 02:21:51 -0800 (PST)
Message-ID: <[email protected]>
Date: Sun, 15 Feb 2015 10:21:51 +0000
Subject: Report domain: yyy.cz Submitter: google.com Report-ID: 2244696771454641389
From: noreply-dmarc-support via xxx <[email protected]>
To: [email protected]
Content-Type: application/zip;
name="google.com!yyy.cz!1423872000!1423958399.zip"
Content-Disposition: attachment;
filename="google.com!yyy.cz!1423872000!1423958399.zip"
Content-Transfer-Encoding: base64
X-Original-Sender: [email protected]
X-Original-Authentication-Results: mx.google.com; spf=pass (google.com:
domain of [email protected] designates 209.85.223.201 as
permitted sender) [email protected]; dkim=pass
[email protected]; dmarc=pass (p=REJECT dis=NONE) header.from=google.com
Precedence: list
Mailing-list: list [email protected]; contact [email protected]
List-ID: <xxx.yyy.cz>
X-Google-Group-Id: 98899750969
List-Help: <http://support.google.com/a/yyy.cz/bin/topic.py&topic=25838>, <mailto:[email protected]>
X-Original-From: [email protected]
Reply-To: [email protected]
UEsDBAoAAAAIABRPT0bdJB+DSwIAALgKAAAuAAAAZ29vZ2xlLmNvbSFzdW5mb3guY3ohMTQyMzg3
MjAwMCExNDIzOTU4Mzk5LnhtbO1WwY6bMBC971dEuQcDIQSQQ3rqF7RnZIwh7oJt2WY32a+viQ2h
u9moqnarqOop8Gbmjd/4OQbuj127eCJSUc52y8DzlwvCMK8oa3bL79++rpLlYp8/wJqQqkT4MX9Y
LKAkgktddESjCmk0YAblsikY6kjecN60xMO8g2ACbQ7pEG1zxg1De1pVHZJ4pXox0H2Zl9k8V3PU
EhWYM42wLiireX7QWmQAuErvUgkQKCkDiKlnIj1x2tunXRjF8SbxDfFbMtvFaaJVHoZRFKfxdhtE
myiOgnWSQnAJ23SjmxQSscYpM1BJGsryIArXyTb0fdPMImOcsOocTTfJOjWUw7slA7+yTd3mA4aC
txSfCtGXLVUHMi2Em1GxXPVGytHDL4bMIjaMqkfa5RIC++BAJeozNvxaSOSS/CBYQyAcoi6QGjGB
dR4MyoaH80qvrcrMEnM5LlDy52kEivcSk4KKPIz9bVYnpZ9Fvr/OsB9kWbgOTa8pZSzCvGemLQT2
YYRdZ/KE2t6MrxoDw0yoElxRbTxtvMaImckMmeUNIxFIKZMwTceJr11gGtFM7aueZr9GjZBWhGla
U3OiprIDQRWRRS15N9+nOex43lRD1OtDIYnqW30hfLXY2xZw7h4YnCT3Mqma08GZ3g+gvhgMvFYy
JI82+R3HpL4XbDdesIm84SB/tE9Gr99wSm3+k646xQbu0Sl/uptW0Sfu5tXzH6b3dP7vd1f/+vl/
KU83eRnpzbX6uY5JzMeJZ25PLwji920S/r8m/tVrAoLLR+hPUEsBAgoACgAAAAgAFE9PRt0kH4NL
AgAAuAoAAC4AAAAAAAAAAAAAAAAAAAAAAGdvb2dsZS5jb20hc3VuZm94LmN6ITE0MjM4NzIwMDAh
MTQyMzk1ODM5OS54bWxQSwUGAAAAAAEAAQBcAAAAlwIAAAAA
I couldn't find any information what this encoding means. PHP doc says encoding "may vary with used library".
I'm using IMAP c-Client Version => 2007f
coming with PHP 5.5 for Windows distribution and I get this encoding sometimes. This throws error since there is no such item in Part::$encodingsMap array.
How can I get messages sortes as latest first ? Currently it loads the oldest first ...
Is there a way I can run something like FETCH 1 (X-GM-MSGID)
?
Trying to use the following sample code with hotmail:
$message->keepUnseen()->getBodyHtml();
It is not keeping the messages as unread. Tried forcing a boolean in keepUnseen
$message->keepUnseen(true)->getBodyHtml();
Did not work. Tried forcing the class variable to be true by default on line 21 of Message.php, This also did not work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.