For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > November 2005 > pop3 download?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author pop3 download?
Shawn Wilson

2005-11-22, 9:55 pm

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


'Dungeon' Dave

2005-11-23, 6:56 pm

... 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
Shawn Wilson

2005-11-28, 6:57 pm

"'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



Shawn Wilson

2005-11-30, 3:56 am

I've got it working... in case anyone runs across this.



--
Shawn Wilson


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com