LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-30-2005, 12:59 PM   #1
Toadman
Member
 
Registered: Aug 2002
Location: Texas
Distribution: Ubuntu 14.04 LTS
Posts: 167

Rep: Reputation: 15
regex question


I'm looking for some help on a regex. Its function is to add the following
at the end of email headers:

X-SenderIP: 65.54.169.39
X-ASN: ASN-8075
X-CIDR: 65.54.160.0/19

It works fine with my main isp, Earthlink, however with my domain,
toadnet.com it has

X-SenderIP:
X-ASN: ASN-
X-CIDR: /

and the same is noted with mail from yahoo. The regex is the beginninig of
a larger formail recipe. I didn't write it, but I'm trying to troubleshoot
it. If someone could offer some advice I'd appreciate it.

SMTP_SERVER = EarthLink SMTP Server|by toadnet\.com \(8\.12\.11/8\.12\.11\)|
by mta[0-9]*\.mail\..*\.yahoo\.com

This is actually all on one line of course.

Thanks for any help

Chris
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sed / regex question whysyn Linux - General 3 06-28-2005 02:11 PM
Regex Help cmfarley19 Programming 5 03-31-2005 10:13 PM
ip address REGEX Robert0380 Programming 16 08-15-2003 01:00 PM
grep (possibly regex) question. mwtheobald Linux - Newbie 1 08-17-2002 03:05 PM
perl regex question JustinHoMi Programming 5 03-20-2002 07:46 AM


All times are GMT -5. The time now is 07:22 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration