[dev] Was the Fetchmail Commit complete (question)
Nuno Loureiro
nuno@co.eth.pt
28 May 2002 20:22:59 +0100
After doing some tests, it seems I can't get a PHP function to get
message flags via ***POP3***, that **really works**!
The function that I use in fetchmail is imap_header(). The result flags
for a message SEEN and mark as DELETED is the following one:
Recent:N; Unseen: ; Flagged: ; Answered: ; Draft: ; Deleted: ;
If I use IMAP instead, the result is correct:
Recent: ; Unseen: ; Flagged: ; Answered: ; Draft: ; Deleted:D;
I also tryed imap_fetch_overview() and the following is its result for
the same message.
[0] => stdClass Object
(
[subject] => teste4
[from] => Nuno Loureiro
[to] => nuno@eth.pt
[date] => Mon, 4 Mar 2002 20:21:53 +0000
[message_id] =>
<1015273313.3c83d76117432@webmail.clientes.eth.pt>
[size] => 527
[uid] => 3
[msgno] => 3
[recent] => 1
[flagged] => 0
[answered] => 0
[deleted] => 0
[seen] => 0
[draft] => 0
)
Am I missing something here?
Any help would be appreciated..
-nuno
On Tue, 2002-05-28 at 19:21, Nuno Loureiro wrote:
> On Tue, 2002-05-28 at 18:43, Edwin Culp wrote:
> > Quoting Edwin Culp <eculp@encontacto.net>:
> >
> > I switched to imap and it works perfectly except much slower and
> > with more load as I had expected. Duh! Now I know what my first
> > question should have been. Does the "new mail only" feature work
> > with pop3? I had thought about that because I have vague recollections=
> > of Netscape mail loosing the pop3 index and repeating all your mails
> > but that has been a looooong time ago and I could be hallucinating:-)
>
> Ohh! Now I can reproduce your problem...
>
> In fact, it crossed my mind to ask you before, if you were trying IMAP
> or POP3, but I checked the source and the code was exactly the same for
> checking new email in IMAP and POP3, so I didn't think that could be the
> problem..
>
> I have no idea why it doesn't work with POP3.
> I'll try to investigate tonight and say something about it tommorrow...
> (hope to submit a patch for it)
>
> Thanks again for your tests.
>
> nuno
--
Nuno Loureiro <nuno@eth.pt>
Ethernet, Soluções Informáticas, LDA
http://www.eth.pt