firemail

标题: 协议相关解析 [打印本页]

作者: hechengjin    时间: 2016-3-13 21:54
标题: 协议相关解析
------------nsParseMailbox.cpp-------------
case 'R': case 'r':
      if (!PL_strncasecmp ("References", buf, end - buf))
        header = &m_references;
      else if (!PL_strncasecmp ("Return-Path", buf, end - buf))
        header = &m_return_path;
      // treat conventional Return-Receipt-To as MDN
      // Disposition-Notification-To
      else if (!PL_strncasecmp ("Return-Receipt-To", buf, end - buf))
        header = &m_mdn_dnt;
      else if (!PL_strncasecmp("Reply-To", buf, end - buf))
        header = &m_replyTo;
      else if (!PL_strncasecmp("Received", buf, end - buf))
      {
        header = &receivedBy;
        header->length = 0;
      }
      break;


---------nsMsgDBView.cpp------

case 'r':
    if (aColumnName[3] == 'i') // recipient
      rv = FetchRecipients(msgHdr, aValue);
    else if (aColumnName[3] == 'e') // received
      rv = FetchDate(msgHdr, aValue, true);
    break;
  case 'd':  // date
    rv = FetchDate(msgHdr, aValue);
    break;





欢迎光临 firemail (http://firemail.wang:8088/) Powered by Discuz! X3