IP-address in email header

Hi,
does anybody know how to get the ip-addresses in an email header?
Yes, I know there is a method called getfrom(), but there, you only get the senders email address. My problem is to get the ip-address from the mail server the email was send from.
thank you very much for replying

Maybe i have to be a little bit precise,
the aim is to extract the first ip-address, that is in the header - this is for identify the location the email is coming from.
my idea was to parse the complete message with a regular expression in order to find the first appearance of an ip-address. Maybe somebody has another idea, is there a possibility to only write the email-header to a string? This would be more efficient...
Thanks...

Similar Messages

  • Extract email addresses from email header - Sender (From) - Mail

    Hi!
    I would like to extract email addresses from email header from field "Sender (From)" and from email body in Mail at the same time.
    I saw only scripts how to extract from email body.
    I get emails asking for some informations about product and many people don't include their email address in the body, so I have to extract from email header as well.
    I would like to extract email addresses from whole email account, separate alphabeticaly, delete duplicates and save it (separated by comma) in text file.
    This I would use for sending massive email to all customers. 
    I'm on OSX 10.6.8.
    Do you have please somebody script for extracting email addresses in the way:
    1. select mail account
    2. run script
    3. save email addresses to txt file
    Thank you for help and advise!

    Hi Neville!
    Last time I was writing basic programs in Turbopascal in 1996.
    Maybe I'm doing something wrong...
    1. I switched off in Mail "Use Smart Addresses".
    2. I changed the path to my account in both commands:
    Command A.
    i=~/Library/Mail/[email protected]@pop.gmail.com # Input file path
    o=~/Desktop/ # Output file path
    n=`date "+%y%m%d%H%M%S"`-"addresses" # time stamped file name
    grep -rh From: $i | grep -o '[-a-zA-Z0-9.]*@.[^>]*' | awk '!seen[$0]++' > $o$n
    Command B.
    grep -rh From: ~/Library/Mail/[email protected]@pop.gmail.com | grep -o '[-a-zA-Z0-9.]*@.[^>]*' | awk '!seen[$0]++' > ~/Desktop/`date \"+%y%m%d%H%M%S\"`"
    3. I write commands in TERMINAL.
    result of Command A:
    List of couple emails same like before switching of "Use Smart Addresses"
    I answered it already above:
    It can extract to .txt file only email addresses from email header which includes after the name as well email address.
    Example:
    From: Neville Hillyer <[email protected]>
    If there is in header only the name without the email address then it's not extracted (email is visible after secondary click on the name)
    Example:
    From: Neville Hillyer
    I just checked that most of emails I have has in the emailheader only the name without the email address so I miss most of email addresses.
    Result of Command B:
    >
    And nothing going on...
    4. I tried the same in AppleScript editor
    Result of Command A:
    Syntax error. A unknown token can’t go after this identifier.
    I changed the path but I still get syntax errors
    (instead of i=~/Library... i put i= Users/muzaa/Library...)
    Result of Command B:
    Syntax error: A “from” can’t go after this identifier.
    grep -rh From: /Users/radimmuzikant/Library/Mail/[email protected]@pop.gmail.com | grep -o '[-a-zA-Z0-9.]*@.[^>]*' | awk '!seen[$0]++' > ~/Desktop/`date \"+%y%m%d%H%M%S\"`"

  • Custom Address List - Email Header in IC Web Client

    Hello,
    I wanted to check if there is a possibility to provide users
    with a custom address list wherein we can have our own set of email addresses
    to choose from for sending the email through SAP CRM.
    Currently I am aware that three types of address lists
    mentioned below are possible.
    CRM Addresses ( BP Address)
    MS Outlook
    Lotus Notes
    The requirement came up, as my customer’s call center
    employees do not have official email ids & hence outlook or lotus notes
    integration is not possible.  Every time
    if they want to send an email to any internal employee through SAP CRM, they
    have to manually enter email ids which they find it bit uncomfortable.
    Any guidance will be appreciated.
    Regards, Mathy

    Hi Ragav,
    Creating a DL will not suffice the requirement here. Recipient IDs are not always the same.
    Regards, Mathy

  • Script to populate email address in Order Header attachment

    Hi Experts,
    I need a help for inserting Order header attachment. We have email address of the customer stored in Order Header attachment in Short text / Long Text under the Category: Customer Email Address.
    I need a PLSQL script which created the email address in the header attachment.
    Thanks in Advance.
    Yuvaraaj.

    Figured out. It can be done using the API oe_atchmt_util.add_attachment
    Thanks,
    Yuvaraaj.

  • CRM Email Header - From Address

    How do I update the CRM Email header "From Address" with the individual names of our Call Center Agents?

    Hi Micheal,
    It is by design BUG-OM 537040. In Exchange 2013 for a Read Receipt Response on the P2 header's From Address it just has the User Alias it doesn't have the Complete Email Address, but on previous versions it is not the case it has the complete email address.
    When this Response from external address is sent and if it goes through an External Anti-spam like postini,messagelabs,ironport etc., since  it doesn't find the complete address it adds @domain.invalid and processes the message further so the Recipient
    of the message will have the Sender address showing as
    [email protected] and also it will say so and so mail not authorized.
    please refer the below link  for your reference
    http://social.technet.microsoft.com/Forums/exchange/en-US/8f5c1570-d3df-4ba9-9e72-bd2d6bee0b3b/microsoft-exchange-2013-read-receipt
    Please mark as helpful if you find my contribution useful or as an answer if it does answer your question.
    That will encourage me - and others - to take time out to help you.
    Regards,
    Sathish

  • Email $header problem - need help

    I have designed a mail processing script to send POST data
    captured by a form to an email address specified by $to. It has a
    subject line ($subject). Now I want to add a ‘from’
    line which is to contain the email address submitted as one of the
    POST form fields (volunteerEmailaddress). This is all done in PHP.
    I took a crack at it (see below). The $to line and the
    $subject lines work just fine. The $header displays fine in the
    email but only the first piece (From: Volunteer Applicant), not the
    second piece (volunteerEmailaddress).
    Can anyone see what I have coded incorrectly and suggest the
    correct code to do this?
    Thanks!
    Carver
    //mail processing script
    $to = '[email protected]';// use your own email address
    $subject = 'Volunteer Application';
    // create additional headers
    $headers = 'From: Volunteer Applicant';
    if (!empty($email)) {
    $headers .= '\r\nReply-To: $volunteerEmailaddress';

    CarverW wrote:
    > Regarding email header injection attacks -- I have
    followed the tutorials in
    > your book and have in the include file what you have in
    your book in the file
    > process_mail.inc.php
    That should be fine. A lot of people just pick up scripts
    from outdated
    books or websites. So I wanted to make sure you were aware of
    the
    potential danger. You obviously are. ;-)
    > Your book has been excellent for my "learing curve" The
    'agony' of Chapter 10
    > was well worth it. I DO have a basic understanding,
    pretty much of each code
    > line but do get caught up in the syntax when I
    customize!
    Thanks for the feedback. I promise, the agony does eventually
    turn into
    pleasure - at least it does for most people.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Remove or change photo in email header

    How do I remove or change my photo located in the email header? Doesn't seem to being the preferences dialogue?

    I had the same issue and found that the picture was attached to my card in my address book. I found instructions to add a picture, but not delete. So I deleted my card and made a new card without the picture.

  • Wrong email header encoding, how to modify it?

    Hi, I have a 3rd party server that sends out automated alerts via exchange to external addresses. Emails all get sent out fine except the ones sent to a specific domain. I talked with the external domain provider and was told that our system is sending out
    8bit emails but the header specifies 7bit and because of that the emails were rejected. I then talked to our vendor for the automated system and was told that they were aware of the problem but weren't going to do anything about it.
    So..... is it possible to modify the header for emails sent from that server to that domain to force it to use 8bit? I tried playing around with transport rules and setting the content-transfer-encoding but although the rule is applied is doesn't seem to
    help. I figure I'm missing another setting or I'm doing something wrong. I've been reading up on email encoding but it's a little confusing.
    Thank you.

    Hi,
    Please refer to the following article:
    Change the Method for 7-bit Transfer Encoding
    Use Windows Explorer and Notepad to change the method for transfer encoding
    You need to be assigned permissions before you can perform this procedure. To see what permissions you need, see the "Hub Transport server" entry in the
    Transport Permissions topic.
    On the Exchange 2010-based server running the Hub Transport server role, start Windows Explorer.
    Locate the following folder, in which <drive> represents the actual installation drive:
    <drive>:\Program Files\Microsoft\Exchange Server\V14\Bin.
    Make a backup copy of the EdgeTransport.exe.config file, and name the backup file copy
    EdgeTransport.exe.config.old.
    Start Notepad, and then open the EdgeTransport.exe.config file.
    Locate the following line between the <appsettings> tag and the
    </appsettings> tag.
    Copy
    <add key="ByteEncoderTypeFor7BitCharsets" value="1" />
    If this line doesn't exist in this location, insert the line between the <appsettings> tag and the
    </appsettings> tag.
    Change the value described in the line to an appropriate value from the table in "Values to Change the Method for Transfer Encoding" later in this topic. This value controls the MIME encoding behavior.
    Save the changes, and then exit Notepad.
    Start the Microsoft Exchange Transport service.
    Hope this helps!
    Thanks.
    Niko Cheng
    TechNet Community Support

  • I cannot send email - error message as follows : 'The sender address (my email address) was rejected by the server smtp.tiscali.co.uk.' I can send email from other apple devices, and the email settings are identical. Any ideas?

    For some reason I cannot send email - all was working fine, but now I get the following error message when I try to send email:
    'The sender address (my email address) was rejected by the server smtp.tiscali.co.uk'
    I can receive incoming mail ok and I can send email from other Apple devices. The problem seems confined to my Mac Book Pro.
    Ant ideas?

    Hello there, Pablo639.
    The following Knowledge Base article offers up some great steps for troubleshooting mail issues on your Mac:
    OS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/kb/TS3276
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • I have a problem with mail autofilling info email addresses. Emails sent to me the from looks like this: Holiday in the United States email address . I have no idea what this Holiday in the United States is...How can I fix/change to my name?

    I have an irritating problem with mail autofilling info in email addresses. Emails sent to me the from looks like this: Holiday in the United States <my email address>. I have no idea what this Holiday in the United States is or how it got to be there...How can I fix/change to my name?
    I fixed the To: autofilling incorrectly by deleting my email address from the Previous Recipients List, but is there a way to stop that from coming up on emails that I receive?

    Have you checked your Mac address book? If your email is saved somewhere in your address book with the name "Holidays in the United States" it might be adding the name automatically in Mac Mail.
    Alternatively, try this:
    Delete an Email Address from Auto-Complete in Mac OS X Mail
    To remove an email address from the auto-complete list in Mac OS X Mail:
    Start typing the recipient's address or name in a new message.
    Select the desired address from the auto-complete list as if you'd compose an email to them.
    Click the small down arrow in the recipient.
    Select Remove from Previous Recipients List from the menu.
    You can also search for the unwanted address directly in the previous recipients list:
    Select Window | Previous Recipients from the menu in Mac OS X Mail.
    Highlight the address you want to remove.You can highlight multiple addresses by holding down the Command key.
    Click Remove from List.
    Source: About.com

  • HT4519 sometimes when I send a mail it will go regardless of location or whether it has attachments, but more often than not they won't go and the message " a copy has been placed in your outbox. The sender address "my email blah blah was rejected by the

    Sometimes when sending a mail it will go more often it won't go, it doesn't seem to be relevant  to my geographic position and the message" a copy has been placed in your Outbox. The sender address" my email blah blah" was rejected by the server"     . Any ideas?

    Check the outgoing mail server setting. Make sure that your username and password are in there.
    Settings>Mail, Contacts, Calendars>Your email account>Account>Outgoing mail server - tap the server name next to SMTP and check in the primary server and make sure your username and password are entered and correct - even if it says that the password is optional.

  • Update address-dependent email field on save of BP

    We have a requirement to update the address-dependent email field from the address-independent email field upon saving a Business Partner.
    I've been working on the 'BUPA_ADDR_UPDATE' BADi but am having no luck with it so far. I have managed to retrieve the data in the address-independent email field using the 'BUPA_CENTRAL_GET_DETAIL' Function Module but as yet have not been able to do the update of the address-dependent email field.
    Can anyone offer any guidance please ?
    thanks,
    Malcolm.

    Hi Malcolm,
    Try using the BADI : ADDR_UPDATE.
    Email is a part of the address management, so you would need an address badi.
    BUPA_ADDR_UPDATE is a business partner badi and only has the address reference - such as address number, validity, move date, etc..it will not help in cases where you need to work with address fields such as city, country, email,etc.
    Another approach :
    Try writing your code in PARTNER_UPDATE badi. This is called after save of BP. So you can probably trigger another update on the BP's address from here..
    Hope this helps you.
    Cheers,
    Rishu.

  • Setting Message-ID email header from Oracle B2B backend in 11g

    Hi,
    Is it possible to set the Message-ID from the backend application via JMS header? Is there a JMS header exposed to set this message id in case of email transport? Will the email server able to honor this value that we set and send to Oracle B2B in 11g and send it as the email header (Message-ID)? Is this possible?
    The idea here is if my backend application can set this Message-ID value of the request message, then the response message which would be a reply to the initial message will have the value of the Message-ID in the property in-reply-to. Now if this in-reply-to is also exposed an a JMS header to the backend application, then i will be able to co-relate the request and the response messages.
    Please let me know at the earliest if this would be possible.
    Regards
    Kavitha

    Kavitha,
    Is it possible to set the Message-ID from the backend application via JMS header? Yes, please set the MSG_ID header (jca.jms.JMSProperty.MSG_ID). It will be used as Message-ID in Wire Message.
    , then i will be able to co-relate the request and the response messages.Generic Mail does not support correlation as of now. You may consider logging an enhancement request with support. If you are exchanging XML messages then you may consider using content based correlation at B2B.
    Regards,
    Anuj

  • Iphoto allows you to share photos by selecting them and then emailing as an attachment.  I'm not able to do that now, curser isn't appearing in the email address box when I attempt to address my email.  Photos are attaching but not able to include an addr

    iphoto allows you to share photos by selecting them and then emailing as an attachment.  I'm not able to do that now, curser isn't appearing in the email address box when I attempt to address my email.  Photos are attaching but not able to include an address.

    Windows Phone 8.1 is so full of surprises and opens the Windows Phone faithful up to a new world of apps.
    Video editors and
    file managers are just some of the new app categories possible thanks to Windows Phone 8.1. We’ve seen an official video editing app from Microsoft already, but today we finally get Files – the official file manager for Windows Phone.

  • Removal of picture in email header

    My problem is that emails sent from my iMac (or the Macbook that I also have, also running 10.5.3) are received on PC with an attachment with the suffix .att.
    I believe this is the dragonfly picture that appears in my AddressBook entry and also in the headers of my emails. The dragonfly appears on my email header when it's received on another Mac, but it does not appear as a picture when received by a PC.
    I cannot remove it.
    I have tried editing the AddressBook entry but cannot delete it from there, either. I can change it to a different picture, but I can't get rid of it entirely.
    I have seen it suggested that I could create a blank .jpg file and put that into my AddressBook entry instead of the dragonfly. However it would still be a file, and show up in a PC as an inexplicable attachment.
    Can I simply be an administrator with no picture at all?

    I'm using 10.5.3 and the account photo is included on all of my outgoing emails. I'm trying to get it removed as well. There doesn't seem to be an option for that. Your idea for selecting a jpg that you've photoshopped to have just a white background may be the ticket.
    To change out a picture, go to System Prefs, select Accounts, make sure the Password tab is active. Click on the actual photo shown (which is the one on all your emails) and other options appear. Click edit picture and you'll get the opportunity to change it out. But not remove it, as far as I've been able to tell. Browse for your white jpg and choose it.
    Good luck! It's disruptive having a cutesy photo—or any photo at all—at the top of all my biz emails!

