Author |
|
rob Groupie
Joined: 03 September 2008 Location: Canada
Online Status: Offline Posts: 60
|
Posted: 16 September 2008 at 1:40pm | IP Logged
|
|
|
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 |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 17 September 2008 at 3:40am | IP Logged
|
|
|
We've e-mailed you a simple example.
Best regards,
Andrew
|
Back to Top |
|
|
rob Groupie
Joined: 03 September 2008 Location: Canada
Online Status: Offline Posts: 60
|
Posted: 17 September 2008 at 4:41pm | IP Logged
|
|
|
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 |
|
|
rbwcgi Newbie
Joined: 11 January 2011 Location: Italy
Online Status: Offline Posts: 2
|
Posted: 11 January 2011 at 6:45am | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 11 January 2011 at 6:47am | IP Logged
|
|
|
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 |
|
|
rbwcgi Newbie
Joined: 11 January 2011 Location: Italy
Online Status: Offline Posts: 2
|
Posted: 11 January 2011 at 7:11am | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 11 January 2011 at 7:15am | IP Logged
|
|
|
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 |
|
|