Welcome Guest, Not a member yet? Register   Sign In
New IMAP library!
#14

[eluser]PromaneX[/eluser]
Thanks for this code, it works really well. The only issue I have is that when i ask for a list of the messages so that i can show an overview on the inbox, it marks all the messages as read, is there a way to get a the list of messages without it marking them all read?

cheers

Code:
$this->data['title'] = "Optra Mail";
        $this->data['connected'] = FALSE;
        $this->load->view('header_view',$this->data);
        $this->load->view('pagetop_view',$this->data);
        $this->load->library('imap');
        // build login data
        $query=$this->db->get_where("users",array('users.id' => $this->session->userdata('id')));
        $userdata = $query->row();

        if($this->imap->connect($userdata->email_user.'+vdomain.net', $userdata->password, "vdomain.net"))
        {
            $this->data['connected'] = TRUE;
            $this->data['mailbox'] = $this->imap->mailbox_info('array');
            $this->data['messages'] = $this->imap->msg_list();
        }


        $this->load->view('email_view',$this->data);
        $this->load->view('footer_view',$this->data);


Messages In This Thread
New IMAP library! - by El Forum - 04-06-2009, 12:36 PM
New IMAP library! - by El Forum - 04-06-2009, 01:51 PM
New IMAP library! - by El Forum - 04-06-2009, 01:56 PM
New IMAP library! - by El Forum - 04-06-2009, 02:11 PM
New IMAP library! - by El Forum - 04-06-2009, 02:50 PM
New IMAP library! - by El Forum - 04-06-2009, 03:12 PM
New IMAP library! - by El Forum - 04-06-2009, 03:38 PM
New IMAP library! - by El Forum - 04-06-2009, 04:44 PM
New IMAP library! - by El Forum - 04-06-2009, 05:03 PM
New IMAP library! - by El Forum - 04-06-2009, 05:38 PM
New IMAP library! - by El Forum - 04-07-2009, 09:11 AM
New IMAP library! - by El Forum - 06-28-2009, 09:36 AM
New IMAP library! - by El Forum - 06-29-2009, 09:50 AM
New IMAP library! - by El Forum - 09-28-2009, 07:58 AM
New IMAP library! - by El Forum - 09-28-2009, 08:18 AM
New IMAP library! - by El Forum - 09-28-2009, 08:29 AM
New IMAP library! - by El Forum - 09-28-2009, 04:16 PM
New IMAP library! - by El Forum - 09-28-2009, 06:10 PM
New IMAP library! - by El Forum - 12-02-2009, 10:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB