This is a discussion on pop3 download? within the alt.comp.lang.php forums, part of the PHP Programming Forums category; I am trying to make a webmail system and am just starting my work with POP3 via PHP. I seem ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I am trying to make a webmail system and am just starting my work with POP3
via PHP. I seem to be figuring out the basic steps, but I don't know if what I want to do is possible. I want to move an entire message (all of them in the box really) to my system. I want to at least copy all of the messages from a given POP3 mailbox to my server and maybe delete them (more than likely always delete them). Basically, just like your local mail program does. Right now, it seems that in order to do that, I have to request parts of each message (header, body, any attachments, etc...) separately and then write all that to a local file. Is there not a way to request the entire message file in a binary stream or something to simply dump that to a local file for me to parse later? Please someone tell me that there is an easier way than grabbing individual message parts and recreating the file myself locally? Thanks in advance for your help! -- Shawn Wilson |
|
|||
|
... and it came to pass that Shawn Wilson
<firstinitial_lastname@dvigroup.net> uttered forth: >I am trying to make a webmail system and am just starting my work with POP3 >via PHP. I seem to be figuring out the basic steps, but I don't know if >what I want to do is possible. > >I want to move an entire message (all of them in the box really) to my >system. I want to at least copy all of the messages from a given POP3 >mailbox to my server and maybe delete them (more than likely always delete >them). Basically, just like your local mail program does. > Sounds like you're trying to write another squirrelmail program, or write a PHP version of "fetchmail". Unless you're intending on reinventing the wheel, either of those may suit easier. -- "Dungeon" Dave |
|
|||
|
"'Dungeon' Dave" <Dungeon@tombstones.org.uk> wrote in message
news:aVscT5BKzOhDFw9q@kryten.tombstones.org.uk... > Sounds like you're trying to write another squirrelmail program, or write > a PHP version of "fetchmail". > > Unless you're intending on reinventing the wheel, either of those may suit > easier. > -- > > "Dungeon" Dave Well while my project will have a webmail element, that's not the meat of it. The webmail interface will be very basic and more than likely not even allow messages to be sent. It is only for message review at this point. The end result will be a challange/response email system where the webmail portion of it will be mainly ignored. I also have several features slated that are not in other such systems such as forwards based on scripts (redirect any personal mail to my work address during business hours so I don't have to POP it at work) and PGP encrypting mail as it comes in. -- Shawn Wilson |
![]() |
| Thread Tools | |
| Display Modes | |
|
|