On 2005-12-16 John Jetmore <[EMAIL PROTECTED]> wrote:
[...]
> I wonder if the OP's issue is that he believes the example is
> demonstrating accepting the body of an email of an attachment for an email
> on the command line.  It actually will be used as the entire DATA portion
> of the SMTP transaction, so it must be a full email w/ headers, etc.  In
> fact, I use this option a _lot_ to test our SMTP gateway virus scanners:

> cat virus.somefool | swaks -d - -n -t [EMAIL PROTECTED]
[...]

Well, this is a useless-use-of-cat and (c|sh)ould be written as

swaks -d - -n -t [EMAIL PROTECTED] < virus.somefool

;-)

uuoc is a matter of personal preference, imho. While *I* try to do
without for simple cases like this one, I prefer uuofc when pipes are
involved
cat file | foo -d -lo -o -p | bar | fasel | frobnicate -v
instead of
foo -d -lo -o -p < file | bar | fasel | frobnicate -v
as it is more readable *imho*.

    cu andreas
-- 
The 'Galactic Cleaning' policy undertaken by Emperor Zhark is a personal
vision of the emperor's, and its inclusion in this work does not constitute
tacit approval by the author or the publisher for any such projects,
howsoever undertaken.                                (c) Jasper Ffforde


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to