Converting email from a bsd style email box

Michael Salmon Michael.Salmon at uab.ericsson.se
Tue Oct 1 03:18:51 EDT 2002


On Monday, September 30, 2002 02:20:47 PM -0500 "Vernon A. Fort" 
<vfort at provident-solutions.com> wrote:
+------
| To all,
|   Is it possible to read am email message from an existing BSD -style
| mbox file and use the cyrus deliver agent to inject the mail verses
| simple copying the file into the specific folder:
|
|             cat {message} | formail -s /usr/libexec/deliver -m .
| {userid} {return}
|
| When I do this, I get 'invalid header'  ?!?
|
| I am looking at this because there 'Might' be existing email in the
| account so I do not want to overwrite any...
|
| Any additional thoughts would be great!!
+-----X8

It could be the "From " line, I used:

cat /var/nfsmail/$user \
| $formail -Y -R "From " "X-Unix-From: " -s $deliver -e -- $user

with success some years ago. $formail and $deliver point to the respective 
programs.

/Michael
--
This space intentionally left non-blank.




More information about the Info-cyrus mailing list