Rocco --

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

Hello!


% 
% * David T-G [05/16/02 19:04:13 CEST] wrote:
% > ...and then Rocco Rutte said...
% > % 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.
% 
% Sounds like overkill since the solution (below) is much
% easier.

If you don't mind the traditional pgp and the possible problems with MIME
types, then that oughta work.


% 
% > % 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,
% 
% I know, but that isn't a problem typing the text actually will
% take longer than thinking about what to type.

You must know your MIME headers, then.  I'd have to go and look up the
grammar :-)


% 
% > 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
% 
% Looks good, thanks.

HTH


% 
% > 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.
% 
% Or I could use 'mutt -x'.

Well, yeah; the point was that we don't need mutt's cool features here
since the mail interface isn't doing the encrypting.


% 
% > Above all, of course, is the question HAVE YOU TRIED IT FIRST? ;-)
% 
% No, I haven't tried it. I guess I'll have to play around and

*grin*


% try a few things. In fact, I need two different solutions. One
% as the above to send out some files via cron. 
% 
% The second is a bit more complicated. The command will be
% placed in /etc/aliases as an alias for a local user. All mail
% to that user should be encrypted with one of my public keys

Will the mail also be delivered to the user, or are you just doing a
fancy version of a .forward file?


% and forwarded to me. I've allready installed procmail which
% seems to be a better solution than /etc/aliases.

It's at least simpler.  It should be easy enough to implement, too;
you could probably encrypt the whole thing and also wrap it in a MIME
header that says it's an RFC822 message and mutt would read it pretty
transparently.  I dunno how the mix of MIME and not-MIME would work,
but experimentation should answer that for you.


% 
% 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: msg28183/pgp00000.pgp
Description: PGP signature

Reply via email to