Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: auto import of existing email Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
rob
Groupie
Groupie


Joined: 03 September 2008
Location: Canada
Online Status: Offline
Posts: 60
Posted: 16 September 2008 at 1:40pm | IP Logged Quote rob

Hello,

Do you have a script example to show us how we can import email directly into the database instead of relying on the webmail pro system to fetch it from a mailserver?

For example, we have a large amount of email messages residing in qmail Maildir directories that we need to import into the database, and something like the following would be really helpful:

$folderId = '1'; // Inbox for example
foreach($rawEmails as $email) {
processEmail($email,$folderId);
}

where the 'processEmail' would be a function that we pass the raw message to that would then parse it properly into its components and perform the necessary database insertions into the awm_messages and awm_messages_body tables.

We have been trying to use the built-in method of retrieving the email upon login, but keep running into timeout/memory issues or something as we have thousands of emails to import.

Please advise,
Look forward to your response.

Rob

Back to Top View rob's Profile Search for other posts by rob
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 17 September 2008 at 3:40am | IP Logged Quote Andrew

We've e-mailed you a simple example.

Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 
rob
Groupie
Groupie


Joined: 03 September 2008
Location: Canada
Online Status: Offline
Posts: 60
Posted: 17 September 2008 at 4:41pm | IP Logged Quote rob

With additional tweaking on our end this solution is working exactly as needed. It's a little slow to import 14000 emails, but considering everything that is being processed it is understandable.

Thanks again.
Back to Top View rob's Profile Search for other posts by rob
 
rbwcgi
Newbie
Newbie
Avatar

Joined: 11 January 2011
Location: Italy
Online Status: Offline
Posts: 2
Posted: 11 January 2011 at 6:45am | IP Logged Quote rbwcgi

Hello,

We are evaluating webmail pro and we are considering the purchase, btw we would be glad to have a little support for importing the received and sent emails with all folders for a bunch of users, which uses outlook express.

We would be glad to know if there is any kind of script or aoutomation that can do the thing.

Kind regards
Rbw cgi
Back to Top View rbwcgi's Profile Search for other posts by rbwcgi
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 11 January 2011 at 6:47am | IP Logged Quote Igor

As long as we are speaking of IMAP accounts used on bouth Outlook and WebMail
Pro, folders and email messages will be retrieved just fine. Currently, there's
no other way to do that.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
rbwcgi
Newbie
Newbie
Avatar

Joined: 11 January 2011
Location: Italy
Online Status: Offline
Posts: 2
Posted: 11 January 2011 at 7:11am | IP Logged Quote rbwcgi

Hello thanks for the quick advice.

What we want to do is exactly what the first posting user was asking, your colleague emailed a simple script example to the user, can we have a copy of that ?

is there any other way to "import" the emails of any user we have ?

Kind regards.
Rbw cgi
Back to Top View rbwcgi's Profile Search for other posts by rbwcgi
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 11 January 2011 at 7:15am | IP Logged Quote Igor

That was ages ago, and it wouldn't work for current WebMail Pro architecture. The only way we could suggest is
to study the database and filesystem storage architecture used in WebMail Pro, to write a migration script;
or, order one from our Professional Services team.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide