10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have got a text
from each line, I need to fetch port only if there is an ip
a.text text and port=25
b.ip=(12.32.54.256) and port="52"
c.ip=(55.251.253.12) and port=25"
d.text text and port="5"
e.ip=(45.211.155.15) and port="457"
f.ip=(144.158.256.2) and port="588"
I know how to... (6 Replies)
Discussion started by: arpagon
6 Replies
2. Shell Programming and Scripting
Hi ,
I have a file where i have modifed certain things compared to original file . The difference of the original file and modified file is as follows.
# diff mir_lex.c.modified mir_lex.c.orig
3209c3209
< if(yy_current_buffer -> yy_is_our_buffer == 0) {
---
>... (5 Replies)
Discussion started by: breezevinay
5 Replies
3. Linux
first time poster here
Im pretty new to grep and linux in general and I spent pretty much all day yesterday researching and coming up with a grep command to help with my university project. I am attempting to create a proof of concept bash script to scan the network using ngrep, find appropriate... (7 Replies)
Discussion started by: scottish_jason
7 Replies
4. Shell Programming and Scripting
Hello everybody,
I have been looking around but can't figure how to do a grep command, that find the text between multiple patterns, example:
(pattern1 OR pattern2) AND (pattern3 OR pattern4) text that I want (pattern5 OR pattern6) AND (pattern7 OR pattern8)
So how do I find the "text... (4 Replies)
Discussion started by: Benou
4 Replies
5. Shell Programming and Scripting
Removed (15 Replies)
Discussion started by: saisneha
15 Replies
6. Programming
Hello. This shouldn't be an unusual problem, but I cannot find anything about it at google or at other search machine.
So, I've made an application using C++ and QtCreator. I 've made a new mime type for application's project files.
My system (ubuntu 10.10), when I right click a file and I... (3 Replies)
Discussion started by: hakermania
3 Replies
7. Shell Programming and Scripting
Hi,
I want to search multiple patterns in a variable.
DB_ERR=`echo "$DB_TRANS" | grep "SP2-" | grep "ORA-"`
echo $DB_ERR
But I am not getting anything in DB_ERR.
I want to print each line on seperate line. Could you please help me out in this. Thanks in advance. (14 Replies)
Discussion started by: Poonamol
14 Replies
8. Shell Programming and Scripting
Hi Everyone
pls if anyone can help me in writing a script or correcting it what I have done.
I want to write a script to grep record number for all those record which have abc xyd cat dog in one of the field say VALUE, I have thousand of file in a dir and I want to search every file for... (6 Replies)
Discussion started by: revertback
6 Replies
9. Shell Programming and Scripting
Hi,
This is my text file I'm trying to Grep.
Apple Location Greenland Rdsds dsds fdfd ddsads http Received Return Immediately Received End
My Grep command:
grep only--matching 'Location.*Received'
Because the keyword Received appears twice, the Grep command will stop at the last... (3 Replies)
Discussion started by: spywarebox
3 Replies
10. Solaris
Hi,
I would like to search multiple patterns on same line, i.e. all patterns must
present on same line.
Please suggest.
Thanx (2 Replies)
Discussion started by: sanjay1979
2 Replies
Mail::SpamAssassin::Plugin::SPF(3) User Contributed Perl Documentation Mail::SpamAssassin::Plugin::SPF(3)
NAME
Mail::SpamAssassin::Plugin::SPF - perform SPF verification tests
SYNOPSIS
loadplugin Mail::SpamAssassin::Plugin::SPF
DESCRIPTION
This plugin checks a message against Sender Policy Framework (SPF) records published by the domain owners in DNS to fight email address
forgery and make it easier to identify spams.
USER SETTINGS
whitelist_from_spf add@ress.com
Works similarly to whitelist_from, except that in addition to matching a sender address, a check against the domain's SPF record must
pass. The first parameter is an address to whitelist, and the second is a string to match the relay's rDNS.
Just like whitelist_from, multiple addresses per line, separated by spaces, are OK. Multiple "whitelist_from_spf" lines are also OK.
The headers checked for whitelist_from_spf addresses are the same headers used for SPF checks (Envelope-From, Return-Path, X-Envelope-
From, etc).
Since this whitelist requires an SPF check to be made, network tests must be enabled. It is also required that your trust path be
correctly configured. See the section on "trusted_networks" for more info on trust paths.
e.g.
whitelist_from_spf joe@example.com fred@example.com
whitelist_from_spf *@example.com
def_whitelist_from_spf add@ress.com
Same as "whitelist_from_spf", but used for the default whitelist entries in the SpamAssassin distribution. The whitelist score is
lower, because these are often targets for spammer spoofing.
ADMINISTRATOR OPTIONS
spf_timeout n (default: 5)
How many seconds to wait for an SPF query to complete, before scanning continues without the SPF result.
do_not_use_mail_spf (0|1) (default: 0)
By default the plugin will try to use the Mail::SPF module for SPF checks if it can be loaded. If Mail::SPF cannot be used the plugin
will fall back to using the legacy Mail::SPF::Query module if it can be loaded.
Use this option to stop the plugin from using Mail::SPF and cause it to try to use Mail::SPF::Query instead.
do_not_use_mail_spf_query (0|1) (default: 0)
As above, but instead stop the plugin from trying to use Mail::SPF::Query and cause it to only try to use Mail::SPF.
ignore_received_spf_header (0|1) (default: 0)
By default, to avoid unnecessary DNS lookups, the plugin will try to use the SPF results found in any "Received-SPF" headers it finds
in the message that could only have been added by an internal relay.
Set this option to 1 to ignore any "Received-SPF" headers present and to have the plugin perform the SPF check itself.
Note that unless the plugin finds an "identity=helo", or some unsupported identity, it will assume that the result is a mfrom SPF check
result. The only identities supported are "mfrom", "mailfrom" and "helo".
use_newest_received_spf_header (0|1) (default: 0)
By default, when using "Received-SPF" headers, the plugin will attempt to use the oldest (bottom most) "Received-SPF" headers, that
were added by internal relays, that it can parse results from since they are the most likely to be accurate. This is done so that if
you have an incoming mail setup where one of your primary MXes doesn't know about a secondary MX (or your MXes don't know about some
sort of forwarding relay that SA considers trusted+internal) but SA is aware of the actual domain boundary (internal_networks setting)
SA will use the results that are most accurate.
Use this option to start with the newest (top most) "Received-SPF" headers, working downwards until results are successfully parsed.
perl v5.12.1 2010-03-16 Mail::SpamAssassin::Plugin::SPF(3)