RoundCube Webmail Forum  

Go Back   RoundCube Webmail Forum > Release Support > Release Discussion

For more information about the ads and why they're here, please see the FAQ
Reply
  #1  
Old 09-29-2007, 12:13 PM
Registered User
 
Join Date: Apr 2007
Posts: 31
Downloads: 0
Uploads: 0
Default Can't download multipart message body to database??????

Hi guys I need some help right here.. I'm tweaking roundcube mail so that at the click on a button a selected message is copied from the mail server into a table on my local database. SO far I've made a couple of tweaks so that it takes a copy of the mail headers from the mail server and it copies teh headers .. but I can't find the way to copy the message body and attachments and message parts as well to the database.

Which function is used to retrieve the message body and attachment information from the mail server? Right now what my patch does is that when the message is selected and my custom button clicked - it first takes a copy of the mail header with the code :

$headers = $this->get_headers($one_uid, $key);

And then I make it insert into the database with own custom function. I've made my own little tweaks to retrieve the message headers from the database as well.

But I'm not so sure about how to retrieve the message body part and what should I do with messages that are mimetype or have multiparts. Currently the following code just returns raw basic text and doens't work for multipart emails.

$headers->structure = &$this->get_body($one_uid);

What do I need to do to also download attachments and put the attachments in the database as well as download the whole mail structure?

Any help would be greatly appreciated...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

For more information about the ads and why they're here, please see the FAQ

All times are GMT. The time now is 10:20 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright © 2006-2008 RoundCube Webmail Community