Emil,
That works great. However I am running into a dilemma. My production
server is
a Solaris 2.6 box. I was developing this part of the tool on our test
system, happens to be a Linux system. Unfortunately, when I started
looking around on our production box I have noticed that it does not have
formail on it. Where can I get this program for a Solaris system and why
did I have it on the Linux system already?
Theresa
At 12:11 AM 12/6/00 +0100, you wrote:
On Tue, 5 Dec 2000, Theresa Peter wrote:
>Is it possible or has someone already written a program that will take
>someone's mailbox and forward all mail to another account and then remove
>those messages off of the system?
Sure. It's called formail (and sendmail):
# Let's get the mailbox
lockfile /var/mail/emil.lock
cp /var/mail/emil /some/dir/emil
rm /var/mail/emil
rm -f /var/mail/emil.lock
# And lets send the mailbox
formail -s /usr/lib/sendmail -oi user(_at_)example(_dot_)com < /some/dir/emil
Or something like that...
Untested though... :-)
--
...eighty years later he could still recall with the young pang of his
original joy his falling in love with Ada.
-- Nabokov
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
"There are a million ways to lose a work day, but not even a
single way to get one back." --Tom DeMarco & Timothy Lister
Theresa M Peter
Software Engineer I
University of Cincinnati
BOL/Classware Office
C07 3rd Floor Edwards Two
(513)556-9008
"There are a million ways to lose a work day, but not even a
single way to get one back." --Tom DeMarco & Timothy Lister
Theresa M Peter
Software Engineer I
University of Cincinnati
BOL/Classware Office
C07 3rd Floor Edwards Two
(513)556-9008
"There are a million ways to lose a work day, but not even a
single way to get one back." --Tom DeMarco & Timothy Lister
Theresa M Peter
Software Engineer I
University of Cincinnati
BOL/Classware Office
C07 3rd Floor Edwards Two
(513)556-9008
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail