Hi,
I was wondering could anybody show me how i would open a number of files from a directory.Each file begins with qfh and then a series of different numbers and letters. My code below prints out the specified files but i need to open them to search for a certain word. Can you help me please...
Ok this is my problem. I have a file which contains email header info.I have written code below to parse through it for the To: line off a spreadsheet of usernames.Once i get a match what i would like to do is move that particular header to another file.At the moment it just rewrites the entire...
Hi below are 2 regexps that i have tried. Either are supposed to print out any email that has a number in the higher domain.There not giving me any errors but there not working either can anybody show me an easier way please.
-- ([0-9a-zA-Z\.\-\_])+\@[0-9a-zA-Z\.\-]\.[\w]{4,5}[0-9]{1,})$/ )
--...
Hi my code below checks an email address of stored email address in a mysql database and if it isn't in the db insert it. The problem is it is inserting it but when i view the databse there is just a blank line but yet the row number has gone up.
if( /^From...
Hi I have a mysql database with various email addresses.There are a number of blank rows that i want to get rid of. Ive tried delete from addsubj values ('',''); but nothing happens. Can anybody help me please. Thanks cnw40007
Hello,
How would i go about matching a word from a file and taking out the word and everything below it until it reaches a blank line and put it into another file in perl???
Hi I'm trying to enter values into a mysql databse from my webserver.My problem is that from the web server i can enter a value into the database, it tells you the value has been entered but when i check the databse it is not there. This is my code
#!/usr/bin/perl
use CGI qw(:standard);
use...
Hi i have a spreadsheet with id numbers e.g
acm1001
acm1002
....
acm4040.
I also have a text file with various different id's aswell. How can i compare the two and if there is a match print it out.Im using the spreadsheet-parseexcel module but the examples that come with it are hard to...
Hi
is there a way of getting the username of an email address and print it out instead of printing the full email address using perl.This is my code but it prints out the full email address
...
while(<HEADER>)
{
if(/To:([^\@]+)/)
{
print OUTPUT;}
}
Hi the code below is supposed to get the email address from the mbox compare it to a database with spam email address.If a match is found then relabel the subject line of the email message with subject:{SPAM}.But this is not the case. The program runs but nothing happens. Can anybody help me...
Hi
Im reletively new to perl and the use of regexp. I have an email address e.g To:cnw40007@somewhere.com. I want to be able to parse the cnw40007 part using regular expressions and print it out. At the moment i have
open(FILE,'/cnw40007/mbox');
while (<FILE>) {
if (/To:/(\w+)(\d){8}) {...
Hi
I have a filter that checks all email from the mqueue and then puts the scanned email in another directory called mqueue.out . Is it possible to get procmail to look in the new directory instead of var/spool/mqueue to deliver the mail??Is it done in the sendmail.mc file?Can anybody help me...
I have written a perl script to search a database for a name....
On running the script I get an error saying,
Can`t locate DBI.pm in @INC ( @INC contains:
/usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/site_perl/5.005/i386-linux
/usr/lib/perl5/site_perl/5.005.) at...
Hi
I want to write a perl filter to filter all email from the sendmail mqueue. My problem is that i have no idea on how to go about this. Could anybody give me some sample code to extract the email from the mqueue??
Thanks
cnw40007
Hi,
Would anybody know how to configure sendmail such that it has two LDA's. One that takes incoming mail and filters it(not procmail) and then sends the email back to sendmail where it will pass it on to the 2nd LDA for final delivery (procmail)
Thanks a mill.
Hi I am reletivley new to perl. I want to be able to filter all incoming email for a network of users using sendmail as my mta for unknown users in the To: line of the header .Does anyone have any ideas on how i would do this??
hi i have written a simple email filter using mail audit.After i created a .forward file in my home directory i no longer recieved any emails. a typical error message looked like this
the following address has permanent fatal errors
"|/bin/filter"
reason:service unavailable...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.