SHARE
TWEET

Untitled

a guest Jan 20th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (?<=^Final-Recipient: rfc822;)(.*)$
  2.    
  3. grep "(?<=^Final-Recipient: rfc822;)(.*)$" *.bad >> emails.txt
  4.    
  5. start = emailbody.IndexOf("To:");
  6.  
  7.                         if (start < 0)
  8.                             start = 0;
  9.  
  10.  
  11.      string emailExpression = @"([a-zA-Z0-9_.]+)@([a-zA-Z0-9_.]+).([a-zA-Z]{2,3})";
  12.       System.Text.RegularExpressions.Regex regExp = new System.Text.RegularExpressions.Regex(emailExpression);
  13.  
  14.                         if (regExp.IsMatch(eamilbody, start))
  15.  
  16.                {
  17.                      System.Text.RegularExpressions.Match match = regExp.Match(emailbody, start);
  18.                             string email = match.Value;
  19.  
  20.                  }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top