Depends what you want to do with it. If you want it to grab messages from a POP server, and download them to your local machine, then some sort of cyclic folders database structure would help:
int auto_inc folderid int default(0) parentid (= 0 if root, otherwise id of parent folder) str foldername Then your mail database: int auto_inc mailid int default(0) folderid subject ... etc ... I would suggest setting up an IMAP server somewhere.. in which case all you really need to do is grab Horde/IMP from http://www.horde.org/imp and use that. The latest version is quite good. Mike Philip Jeffs wrote: > Hi, > > I'm looking into setting up a web based mail client for personal use. > > I've got most of it figured out (sending, recieving, forwarding etc..). > > I need to be able to use folders in the mail client to organise the messages. Whats >the best way of moving messages around? > > Do i need to store them as files / in a database or is there an easier way to do it? > > Thanks. > > ----------------------------- > Philip Jeffs > > The Tickle Group > The Gate House > Summerseat > Bury > Lancashire > BL9 5PE > United Kingdom > W: http://www.tickle.co.uk > T: 01706 823456 > F: 01706 829500 > E: [EMAIL PROTECTED] (daytime) > [EMAIL PROTECTED] (evening) > ----------------------------- > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]