[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Debian] Mutt und GnuPG



Moin Waldemar!
Waldemar Brodkorb schrieb am Sonntag, den 13. Mai 2001:

> > a) bei alten Mutt-Versionen: Hacks, beschrieben in /usr/doc/mutt/PGP.txt
> > b) bei aktueller Version: Shift-P
> 
> Ich habe hier bei mir ein paar Procmail-Regeln die es ermöglichen
> im Zussammenspiel mit formail, den header der Nachrichten
> PGP/MIME konform zu ändern, sodaß Mutt die Nachrichten 
> wie immer erkennt.

Toll, aber ist da nicht schon ähnlich in der Datei
/usr/share/doc/mutt/PGP-Notes.txt.gz beschrieben?

Ich habe jedenfalls auch einen ähnlichen Hack für Exim (mit
Exim-Filtern, kein Procmail) geschrieben, interessiert vielleicht auch
jemanden.

--- ~/.forward ---
# Exim filter
if $message_body contains "-----BEGIN PGP MESSAGE-----" and
   $message_headers does not contain "Content-Type: application/pgp"
then pipe "/usr/local/bin/setpgp $local_part encrypt"
     finish
elif $message_body contains "-----BEGIN PGP SIGNED MESSAGE-----" and
   $message_headers does not contain "Content-Type: application/pgp"
then pipe "/usr/local/bin/setpgp $local_part sign"
     finish
endif
# ... other filters
---

--- /usr/local/bin/setpgp
#!/usr/bin/perl
# Don't forget to mark this file executable with "chmod +x setpgp"
open(out,"|/usr/sbin/sendmail $ARGV[0]");
while(<STDIN>) {
  s/^(Message-Id: .*)/$1\nContent-Type: application\/pgp; format=text;
+x-action=$ARGV[1]/i;
  print out $_;
}
close(out);
---

MfG,
Eduard.
-- 
==========================================================
Eduard Bloch <blade@debian.org> | GnuPG: 0xEDF008C5(GnuPG)
> Kommt dem Windows-Zeugs IMO sehr nahe...
Ja, Windowsfeeling pur, "kAllgemeine kSchutzverletzung". >:->
    (Heiko Schlenker zum Thema: "KMail als Eudora/OE5-Ersatz")

Attachment: pgpeYSy9k60EB.pgp
Description: PGP signature


Reply to: