On 11-01-14 17:29, Алексей wrote:
>> To get a raw message from the database in 2.2 is really easy:
> Yes, I know. Thanks. I need to present a text I got from my database for
> an end-user in a mail interface (using no IMAP).

That is completely out of scope for DBMail. How you present your data in
a user interface is up to you.

>> contrib/dbmailclient..php and contrib/testdbmailclient.php
> Paul, do these scripts display unformatted message (as rfc2822)?

It doesn't display anything. Those files test and document the API
interface. The Message::view method does return the raw rfc2822 string
of a message (by doing a GET /messages/<ID>/view). How you process that
data, and turn it into something user-friendly is up to you.

For simple text/plain messages using the raw query result for
dbmail-2.2, or the GET call in 3.x, might be sufficient. For anything
more complicated than that you will need to parse the message itself.
Doing that will require some PHP add-on - since you appear to be using
php. Maybe Mailparse will help.

http://php.net/manual/en/book.mailparse.php


-- 
________________________________________________________________
Paul J Stevens       pjstevns @ gmail, twitter, github, linkedin

  * Premium Hosting Services and Web Application Consultancy *

           www.nfg.nl/i...@nfg.nl/+31.85.877.99.97
________________________________________________________________
_______________________________________________
DBmail mailing list
DBmail@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

Reply via email to