Rocco --

...and then Rocco Rutte said...
% 
% Hey,

Hiya!


% 
% I just ask without much hope of success. I guess that there's
% no way to hand some text over to mutt and force it to encrypt
% it with a public key (uid is known)?
% 
% Okay, I knew it wouldn't work.

I wouldn't give up yet.  I do think it would take some clever
command-line switches and perhaps a little mime wrapping, though.


% 
% I need to send a file encrypted to an account via a cronjob.
% Is there any chance doing it in mutt or do I really have to
% write some default-headers to a file and append the encrypted
% to text to be piped to some sort of sendmail?

You might have to write these headers, but there's no reason you couldn't
send thru mutt.  You might even use mmencode and/or metasend to do it
for you; check the man pages.  [Since signing isn't an issue, this looks
at first glance to be a trivial matter of putting together the right
options.]


% 
% I guess this will work. Is there anything I have to pay
% attention to when having encrypted text inline with content/
% type: text/plain? Does mutt need anything special to correctly
% recognize and decrypt it via $check_ppg_traditional?

This is certainly a valid approach, and probably the easiest to implement.
No, you shouldn't need anything special; a simple

  cat file | gpg -ea -r 0xNNNNNNN | mutt -s "cron job" recipient

will do, and then you can read it with an esc-P on the other end (still
thinking about a message-hook that will automatically detect that and hit
the esc-P for us...).  Note that mutt is used trivially here; you could
use mailx just as well.

Above all, of course, is the question HAVE YOU TRIED IT FIRST? ;-)


% 
% Cheers, Rocco.


HTH & HAND

:-D
-- 
David T-G                      * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/    Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: msg28152/pgp00000.pgp
Description: PGP signature

Reply via email to