Forum OpenACS Development: acs_mail_lite::load_mails

Request notifications

Collapse
Posted by Iuri Sampaio on
I am trying to use ad_proc acs_mail_lite::load_mails to read incoming messages, but postfix is installed with mbox format.

Moreover acs_mail_lite::load_mails is unable to find the messages. Because there isn't such a queue_dir as in:

if {[catch {
set messages [glob "$queue_dir/new/*"]
} errmsg]} {

What should I do?

Do I need to change to Maildir format?

if not,

How could I read the messages through IMAP or POP3 and load them into the system?

Collapse
Posted by Dave Bauer on
You can change to maildir format, that is the easiest solution.

If you want to try to use mbox format check out this post http://openacs.org/forums/message-view?message_id=130443 which refers to a shell script that can convert the mails to the proper format for acs_mail_lite::load_mails.

Collapse
Posted by Iuri Sampaio on
Thanks Dave.

I changed to Maildir format and executed a shell script to convert all existing users to it.

http://rimuhosting.com/knowledgebase/linux/mail/Postfix%20mbox%20to%20Maildir%20conversion