Changeset 7258 for trunk


Ignore:
Timestamp:
09/20/12 15:22:12 (12 years ago)
Author:
douglasz
Message:

Ticket #3114 - Problema com Confirmação de leitura nas mensagens.

Location:
trunk/expressoMail1_2
Files:
3 edited

Legend:

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

    r7235 r7258  
    36413641        return $returns; 
    36423642} 
     3643    function verify_disposition_notification($msg){ 
     3644        $header = imap_fetchheader($this->mbox, $msg, FT_UID); 
     3645        $pattern = '/^[ \t]*Disposition-Notification-To:.*/mi'; 
     3646        if (preg_match($pattern, $header, $fields)) 
     3647            return true; 
     3648        else 
     3649            return false; 
     3650    } 
     3651 
    36433652        function set_messages_flag($params) 
    36443653        {                
     
    36673676                        $msgs = explode(",",$msgs_to_set); 
    36683677                        foreach($msgs as $men){ 
    3669                                 if (imap_setflag_full($this->mbox, $men, "\\Seen", ST_UID)) 
    3670                                         $return["msgs_to_set"] .= $men.","; 
    3671                                 else 
    3672                                         $return["msgs_not_to_set"] .= $men.","; 
     3678 
     3679                if($this->verify_disposition_notification($men)){ 
     3680 
     3681                    if(!array_key_exists('disposition_notification_to', $return)) 
     3682                        $return['disposition_notification_to'] = array(); 
     3683 
     3684                    $return["disposition_notification_to"][] = $men; 
     3685                }else{ 
     3686                    if (imap_setflag_full($this->mbox, $men, "\\Seen", ST_UID)) 
     3687                        $return["msgs_to_set"] .= $men.","; 
     3688                    else 
     3689                        $return["msgs_not_to_set"] .= $men.","; 
     3690                } 
    36733691                        } 
    36743692                        $return["status"] = true; 
  • trunk/expressoMail1_2/js/main.js

    r7245 r7258  
    32673267                        return; 
    32683268                var msgs_to_set = data.msgs_to_set.split(","); 
     3269 
     3270 
     3271        if(data.disposition_notification_to){ 
     3272            $.Zebra_Dialog(data.disposition_notification_to.length == 1 ? get_lang('One of his messages can not be marked as read, because it contains a read confirmation.') : data.disposition_notification_to.length + get_lang(' of its messages could not be marked as read, because it contains a read confirmation.'), { 
     3273                'type':     'warning', 
     3274                'overlay_opacity': '0.5', 
     3275                'buttons':  ['Fechar'] 
     3276            }); 
     3277        } 
    32693278 
    32703279                if(!data.status) { 
  • trunk/expressoMail1_2/setup/phpgw_pt-br.lang

    r7100 r7258  
    648648with some       expressoMail1_2 pt-br   com algumas 
    649649With the following message      expressoMail1_2 pt-br   Com a seguinte mensagem 
    650 Would you like to have a read receipt option to read messages?  expressoMail1_2 pt-br   Deseja apresentar opção de confirmação de leitura ao ler mensagem?       
     650Would you like to have a read receipt option to read messages?  expressoMail1_2 pt-br   Deseja apresentar opção de confirmação de leitura ao ler mensagem? 
    651651Would you like to keep archived messages?       expressoMail1_2 pt-br   Você gostaria de manter as mensagens arquivadas? 
    652652Would you like to use local messages?   expressoMail1_2 pt-br   Você gostaria de usar mensagens locais? 
     
    935935The contact was moved from recent contacts to personal contacts successful.     expressoMail1_2 pt-br   O Contato foi movido dos contatos recentes para os contatos pessoais com sucesso. 
    936936You can not remove the message with the preference 'Send to Trash' enabled. There is no permission to move messages to the trash folder.        expressoMail1_2 pt-br   Não é possível remover a mensagem com a preferencia 'Enviar para lixeira' ativada. Não existe permissão para mover mensagens para a pasta lixeira. 
     937One of his messages can not be marked as read, because it contains a read confirmation. expressoMail1_2 pt-br   Uma de suas mensagens não pode ser marcada como lida, pois contém uma confirmação de leitura. 
     938 of its messages could not be marked as read, because it contains a read confirmation.  expressoMail1_2 pt-br    de suas mensagens não puderam ser marcadas como lida, pois contém uma confirmação de leitura. 
Note: See TracChangeset for help on using the changeset viewer.