imap_header son = N, görünmeyen = "" ...

1 Cevap php

Bir LEASEWEB sunucu üzerinde PHP 5.2.0-8 + etch13 kullanarak, imap ile e-posta alıp belli bir adrese postayla bir dosyayı işlemek kodu var. I imap_num_msg aracılığıyla mesaj sayısını almak ve her biri üzerinde imap_header çağırarak ardından bakmak, imap_open (hataları kontrol ve herhangi bir bulgu değil) diyoruz. Tüm hatasız çalışır.

I then check if ('U' == $header->Unseen || 'N' == $header->Recent). This works fine on with the same code on a ModWest shared server, but does not find new messages when it should on Leaseweb and ModWest VPS servers. A print_r of a test email sent just before running the code has the header showing...

stdClass Object
(
    [tarih] => Tue, 24 Mar 2009 17:57:55 +0100
    [Date] => Tue, 24 Mar 2009 17:57:55 +0100
    [subject] => Data 200903
    [Subject] => Data 200903
    [in_reply_to] => <xxx@mail.gmail.com>
    [message_id] => <xxx@mail.gmail.com>
    [references] => <xxx@mail.gmail.com>  <xxx@mail.gmail.com>
    [toaddress] => data@xxx.com
    [to] => Array
        (
            [0] => stdClass Object
                (
                    [mailbox] => data
                    [host] => xxx.com
                )

        )

    [fromaddress] => "me" <me@xxx.com> 
    [from] => Array
        (
            [0] => stdClass Object
                (
                    [personal] => me
                    [mailbox] => me
                    [host] => xxx.com
                )

        )

    [reply_toaddress] => "me" <me@xxx.com> 
    [reply_to] => Array
        (
            [0] => stdClass Object
                (
                    [personal] => me
                    [mailbox] => me
                    [host] => xxx.com
                )

        )

    [senderaddress] => me@gmail.com
    [sender] => Array
        (
            [0] => stdClass Object
                (
                    [mailbox] => me
                    [host] => gmail.com
                )

        )

    [Recent] => N
    [Unseen] =>  
    [Flagged] =>  
    [Answered] =>  
    [Deleted] =>  
    [Draft] =>  
    [Msgno] =>    1
    [MailDate] => 24-Mar-2009 17:57:55 +0100
    [Size] => 8802
    [utarih] => 1237913875
)
  1. Bu "okumak" için neden ben yapıyorum bir şey var mı?
  2. Nasıl bu "yeni" messsage olduğunu söyleyebilirim.

Thanks, Ed

1 Cevap

Sunucu bu diğer tür başlık bilgilere erişmek bu özel yöntem okunan gibi sadece bir karanlıkta atış, ancak yorumlanabilir?