You are viewing a plain text version of this content. The canonical link for it is here.
Posted to zeta-users@incubator.apache.org by Tolan Blundell <to...@overtops.org> on 2011/05/06 13:19:26 UTC
[zeta-users] ezcMail, IMAP and IDs/UIDs
Hi,
I'm trying to work out if there's something missing from ezcMail or
whether I'm missing something obvious.
Is there no way to get either the ID or the UID of an ezcMail object
fetched from IMAP? The only way I can see (for UIDs) is to use
ezcMailImapTransport::fetchAll() and
ezcMailImapTransport::listUniqueIdentifiers(). That's fine as far as it
goes, if a little unwieldy, but it seems there's absolutely no way to,
for example:
1. Fetch / parse all un-seen mail with
ezcMailImapTransport::fetchByFlag( 'UNSEEN' )
2. Do my own processing.
3. For successfully processed mail, move it to another folder.
4. For unsuccessfully processed mail, mark it as SEEN.
The specifics of the example don't matter of course, my point is just
that unless you fetch all the mail in a folder there's no way to know
the UID for a particular mail item.
This seems to confirm my suspicion:
https://issues.apache.org/jira/browse/ZETACOMP-79?page=com.atlassian.jira.plugin.ext.subversion%3Asubversion-commits-tabpanel#issue-tabs
but I thought it would be better to ask in case there's another method
for fetching the UID given a particular ezcMail object that I'm missing.
Thanks!
Tolan.
--
Tolan Blundell
BGZ Consultants LLP
Re: [zeta-users] ezcMail, IMAP and IDs/UIDs
Posted by Tolan Blundell <to...@overtops.org>.
Thanks, just wanted to double check I hadn't missed anything.
On 05/06/11 17:27, Benjamin Eberlei wrote:
> Not possible right now, this is why the patch in ZETACOMP-79 exists.
> Derick is currently reviewing it.
Re: [zeta-users] ezcMail, IMAP and IDs/UIDs [offtopic]
Posted by Tolan Blundell <to...@overtops.org>.
Oh look who it is! It just so happens I was Googling around this morning
trying to find out whether Xdebug locks profiling files in append mode
as I vaguely remember reading somewhere it didn't.
But that's a question for another list (or tracker). :)
On 05/06/11 18:09, Derick Rethans wrote:
> On Fri, 6 May 2011, Benjamin Eberlei wrote:
>
>> Not possible right now, this is why the patch in ZETACOMP-79 exists. Derick is
>> currently reviewing it.
>
> I just did! :)
>
> Derick
>
Re: [zeta-users] ezcMail, IMAP and IDs/UIDs
Posted by Derick Rethans <de...@apache.org>.
On Fri, 6 May 2011, Benjamin Eberlei wrote:
> Not possible right now, this is why the patch in ZETACOMP-79 exists. Derick is
> currently reviewing it.
I just did! :)
Derick
--
http://derickrethans.nl | http://xdebug.org
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
twitter: @derickr and @xdebug
Re: [zeta-users] ezcMail, IMAP and IDs/UIDs
Posted by Benjamin Eberlei <ko...@beberlei.de>.
Not possible right now, this is why the patch in ZETACOMP-79 exists.
Derick is currently reviewing it.
On Fri, 06 May 2011 15:19:26 +0200, Tolan Blundell wrote:
> Hi,
>
> I'm trying to work out if there's something missing from ezcMail or
> whether I'm missing something obvious.
>
> Is there no way to get either the ID or the UID of an ezcMail object
> fetched from IMAP? The only way I can see (for UIDs) is to use
> ezcMailImapTransport::fetchAll() and
> ezcMailImapTransport::listUniqueIdentifiers(). That's fine as far as
> it
> goes, if a little unwieldy, but it seems there's absolutely no way
> to,
> for example:
>
> 1. Fetch / parse all un-seen mail with
> ezcMailImapTransport::fetchByFlag( 'UNSEEN' )
> 2. Do my own processing.
> 3. For successfully processed mail, move it to another folder.
> 4. For unsuccessfully processed mail, mark it as SEEN.
>
> The specifics of the example don't matter of course, my point is just
> that unless you fetch all the mail in a folder there's no way to know
> the UID for a particular mail item.
>
> This seems to confirm my suspicion:
>
>
> https://issues.apache.org/jira/browse/ZETACOMP-79?page=com.atlassian.jira.plugin.ext.subversion%3Asubversion-commits-tabpanel#issue-tabs
>
> but I thought it would be better to ask in case there's another
> method
> for fetching the UID given a particular ezcMail object that I'm
> missing.
>
> Thanks!
>
> Tolan.