protofan@motcid.UUCP (Mike S. Protofanousis) (02/19/91)
I once had a program which could uudecode a file which was split into many mail messages. This program would automatically remove any mail headears and any trailing blank lines. I am not sure if it would handle a sigature. The problem is I lost it! If anyone has such a program, could they please mail it to me? I figured someone using elm and reading this group might be able to help. Thanks. -- Mike Protofanousis msp@pronet.chi.il.us uunet!motcid!protofan
protofan@motcid.UUCP (Mike S. Protofanousis) (02/21/91)
> I once had a program which could uudecode a file which was split into > many mail messages. This program would automatically remove any mail > headears and any trailing blank lines. I am not sure if it would > handle a sigature. Well, I discovered that sed could do the job! Here is a one line sed script that can handle a bunch of mail files and uudecode them. It even works with .signatures that start with '--'. sed -e '1,/^$/d' -e '/^--$/,/^$/d' -e '/^$/,/^$/d' $* | uudecode sed and uudecode need to be in your path (or you can add paths to the above). Put this command into a file. For example, call it uuconvert. Then do chmod +x uuconvert. That's it. You are now ready to use uuconvert. It can be used in two ways: uuconvert file1 file2 file3 etc... or cat file1 file2 file3 etc... | uuconvert It's not too smart. It can work with generic signatures as long as they are preceded by at least one blank line. -- Mike Protofanousis msp@pronet.chi.il.us uunet!motcid!protofan