Programming :: Sed Script To Update Old Mail Files

Jun 11, 2010

I need to update very old mail files to make them mbox compliant. What I need to do is find all lines beginning with ^To: and put a comma between a random number of names on this To: line. So I want to replace the 2nd and all subsequent <space> on this lines with ,<space>.

It should be something like:
s/^To: [ ]/&,/2g
But that isn't correct.

View 2 Replies


ADVERTISEMENT

Server :: Postfix Logs - Difference Between The Mail.log And Mail.info Files?

Jul 27, 2010

I have setup a postfix mailserver and it seems to be working ok, we are only using this to relay mail to our forum users. Its not being used to recieve any email only send them out to the internet.

What is the difference between the mail.log and mail.info files? Can I turn one or both off? I see alot of messages like...

Just wondering what this string of log entries means? Also I am getting duplicates in the syslog file as well.

View 2 Replies View Related

Debian Configuration :: Exim Doesn't Deliver Local Mail; Files In /var/mail Empty?

Jan 28, 2010

I cannot get exim4 to actually deliver any "local delivery only; not on a network".But whatever I do in the config, all mail gets frozen with entries in the log file like:"root@empty R=nonlocal: Mailing to remote domains not supported"Maybe the problem is that there is no fqdn for the computer (and will never be). How can I enable local mail delivery?

View 14 Replies View Related

Server :: Build The Virtual Machines To Exclude The Actual Mail Files And Mail Logs From CentOS?

Oct 12, 2010

I have to administer a few mail servers, a mail log server, 4 nameservers and a web server -all running on Centos 5 server distributions. Now I have a task: to avoid accidental crashes on the production servers while installing updates, my boss asked me to do clones (these clones will all be VMware virtual machines) of the servers (EXCLUDING the actual e-mails and mail log contents) and then to run those clones on VMWare Server. This way, first I will install and test updates on the clones and - if they will be running without crashes - I will apply the updates on the real production servers themselves. I have already installed VMWare Server 2.0 I have a few questions:

- How do I build the virtual machines to exclude the actual mail files and mail logs? Can I use VMware Converter for this purpose, or do I have to use another program?
- How do I actually do this cloning? Is there a tutorial on how to do this?

View 3 Replies View Related

General :: Split Mail Received In Local Mail Box Into Different Files?

Oct 30, 2010

How can I split my local mail box into an individual files for each mail. The senario of mine is I fetch some emails from a mail server into my local linux box with fetchmail command but I want each fetched mail in a different indivitual file for easy file processing and manipulation for example sending those email through sms and so on

View 1 Replies View Related

Programming :: Basic PHP Mail Function \ Say 'and If 'email' Is Not Equal To 0 Then Send The Mail?

Sep 9, 2010

this is my code at the moment

