Changeset 5182


Ignore:
Timestamp:
11/17/11 13:31:55 (12 years ago)
Author:
acoutinho
Message:

Ticket #2322 - Inconsistencia na selecao e marcacao de mensagens como nao lidas

Location:
trunk/expressoMail1_2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.imap_functions.inc.php

    r5177 r5182  
    39523952                $return["flag"] = $flag; 
    39533953 
     3954                $return["msgs_not_to_set"] = ""; 
     3955                         
    39543956                if(!$this->mbox && !is_resource($this->mbox)) 
    39553957                        $this->mbox = $this->open_mbox($folder); 
    3956  
    3957                 if ($flag == "unseen") 
    3958                         $return["status"] = imap_clearflag_full($this->mbox, $msgs_to_set, "\\Seen", ST_UID); 
    3959                 elseif ($flag == "seen") 
    3960                         $return["status"] = imap_setflag_full($this->mbox, $msgs_to_set, "\\Seen", ST_UID); 
    3961                 elseif ($flag == "answered"){ 
     3958                if ($flag == "unseen"){ 
     3959                        $return["msgs_to_set"] = ""; 
     3960                        $msgs = explode(",",$msgs_to_set); 
     3961                        foreach($msgs as $men){ 
     3962                                if (imap_clearflag_full($this->mbox, $men, "\\Seen", ST_UID)) 
     3963                                        $return["msgs_to_set"] .= $men.","; 
     3964                                else 
     3965                                        $return["msgs_not_to_set"] .= $men.","; 
     3966                        } 
     3967                        $return["status"] = true; 
     3968                }elseif ($flag == "seen"){ 
     3969                        $return["msgs_to_set"] = ""; 
     3970                        $msgs = explode(",",$msgs_to_set); 
     3971                        foreach($msgs as $men){ 
     3972                                if (imap_setflag_full($this->mbox, $men, "\\Seen", ST_UID)) 
     3973                                        $return["msgs_to_set"] .= $men.","; 
     3974                                else 
     3975                                        $return["msgs_not_to_set"] .= $men.","; 
     3976                        } 
     3977                        $return["status"] = true; 
     3978                }elseif ($flag == "answered"){ 
    39623979                        $return["status"] = imap_setflag_full($this->mbox, $msgs_to_set, "\\Answered", ST_UID); 
    39633980                        imap_clearflag_full($this->mbox, $msgs_to_set, "\\Draft", ST_UID); 
     
    39994016                        } 
    40004017                } 
    4001  
     4018                 
     4019                if(($flag == "seen") || ($flag == "unseen")){ 
     4020                        if ($return["msgs_not_to_set"] != ""){ 
     4021                                $return["msgs_not_to_set"] = substr($return["msgs_not_to_set"], 0, -1); 
     4022                        } 
     4023                        if($return["msgs_to_set"] != ""){ 
     4024                                $return["msgs_to_set"] = substr($return["msgs_to_set"], 0, -1); 
     4025                        } 
     4026                } 
    40024027                if($this->mbox && is_resource($this->mbox)) 
    40034028                        imap_close($this->mbox); 
     4029                                                 
    40044030                return $return; 
    40054031        } 
  • trunk/expressoMail1_2/js/main.js

    r5178 r5182  
    24482448                        if(!data.msgs_unflageds) 
    24492449                                return; 
     2450                                 
    24502451                        else 
     2452                                if(data.msgs_not_to_set != "") 
     2453                                        write_msg(get_lang("Error processing some messages.")); 
     2454                                         
    24512455                                msgs_to_set = data.msgs_unflageds.split(","); 
    24522456                } 
  • trunk/expressoMail1_2/setup/phpgw_pt-br.lang

    r5180 r5182  
    730730It is not possible to add this contact as a recipient because it does not have email    expressoMail1_2 pt-br   Não é possível adicionar esse contato como destinatário, porque ele não tem e-mail 
    731731Unable to remove the message (s) of shared folders which you do not have permission.    expressoMail1_2 pt-br   Não foi possível remover as mensagens da(s) pastas compartilhadas as quais você não possui permissão. 
     732Error processing some messages. expressoMail1_2 pt-br   Erro ao processar algumas mensagens. 
Note: See TracChangeset for help on using the changeset viewer.