Bug#340680: swaks: Useless use of cat in man page

2005-12-17 Thread Andreas Metzler
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]



Bug#340680: swaks: Useless use of cat in man page

2005-12-05 Thread Gunnar Wolf
Is this really a bug? Please elaborate. While the use of 'cat' might
not be necessary for this to work (i.e., by using -l mailfile), it is
a correct way of invoking swaks, and is neither dangerous or
wrong. The manpage does indicate the -l switch anyway - and this
problem is -as you say in your report- in the EXAMPLES section. 

Greetings,

-- 
Gunnar Wolf - [EMAIL PROTECTED] - (+52-55)1451-2244 / 5623-0154
PGP key 1024D/8BB527AF 2001-10-23
Fingerprint: 0C79 D2D1 2C4E 9CE4 5973  F800 D80E F35A 8BB5 27AF


signature.asc
Description: Digital signature