Hi Group,
Please forgive in case this is discussed.
I need help regarding a simple script to verify if the give address exist in the Ldap directory. If the email exists the script should exit with a 0 status or else a non zero status.
I am currently using the following script (and it is... (4 Replies)
Hi does anybody have a ksh/sh/bash function that i can embed into my script that i could use to validate an inputted IP address, I tried using one big long regular expression but it got very long and complicated
ie
#!/bin/ksh
echo " Please enter your IP address"
read IP
---some function... (6 Replies)
Hi
I am new to this forum.I need a help in the following:
We receve pipe delimited file with
transaction ID,tran_date,Quest_cd,Ans_cd,ans_value.
Same transaction ID can be repeated with different quest_cd and ans_cd.
Basically I need to check if a perticular pair of quest_cd and ans_cd... (1 Reply)
we have 4000 html pages that need an email address changed.
eg) company@yahoo.com to company@hotmail.com
we only want the file modified date to be changed when there has been a change to the file.
Should I be using grep?
I fairly new to UNIX and was told to using something like... (2 Replies)
Hi All,
I have a shell script in Linux and it will be invoked by 2 methods,
1) An automated background process .
2) Logining into the box and directly executing the script.
I need to put a validation in my shell script such that it will be executed successfully on when an... (11 Replies)
Hi All,
I am a newbie...I would like to have a function which ll check if a file contains valid strings before "=" operator. Just to give you my requirement:
assume my file has content:
hello= gsdgsd sfdsg sgdsg sgdgdg
world= gggg hhhh iiiii
xxxx= pppp ppppp pppp
my... (1 Reply)
I need help with one of my shell script. The script is working fine but i need to add two condition -
i need to get rid of all the below ftp messages and need to have only ftp completed or failed message.
example when i run the script i get below lines -
Connected to xxxx
220 (vsFTPd... (1 Reply)
hello every one
I wrote the script to validate all the urls from my server . sourcing text file which contains the list of urls and trying to check every url and based on response printing url is up or not. the issue when i use the below code with url is printing url exist and and in loop it's... (3 Replies)
Discussion started by: markjohn1
3 Replies
LEARN ABOUT DEBIAN
qpsmtpd::address
Qpsmtpd::Address(3pm) User Contributed Perl Documentation Qpsmtpd::Address(3pm)NAME
Qpsmtpd::Address - Lightweight E-Mail address objects
DESCRIPTION
Based originally on cut and paste from Mail::Address and including every jot and tittle from RFC-2821/2822 on what is a legal e-mail
address for use during the SMTP transaction.
USAGE
my $rcpt = Qpsmtpd::Address->new('<email.address@example.com>');
The objects created can be used as is, since they automatically stringify to a standard form, and they have an overloaded comparison for
easy testing of values.
METHODS
new()
Can be called two ways:
o Qpsmtpd::Address->new('<full_address@example.com>')
The normal mode of operation is to pass the entire contents of the RCPT TO: command from the SMTP transaction. The value will be fully
parsed via the canonify method, using the full RFC 2821 rules.
o Qpsmtpd::Address->new("user", "host")
If the caller has already split the address from the domain/host, this mode will not canonify the input values. This is not
recommended in cases of user-generated input for that reason. This can be used to generate Qpsmtpd::Address objects for accounts like
"<postmaster>" or indeed for the bounce address "<>".
The resulting objects can be stored in arrays or used in plugins to test for equality (like in badmailfrom).
canonify()
Primarily an internal method, it is used only on the path portion of an e-mail message, as defined in RFC-2821 (this is the part inside the
angle brackets and does not include the "human readable" portion of an address). It returns a list of (local-part, domain).
parse()
Retained as a compatibility method, it is completely equivalent to new() called with a single parameter.
address()
Can be used to reset the value of an existing Q::A object, in which case it takes a parameter with or without the angle brackets.
Returns the stringified representation of the address. NOTE: does not escape any of the characters that need escaping, nor does it include
the surrounding angle brackets. For that purpose, see format.
format()
Returns the canonical stringified representation of the address. It does escape any characters requiring it (per RFC-2821/2822) and it
does include the surrounding angle brackets. It is also the default stringification operator, so the following are equivalent:
print $rcpt->format();
print $rcpt;
user([$user])
Returns the "localpart" of the address, per RFC-2821, or the portion before the '@' sign.
If called with one parameter, the localpart is set and the new value is returned.
host([$host])
Returns the "domain" part of the address, per RFC-2821, or the portion after the '@' sign.
If called with one parameter, the domain is set and the new value is returned.
notes($key[,$value])
Get or set a note on the address. This is a piece of data that you wish to attach to the address and read somewhere else. For example you
can use this to pass data between plugins.
COPYRIGHT
Copyright 2004-2005 Peter J. Holzer. See the LICENSE file for more information.
perl v5.14.2 2009-04-02 Qpsmtpd::Address(3pm)