Author Topic: Use Roundcube for file based mails  (Read 2984 times)

Offline Huibert

  • Newbie
  • *
  • Posts: 1
Use Roundcube for file based mails
« 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. Pity Roundcube is not easily usable. - Rgds & Thanx.
« Last Edit: May 05, 2018, 03:42:27 AM by Huibert »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: Use Roundcube for file base mails
« Reply #1 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.