Roundcube Community Forum

Miscellaneous => Roundcube Discussion => Topic started by: Huibert on May 02, 2018, 06:34:07 AM

Title: Use Roundcube for file based mails
Post by: Huibert on May 02, 2018, 06:34:07 AM
Hi there,
I would like to use the roundcube system to display on web an email that I have in a file, not in any pop3 or imap. So just a Linux based file with the mailmessage inside to be displayed when a user types https://something.com/?_task=mail&_uid=123456&_action=show. Obviously my hack should respond to the right _uid message id to display the right mail.
I found a possible location in the ./program/steps/mail/func.inc file, but maybe there is a better place? Anyone tried this? Or can you build/config a mail provider to replace pop3/imap?
Rgds, Huibert.

-edited-
For now I will use https://secure.php.net/manual/en/book.mailparse.php (https://secure.php.net/manual/en/book.mailparse.php). Pity Roundcube is not easily usable. - Rgds & Thanx.
Title: Re: Use Roundcube for file base mails
Post by: SKaero on May 02, 2018, 11:35:06 AM
Roundcube uses IMAP to fetch messages without isn't going to be simple. If you have an email in a file and you want to phrase it maybe you want to look at the Roundcube framework and build something custom to display the email.