Re: SM Email Rendering Engine Outside of SM

Joshua Megerman <[email protected]>
Newsgroups gmane.mail.squirrelmail.devel
Organization Razer's Edge Productions
Message-ID <[email protected]>
On Thursday 08 May 2008 06:58:43 pm Paul Lesniewski wrote:
> On Thu, May 8, 2008 at 3:33 PM, Joshua Megerman
>
> <[email protected]> wrote:
> > Has anyone ever pulled the SM email rendering engine out for a standalone
> > project?
>
> I don't think so.  I don't even know what part of SM would qualify as
> the "email rendering engine".
>
Well, I'm thinking of the right pane code that's used when actually "reading" 
an email.  The part that can display either plain text or HTML, as well s 
stripping out attachments and allowing them to be viewed/downloaded.

> > I'm working on an email archive system that doesn't use IMAP,
> > and being able to view messages the way SM formats them (can show the
> > headers, view as either plain text or HTML, access the attachments) would
> > be really nice.  I'm quite fond of SM as a webmail system, and would love
> > to be able to use it for my current project since viewing anythign other
> > than plain text emails as plain text is going to give the non-technical
> > users fits :)
> >
> > Thanks in advance for any suggestions/pointers/etc.
>
> You'd probably have to replace all the IMAP functions in the various
> functions/imap_* files, replacing all the API calls with functions
> that access your custom mail store.  Some day in the future of the
> 1.5.x code, the IMAP backend will be modularized, and while the core
> assumption that you are using it with an IMAP server may not change,
> this may make an API swap-out a little more feasible.
>
OK, so if I want to do this, I'm probably on my own.  S'alright, it won't be 
the first time I've had to dig deep into unfamiliar code to figure out if 
something's possible :)  Thanks for the response!

Josh
-- 
Joshua Megerman
SJGames MIB #5273 - OGRE AI Testing Division
You can't win; You can't break even; You can't even quit the game.
  - Layman's translation of the Laws of Thermodynamics
[email protected]

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
-----
squirrelmail-devel mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [email protected]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.