(PHP) mailbox question

Discussion in 'Web Design & Coding' started by Glaanieboy, Aug 24, 2003.

  1. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    As some of you might know, I am coding a online mail-checker/reader/composer/whatever. I opened a mailbox at my ISP for testing purposes. Here's the current script: http://allhope.geffychan.co.uk/~glennhof/mail/mail.php
    I am having problems, however.
    I want to set the status of the mail to 'read' when I have clicked (and thus reading) the message. But I have no idea what imap function I should use and what options I should use. Can anyone help me?
    Source: http://allhope.geffychan.co.uk/~glennhof/mail/mail.phps
     
  2. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    I hate to say this, but you are reinventing the wheel.

    http://www.nuralstorm.net/ check out that mail client and see if you can find what you need, i personally have no experience with the imap/mail functions of PHP except mail()
     
  3. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    I know that I am re-inventing the wheel. I am still learning PHP and I have found that I learn it better the hard way, by doing it myself. It's (ususally) more fun too. I only want examples, not complete scripts.
    I did the same with my shoutbox.
     
  4. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    *cough*cough* ;)
     
  5. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    lalalalaaaaaaa
     
  6. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
  7. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    Well, i suggest you take a look at that script and see how they do it.
     
  8. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    Well, I did take a look at the script, but it still did not work. After a bit more searching I found that POP3 doesn't support the //Seen flag in imap_setflag_full(). So it ain't possible.
     
  9. X-Istence

    X-Istence * Political User

    Messages:
    6,498
    Location:
    USA
    Guess you have to do is script side, and not pop3 side.
     
  10. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    What do you mean?