pop3 download?

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


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-23-2005
Shawn Wilson
 
Posts: n/a
Default pop3 download?

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


Reply With Quote
  #2 (permalink)  
Old 11-23-2005
'Dungeon' Dave
 
Posts: n/a
Default Re: pop3 download?

... 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
Reply With Quote
  #3 (permalink)  
Old 11-28-2005
Shawn Wilson
 
Posts: n/a
Default Re: pop3 download?

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



Reply With Quote
  #4 (permalink)  
Old 11-30-2005
Shawn Wilson
 
Posts: n/a
Default Re: pop3 download?

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



--
Shawn Wilson


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:18 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0