I can give you suggestions on how to approach this task, but I can't give you a complete script.
The basic flow would be like this (in pseudo code)
Everything else depends on the language you choose. Personally, I'd user Perl or Python, but it can also be done in bash or C.
I want to send a text file from Unix as an attachment to a Microsoft Outlook address. I have tried the 'elm' command which does this. But it is in an interactive mode. I want this to be automatically done by a program. Is there any other way to this? (3 Replies)
Hi,
I use mailx in a shell script to mail a message to the users. i wanted to know if mailx stores the mail that it sends? for eg in microsoft outlook all mails sent get stored in the outbox. is there such a facility with mailx?
if not how i can do this so that for every mail sent, a backup... (6 Replies)
i'm a avid fan of making the output of my scripts look pretty. so as a result i put in my scripts a lot of lines that are formed by either ****** or =======
now, outlook seems to have a problem with that. it always removes something that it calls "line breakers" from the emails my scripts send... (5 Replies)
Hi frnds,
I want to send 3 csv files as attachement in unix server how do i do this.
Following is the steps which i need to follow:
1.Shell script sets the environment variables
2.Shell script calls a C++ executable
NOTE:This executable will generate 3 csv files
3.After the... (2 Replies)
I'm trying to move a users multiple folders (archieved email) from a Solaris UNIX system to Outlook 2003. The user accesses the mail via ELM and folder are kept on his home drive, not under /var/mail. I was told I can use either IMAP and/or POP3 to connect to the UNIX server from outlook and just... (1 Reply)
Bonjour,
Après avoir découvert Nmon puis la macro excel, je souhaite comprendre la description de graphe
_________________
SYS_SUMM
CPU% ???
IO/sec ???
_________________
CPU_ALL
User% ???
Sys% ???
Wait% ???
_________________
DISK_SUMM
Disk Read KB/s = Lecture disk en kilo bytes... (6 Replies)
i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail.
actually i am trying to automate the high... (2 Replies)
Hi,
For a requirement in my project, i need to implement code in unix such that unix checks whether the necessary mails from a particular client is received in outook inbox. Note that, i ve to check whether that particular mail has got any attachment too..
Please tell me whether this is... (0 Replies)
Hi all,
I want to send a mail for my business needs from outlook account to an unix server (HP-UX) but I don't send any mail. While I can send from the unix server to my outlook account, I can't send from outlook to unix.
How can I achieve this ? How can I send a mail from my outlook or other... (2 Replies)
Hello Guys,
I have a requirement to send an email to outlook from unix script. I have used the below stuff to send an email and it worked on machine A but not on machine B. Please find their versions.
Machine A ) Linux xxx 2.4.9-e.40enterprise #1 SMP Thu Apr 8 16:43:01 EDT 2004 i686 unknown... (1 Reply)
Discussion started by: srikanthbiradar
1 Replies
LEARN ABOUT DEBIAN
newmail
NEWMAIL(1) Mail Utilities NEWMAIL(1)NAME
newmail - biff like tool for the terminal
SYNOPSIS
newmail [-b] [-h] [-i interval] [-r] [-w] [ mbox [...]]
DESCRIPTION
The newmail program monitors a given set of mailboxes and looks for new mail. If new mail is received the sender and subject will be writ-
ten on the terminal it was started from. By default newmail puts itself in the background so the console is still usable.
newmail is able to monitor arbitrary numbers of mailbox files. If no mailbox was specified on the commandline it will monitor the default
mailbox, which may be overwritten by the MAIL environment variable.
If more than one mailbox is being monitored, a prefix is printed for each mail line so the user can distinguish between the different mail-
box files. By default the prefix is the name of the mailbox without its path.
If a mailbox is specified as path=string then string will be used as prefix for mails received in the mailbox denoted by path.
newmail is able to decode header lines when non-ascii characters are transported. They will be displayed properly if the locale (LC_CTYPE)
is set accordingly.
OPTIONS -b Ring a bell after one or more incoming mails have been detected for at least one mailbox.
-h Print a help message.
-i interval
Set the interval between two mailbox checks to interval seconds. The default is 60 seconds which is suffient for the terminal. For
the use inside of a window or dock application a lower value may be prudent.
-r Emit raw data from the mail. This will bypass routines to decode character encodings used for mail headers as described in RFC
2047. This may be useful for window applications that want to decode the strings on their own.
-w Run as window application. This will prevent newmail from moving itself into the background so its output can be used as input for
a window application. This will also change the output format slightly and prevent a bell to be rung after new mail has been
received.
OUTPUT FORMAT
The output format differs from being read by humans and programs (-w).
newmail:
>> Mail from <from> - <subject>
>> Priority mail from <from> - <subject>
>> <folder>: Mail from <from> - <subject>
>> <folder>: Priority mail from <from> - <subject>
newmail -w:
<from> - <subject>
Priority: <from> - <subject>
<folder>: <from> - <subject>
<folder>: Priority: <from> - <subject>
It should be easy for third party programs which are interested in such information to parse the output when newmail is running with the -w
option.
ENVIRONMENT
newmail supports the following environment variables:
LANG Locale setting for the output character set.
LC_CTYPE
Locale setting only for the output character set.
MAIL Full path of the user's spool mailbox.
NOTES
This program is inspired by the newmail program from the Elm interactive mail program. It is a rewrite from scratch though.
Many thanks go to Dave Taylor and the Elm Development Group who have provided me with a great mail program for several years. Many addi-
tional thanks go to the former lead developer Dave Taylor who started the program back in 1986.
SEE ALSO locale(7).
AUTHOR
Joey Schulze <joey@infodrom.org>
Infodrom Oldenburg February 8th, 2006 NEWMAIL(1)