Maybe you are looking for

  • Problem with Input out put parametes of IViews in callable objects

    Dear Friends, I have designed model which contains 2 IViews Apply leave IViews Approve leave Iviews In both the cases i have exposed the in & out parameters using start & end point. Finally deployed in portal successfully Guided procedures ->Design T

  • How to display the drill through report in a new browser seperate window

    Hello All, I am working on a drill through report which should run when I select the column value from the main report. The drill through report I am working on is Centerline Validate Angles for a specific line. It has 2 parameters, Pods ID and Angle

  • Using a param in a IN clause

    I would like to pass a parameter to a stored proc and then use that in a select that defines a cursor. Something like this: create or replace PROCEDURE ImportStuff (p_criteria IN VARCHAR2) AS cursor c_SelectedItems IS Select * FROM stg_Items Where co

  • Af:panelPage not found in Component Palette

    Hi All, I am using JDeveloper 11.1.1.5.0. I am following a hands-on tutorial in book "Oracle JDeveloper for Forms and PLSQL developers" which is using Oracle JDeveloper 10g. It is using af:panelPage facet which is not available in JDeveloper 11g. Can

  • OIM Rejected Task Retry not working.

    Hi, I am trying to have a process task for a custom adapter retry itself if it gets rejected. I have set the process task attributes "Retry Period in Minutes" and "Retry Count" as sad in the documentation. But the rejected task are not getting retrie