Re: [Exim] Exim command-line

Top Page
Delete this message
Reply to this message
Author: Vadim Vygonets
Date:  
To: exim-users
Subject: Re: [Exim] Exim command-line
Quoth Jason Dale on Tue, Sep 23, 2003:
> Does anyone know how to send messages to recipinets on the
> command-line, but using amailfolder with messages in it already
> as the 'input' messages to use to send to someone else?
>
> Example: /var/spool/mail/sarah --> 'forward' this mail to another
> user, using the command line.


I'm not aware of any command line tools that can do it, so what I
usually do in these cases is writing a script. The messages in
"mbox" mailboxes start with /^From /, and you need to pipe each
of them into "sendmail -oi -oem user@domain".

But if you just need to put all mail from one mailbox to another,
lock the second mailbox with exim_lock and do:
    cat /var/spool/mail/sarah >>/var/spool/mail/abraham


Vadik.

--
We who stride like giants across the world and allow all the
systems to speak, each unto the other.
        -- Chad Robinson, BOFH