Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    w98 is offline
    New to the CF scene
    Join Date
    Apr 2004
    Thanked 0 Times in 0 Posts

    Question parse mbox file without imap support?

    My hosting provider has not compiled IMAP support into their PHP setup, and I need to access an mbox mailbox to parse the headers/body for keywords and take action (delete, forward, autoreply) based on what I find (or don't find).

    Any assistance on this would be groovy. Haven't found any info on this OTHER than with imap_xxxx() functions, and I don't have access to that.


  • #2
    Super Moderator
    Join Date
    May 2002
    Perth Australia
    Thanked 101 Times in 99 Posts
    I assume that this will vary depending on host/mailserver etc ...

    but on my box my `inbox` is available as plaintext at /home/user/mail/inbox

    now I would'nt fancy parsing that myself but it is obviously parsable , so perhaps load and parse that ?

    <edit>I would not call a host who does/would not enable common, stable modules as a real PHP host </edit>
    Last edited by firepages; 04-24-2004 at 06:55 AM.
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts