On Thu, Feb 07, 2002 at 02:23:49PM +0000, Dave Smith wrote: >Hi all. > >I'm trying to write a script which will mail any file specified as an >argument, to a specific user. However, I need the mail to be sent >GPG-encrypted. Obviously, I can use > > cat file | gpg -e -a -r [EMAIL PROTECTED] | mutt -s "Hello World" [EMAIL PROTECTED] > >Or equivalent, but that's a bit messy, and requires significant effort on >the receiving end. > >Does anyone have any ideas on how I could get mutt to send a GPG-encoded file >on the command line, so that it appears as a proper encrypted attachment? > >The MUA at the receiving end is also mutt, so there's no problem with >broken receiving mailers. > >...or is this beyond mutt's intended functionality? > >TIA... >
Well, I'm not sure how to do this on the command line, but in a script
(or possibly on the command line given enough voodoo) you could
gpg-encrypt the file first, use --output to generate a gpg-crypted
output file, and then call mutt with -a to attach that file to a
message. Is that what you had in mind?
Yeah right, like there's something you can't do with mutt. :)
--
------------------------------------------------------------------------
John Buttery
"Mulder, please explain to me the scientific
significance of 'the whammy'..."
X-Files
(Web page temporarily unavailable)
------------------------------------------------------------------------
msg24278/pgp00000.pgp
Description: PGP signature
