[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Forwarding collected mail? (RaQ3)



> a client asks if I could move the mails collected in his mail-file to
> another mail-adress, because his boss does not longer allow to POP3
the
> server from his workstation.

> I remember: there is a thing like pipelines in Linux like:
> pico "username" |mail user@xxxxxxxxxx
> or anything like that...

Yes, I have successfully in the past used a command line like:

cat /var/spool/username | formail -ds | sendmail -t

cat reads the spool file, that is then piped into formail - which with
the -ds parameters just splits the spool file up in the individual
messages. These messages are then piped into sendmail, which with the -t
parameter handles "raw" mail.

I hope I got all the options right, as I haven't tested it right now.

--
Jens Kristian Søgaard, Mermaid Consulting I/S,
jens@xxxxxxxxxxxxxxxxxxxx
http://www.mermaidconsulting.com/