PHP Code: <?php
if (isset($_REQUEST['email'])) && $_REQUEST['email']!='0'{
$to = "chrisathisemail";

[code]....

View 5 Replies View Related

Programming :: Use Javamail For A Project To Send Mail Rather Than Using 'mail' Or 'mailx'

Nov 30, 2010

Was told that I need to use Javamail for a project to send mail rather than using "mail" or "mailx". Has anyone here done this?Any pointers or sites you've used and can recommend?

View 1 Replies View Related

Programming :: Convert The XML Output Files To SQL In Order To Create Or Update An SQL Database?

Dec 7, 2010

I've a program which manages my pdf and references. I wish to put some of the information on my website but that program (Mendeley) does export only in XML (or bibtex). I'd like to simply convert the XML output files to SQL in order to create or update an SQL database.I'm not an expert in either XML or SQL (use only PHPMyadmin). Does someone get help me to figure out?

View 2 Replies View Related

Programming :: Open Two Text Files - Read Them Line By Line And Update Parameters Of The 3rd File ?

Oct 18, 2010

I have two txt files containing x and y coordinates: xcoord.txt & ycoord.txt. I need to open them; read them line by line to get each coordinate; then each time I need to update Xs and Ys parameters inside another file called "dc.in" with the grabbed values.

Finally each time I need to run two exe files ( dc_2002 and st_vac) and produce corresponding output for each Xs and Ys ( dc.in is an input file for this exe files)

I have written the following code but it does not work:

View 14 Replies View Related

Ubuntu :: 10.04 LTS Mail Server Stuck On Update

Jun 17, 2011

I've got a bog standard install of 10.04 LTS running as a mail server. An update has stalled on a "Configuring grub-pc" screen, the forward button does not move me forward? How can I resolve this situation? Seems like a bug in the update process?

View 1 Replies View Related

Slackware :: Odd Crash With Claws Mail After PHP Update

Jan 14, 2011

Until the latest update to php, claws-mail was running fine. Since updating php through slackpkg, Claws will start but as soon as a message is selected it crashes with the following message (caught in terminal)

root[/]# claws-mail
Newmail plugin loaded
Message header summaries written to /home/pat/Mail/NewLog
Segmentation fault
root[/]#

As usual, I'm lost and wandering in the darkness.

View 2 Replies View Related

Fedora :: Unable To Send Mail Since Sendmail Package Update

Jun 25, 2011

the sendmail packages on my f15 server were updated from 8.14.4-20 to 8.14.5-1 yesterday. since then, every attempt to send mail via a smart relay have failed with :

Jun 25 14:05:10 server sendmail[23512]: p5PD59jr023512: from=root, size=208, class=0, nrcpts=1, msgid=<201106251305.p5PD59jr023512@server.{fromdom ain}>, relay=root@localhost
Jun 25 14:05:10 server sendmail[23513]: p5PD5A8l023513: from=<root@server.{fromdomain}>, size=480,

[code]....

i've tried using various different smtp relays and they all now throw the same error. without going through all my sendmail config, i have the following entries in /etc/mail/sendmail.mc :

define(`SMART_HOST', `{smtp server}')dnl
FEATURE(`authinfo', `hash /etc/mail/authinfo')dnl

and the /etc/mail/authinfo file contains :

AuthInfo:{incoming mail server} "U:{user}" "P:{password}"

View 1 Replies View Related

General :: Mail Only Files With Contents?

Jun 29, 2011

Am using the below script to send mails as an sql output . but the below script sends the generated file even if it is empty (if there is no outputs generated from the sql command) .
I want to send mail only if the file has some valid outputs. How to do this

{code}
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1

[code]....

View 1 Replies View Related

Programming :: Mail Attachment Using The Perl?

Feb 28, 2010

My script collects information and writes it to a xls file and should mail it across. I tested the first part of the script which writes the excel file , it does write the excel file fairly with expected data using Spreadsheet::WriteExcel module Second part uses MIME::Lite , All I get is a mail with intended subject intact but without the attachment . Following is the code , I have googled and tried out many options , didn't go any further apart from receiving a mail without attachment.

use MIME::Lite;
$msg = MIME::Lite->new(
From => 'xx',
To => 'xx',

[code]...

I am using RHEL 4 , Perl 5.8

View 5 Replies View Related

Programming :: How To Save Mail To Folder

Jul 18, 2011

I am an avid user of gmail. Recently I have been receiving some important e-mails, and I want to download only those e-mails from that specific person to a folder.

View 1 Replies View Related

Programming :: Use SMTP Value In Mail() Function?

Feb 11, 2010

I have specified a particular IP in the php.ini configuration file to be used by the mail() function. However, there are exceptions when I want to use a different SMTP Server's IP to relay delivery of emails to External Domains. So, how to use SMTP Value in the mail() function. I think it has to be done in the Header Section of it...?

View 4 Replies View Related

Programming :: Mail Log Parsing Script In Need Of Makeover?

May 30, 2011

I'm working on a script that will parse a mail machine's logs and print a list of email addresses in this format:

authen@domain.com | sender@domain | recipient@domain
exam
account1@domain1.com | sender2@domain2.com |

[code]...

View 2 Replies View Related

Programming :: Mail On File Increasing In A Directory

Feb 16, 2010

Using a shell script....In a particular directory if we are adding one or more files i should get a mail to my mail id , every time when the new file is added i should get the mail.Using crontab so that it will execute automatically wen any new files are added.

View 3 Replies View Related

Programming :: Reading Incoming Mail For Script?

Sep 17, 2010

I plan to make a script for the console server via mail, but I find difficulties in the reading of email applications, to email me using the mail command, but how to read the incoming mail

View 1 Replies View Related

Programming :: Library To Send Mail Via C/c++ Code

Sep 10, 2010

Is there a library to send mail via c/c++ code in linux ? Or what can I use ?

View 1 Replies View Related

General :: Convert DBX Mail Files To MBox Format?

Nov 16, 2010

Recently, my hard drive crashed. I was using XP and do not have my install discs (lost them 3 moves ago...). I make backups regularly and only lost roughly 3 days worth of material (nothing really important). On my other PC I've been running linux forever. I don't need windows and have installed a new HD in the PC and put fedora on there w/ no issues. Now historical email. There seems to be many workarounds for getting dbx files to mbox inside windows, but how would I accomplish this task without a windows install anywhere (Virtual installs are out as I do not have any install discs for windows anyways).

After a quick search, I only found one possible solution (in perl) and am looking for something that I don't have to program my self. I am a programmer by trade but have never programmed in perl (c++, FORTRAN, matlab, python... yes) and at this point, don't feel like learning new syntexs for this one problem (python has been my goto scripting language for everything linux...). Also if anyone has a link to a c++ lib(link to documentation?) that does the same thing... I might take a look at that and make a gui for it... then release it for others...

View 1 Replies View Related

Ubuntu :: Attach Shared Files To A Thunderbird Mail?

Dec 18, 2010

I am trying to attach shared files to a Thunderbird mail.The files are stored into a remote machine inside my LAN. The path is something like smb//:<something>But when trying to attach the file I get a permission error:"controllare i permessi di accesso al file"(trad: "check the access permissions to the file")

View 1 Replies View Related

Ubuntu :: Find Files With An Extension, Then Mail The Results?

Jul 2, 2011

Is there an easy way to do a recursive command line search on a path for a particular type of file extension?I want to build a script that will check for the existence of any .xxx files in a recursive path, if they exist, I would like to run the "mail" command to send me a message. I already have mail running on he server.My thoughts were to tryQuote:ls -R |grep .iniorQuote:find . |grep .inibut neither of those return only the .ini files, they also return files that are named such as .ini.bak, .ini.original, .ini.old, ect...

View 2 Replies View Related

Programming :: Encrypted Mail Client Blocks After QUIT

Sep 9, 2010

My problem is that for an encrypted server my client blocks after I send the QUIT command to the server and I do not know the reason why my client blocks.

Language C, Library openssl, IP4.
Compiler: gcc.
Output:
send: STLS
receive: +Ok ssl handshake
send: USER XXXXX
receive: +OK
send: PASS ***
receive: +OK
Send: STAT
receive: +Ok 0 0
send: QUIT
receive: blocks

At this point I need to use crtl^C to exit the program.

For the non-encrypted mail client everything works fine.

View 1 Replies View Related

Programming :: Get Default Browser Name And Mail Client Name By Programmatically?

May 4, 2009

I am developing a application in which i have to show the name of default browser and mail client. i want to run this application on RedHat, SuSE, Mandriva, and Ubuntu. I have checked similar threads but not found any useful information.

View 8 Replies View Related

Programming :: Include Html On A Velocity Template Mail?

Jul 13, 2010

Right now we send notification emails using a velocity template (apache and java), the thing is that the notification engine call the Email.vm file to add all the information and variables. This process only attach the information (text) on the .vm file.

We need to send that email on html. The thing is that if we write the html code on the file, when the .vm file is called that email includes the code not the result of the html.

We have tried adding the headers and everything.

The question is:

Is there some way that we can pre-process the html code and include to that email the result?

Or can we tell the .vm file that it should be handle as html? (like php for example <?php ?>, the <html> and </html> tags doesn't work.

View 1 Replies View Related

Programming :: Sending Mail To Mailing-lists In Perl?

Jan 25, 2011

Im creating a perl script that will be sending out mail to mailing-lists, but im not getting it to work. Its no problem getting the script to send mail to regular mail addresses, but it doesnt seem to handle to send mail to mailing lists. Im using the Net::SMTP perl module.how to send mail from a perl script to a mailing list (and not just regular mail addresses) ?

View 2 Replies View Related

Software :: POP3 Download Mail Attachments As Local Files?

Dec 23, 2010

How can mail attachments be downloaded from a POP3-supporting mail server and saved as local files? I've looked into a variety of mail clients and studied mbox, maildir and MIX but no solutions are jumping out and saying "It's me you're looking for!" (story of my life ) The requirement is for an organisation with no document management system; as a first step I want to get all their files in one place, including files that may exist only as email attachments.

View 8 Replies View Related

Programming :: Html Tags Inside PHP Mail Body Message?

Mar 9, 2010

Trying to write a small php program to send emails using a form. I have collected all the information in php variables and I can send the mails just fine. But I need some neat and clean formatting for the mail that is received and hence thought html tables would be nice. But all the html tags are received as plain text and not html though I have mentioned in headers content-type to be html. Any links? If anyone can put some light on it? I thought that html tags would just work fine without much issue. I have tried same with asp and it worked.

PS: I am no programmer. Just trying my hands out on some php.

Edit: I am using a php mailer class from php classes to send mails. I need some way to use an external smtp server for sending mails. I have seen pear but I do not want to use pear. It is not available on the server I am testing and it is not possible for me to install it. I do not have access to install pear and can not ask to install it.

View 7 Replies View Related

Programming :: Command For Find/Replace In Text Files (inc. Files In Sub-folders)?

Oct 11, 2010

I found this command that works great finding and replacing a simple string to another in files located in that folder and all sub-folders.

Code: find . -name '*.php' | xargs perl -pi -e 's/OldText/NewText/g'

The problem I have is that I need to replace a more complex string, like this: Old string: /mnt/stor6-wc2-dfw1/627896/982574/ New string: /mnt/stor8-wc2-dfw1/369587/302589/ There I don't know how to do it... since the / is what separates the old from the new strings, and the strings that I want to replace have / in it. Also, I would like to know how to specify under what folder replace the files, for example, I want that it search/replaces all files under /var/www/mysite/htdocs folder.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved