cfpop - recognize original sender

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ronjambo
    New Member
    • Aug 2008
    • 4

    cfpop - recognize original sender

    Hi Community,

    i have a problem. I want to know the original sender, when I forward a message via Outlook.

    Example:
    Person A sends a message to person B. Person B forwards the message to person C. Person C gets the message via cfpop and wants to know the original sender (person A).

    I tried it with queryname.heade r but I only see person B (from) and person C (to). I also tried to forward the message via attachment but cfpop doesn't recognize the Outlook format.

    What can I do?
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Can you post the code that you've tried?

    Are you using getAll for the action?

    Comment

    • ronjambo
      New Member
      • Aug 2008
      • 4

      #3
      Code:
      <cfpop action="[B]GETALL[/B]" 
      	   name="qGetMessages" 
      	   messagenumber="#messagenumber#"
      	   server="#pop_server#" 
      	   username="#pop_user#" 
      	   password="#pop_password#" 
      	   attachmentpath="#attach_path#">
      
      <cfif qGetMessages.recordCount>
          <table width="100%" border="0" cellpadding="2" cellspacing="0">
            ...
      
              <cfoutput query="qGetMessages">
              <tr>
                  <td width="10%"><font size="2" face="Verdana">#qGetMessages.currentRow#</font></td>
                  <td width="20%"><font size="2" face="Verdana">#qGetMessages.from#</font></td>
                  <td width="40%"><font size="2" face="Verdana">#qGetMessages.subject#</font></td>
      			<td width="40%"><font size="2" face="Verdana">#qGetMessages.attachments#</font></td>
      			<td width="40%"><font size="2" face="Verdana">#qGetMessages.attachmentfiles#</font></td>
      			<td width="40%"><font size="2" face="Verdana">[B]#qGetMessages.header#[/B]</font></td>
      			<td width="40%"><font size="2" face="Verdana">#qGetMessages.date#</font></td>
      			<td width="40%"><font size="2" face="Verdana">#qGetMessages.to#</font></td>
             </tr> 
             </cfoutput>          
             ...
         </table>
      </cfif>

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        Does qGetMessages.he ader contain the original sender within the long strings on each row? If so, you'll need to parse it to get the information.

        Comment

        • ronjambo
          New Member
          • Aug 2008
          • 4

          #5
          Originally posted by acoder
          Does qGetMessages.he ader contain the original sender within the long strings on each row? If so, you'll need to parse it to get the information.
          No, that's the problem! It contains only the address from the forwarder.

          Comment

          • acoder
            Recognized Expert MVP
            • Nov 2006
            • 16032

            #6
            Well, if it's not contained in the header, I can't think of any way that you could get that information.
            What does something like this show?
            [code=cfm]<cfoutput query="qGetMess ages">
            #qGetMessages.h eader#
            <hr>
            </cfoutput>[/code]Just replace any sensitive information.

            Comment

            • ronjambo
              New Member
              • Aug 2008
              • 4

              #7
              Received: from foo.bar.example (port-xx-xxx-xxx-xxx.static.foo. com [xx.xxx.xxx.xxx]) by mail.foobar.com (IceWarp 9.3.1) with ASMTP id KTF0815 for ; Thu, 04 Sep 2008 12:01:42 +0200 From: "ronjambo" To: Subject: WG: test Date: Thu, 4 Sep 2008 12:01:54 +0200 Message-ID: <001a01c90e75.. .0$ceabc340$@ro njambo@foobar.c om> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_ 001B_....086CBB C0" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AckOdRx....+yaQ/+lli7LzV9JZAAAB zhg Content-Language: en


              Message was from another person...

              Comment

              • acoder
                Recognized Expert MVP
                • Nov 2006
                • 16032

                #8
                I'm not sure exactly how this works, but have you checked the attachment contents for the rest of the headers. If it's not contained there, then this info. is probably not attainable.

                Comment

                Working...