[Vtigercrm-commits] [vtiger development] #7147: MailConverter fetch marks message as read in the mailbox
vtiger development
vtiger-tickets at trac.vtiger.com
Mon Oct 3 06:40:55 PDT 2011
#7147: MailConverter fetch marks message as read in the mailbox
-------------------------+--------------------------------------------------
Reporter: prasad | Owner: developer
Type: known issue | Status: new
Priority: minor | Milestone: Unassigned
Component: vtigercrm | Version: 5.2.1
Keywords: |
-------------------------+--------------------------------------------------
Some IMAP server will mark message as SEEN when IMAP API (like FETCH
etc... are used).
Reference:
http://groups.google.com/group/comp.mail.imap/browse_thread/thread/bf6e0892d2d05788?pli=1
'''WORKAROUND FIX'''
File: modules/Settings/MailScanner/core/MailBox.php
{{{
function markMessage($messageid) {
$markas = $this->_scannerinfo->markas;
if($this->_imap && $markas) {
if(strtoupper($markas) == 'SEEN') $markas = "\\Seen";
imap_setflag_full($this->_imap, $messageid, $markas);
}
// FIX: Forcing message to be marked as unread
else {
$markas = "\\Seen";
imap_clearflag_full($this->_imap, $message, $markas);
}
// END
}
}}}
NOTE: We are attempting mark the mailrecord as unseen, this would affect
even when fetching a message that was seen earlier by other mail clients.
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7147>
vtiger development <http://trac.vtiger.com/>
vtigerCRM
More information about the vtigercrm-commits
mailing list