Connecting Tech Pros Worldwide Forums | Help | Site Map

cfpop - recognize original sender

Newbie
 
Join Date: Aug 2008
Posts: 4
#1: Aug 15 '08
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.header 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's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#2: Aug 15 '08

re: cfpop - recognize original sender


Can you post the code that you've tried?

Are you using getAll for the action?
Newbie
 
Join Date: Aug 2008
Posts: 4
#3: Sep 4 '08

re: cfpop - recognize original sender


Expand|Select|Wrap|Line Numbers
  1. <cfpop action="GETALL
  2.        name="qGetMessages" 
  3.        messagenumber="#messagenumber#"
  4.        server="#pop_server#" 
  5.        username="#pop_user#" 
  6.        password="#pop_password#" 
  7.        attachmentpath="#attach_path#">
  8.  
  9. <cfif qGetMessages.recordCount>
  10.     <table width="100%" border="0" cellpadding="2" cellspacing="0">
  11.       ...
  12.  
  13.         <cfoutput query="qGetMessages">
  14.         <tr>
  15.             <td width="10%"><font size="2" face="Verdana">#qGetMessages.currentRow#</font></td>
  16.             <td width="20%"><font size="2" face="Verdana">#qGetMessages.from#</font></td>
  17.             <td width="40%"><font size="2" face="Verdana">#qGetMessages.subject#</font></td>
  18.             <td width="40%"><font size="2" face="Verdana">#qGetMessages.attachments#</font></td>
  19.             <td width="40%"><font size="2" face="Verdana">#qGetMessages.attachmentfiles#</font></td>
  20.             <td width="40%"><font size="2" face="Verdana">#qGetMessages.header#</font></td>
  21.             <td width="40%"><font size="2" face="Verdana">#qGetMessages.date#</font></td>
  22.             <td width="40%"><font size="2" face="Verdana">#qGetMessages.to#</font></td>
  23.        </tr> 
  24.        </cfoutput>          
  25.        ...
  26.    </table>
  27. </cfif>
  28.  
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#4: Sep 4 '08

re: cfpop - recognize original sender


Does qGetMessages.header contain the original sender within the long strings on each row? If so, you'll need to parse it to get the information.
Newbie
 
Join Date: Aug 2008
Posts: 4
#5: Sep 4 '08

re: cfpop - recognize original sender


Quote:

Originally Posted by acoder

Does qGetMessages.header 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.
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#6: Sep 4 '08

re: cfpop - recognize original sender


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?
Expand|Select|Wrap|Line Numbers
  1. <cfoutput query="qGetMessages">
  2.     #qGetMessages.header#
  3.     <hr>
  4. </cfoutput>
Just replace any sensitive information.
Newbie
 
Join Date: Aug 2008
Posts: 4
#7: Sep 4 '08

re: cfpop - recognize original sender


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$@ronjambo@foobar.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_001B_....086CBBC0" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AckOdRx....+yaQ/+lli7LzV9JZAAABzhg Content-Language: en


Message was from another person...
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#8: Sep 4 '08

re: cfpop - recognize original sender


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.
Reply