SunQuest
 
           PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old June 23rd, 2004, 02:59 PM
chris.zeman chris.zeman is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 2 chris.zeman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question PHP and IMAP - Restoring Messages

I'm a beginner when it comes to PHP, so forgive me if this is a dumb question.

I know I can write a script that will connect to my IMAP server and save all the folders and messages to a mySQL database, but can I take the contents of the database, and put those messages back again? I haven't been able to find anything like that. I am going to be switching web hosts and I don't have access to the files on the new mail server.

Thanks!
Chris Zeman

Reply With Quote
  #2  
Old June 25th, 2004, 04:50 PM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 653 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 47 m 52 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
are you having your emails stored into a database when they come into the mailserver? I know there are plugins that do that for you for some of them. Are you sure they are stored that way on your curent provider?

As for transferring them to another server I'm not sure about that, I don't have much experience going from one server to another with mail backups. What mail server do they use andw hat mail client are you using?

Reply With Quote
  #3  
Old June 25th, 2004, 09:08 PM
chris.zeman chris.zeman is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 2 chris.zeman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
No, they're currently stored in flat text files generated by the mail server. The current server is either Linux or Unix through Just-Hosting. I wanted to write a script that would put the emails in a database, but parsing the text files might be easier or a better route. I was hoping to find a way to connect to the new mail server and "synchronize" so noone loses their email. I setup Outlook Express with a few of the email accounts already connecting using IMAP. That might be the easiest way to go, I guess, but at the same time I'd like to come up with a way to automate the process and distribute the script to others in the same boat as myself.

Chris

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > PHP and IMAP - Restoring Messages


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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 On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway