procmail
[Top] [All Lists]

Re: HELP! How can I decrypt encrypted messages?

2003-01-15 12:28:53
At 10:41 2003-01-15 -0800, Chuck Harding did say:
Thanks for all the help. I was able to get it to work just fine.

Great. Now, post the scripts so the next guy trying to do this will be able to. <g>

The purpose of what I am trying to do is to make a modification to Majordomo so that it can support encrypted email lists

I take it that users send encrypted messages to the list, the list decrypts them, then re-encrypts them with it's own key?

> Problem:  Multiple begin and end markers, as well as begins and ends which
> are encapsulated within signed text (for instance).

The script can deal with this situation by perhaps making multiple passes over the message body.

Well, uh, I wasn't talking so much of text which would appear AFTER a section was decrypted, but rather, something that might appear like so:

***opening tag***

so and so said:

***opening tag***

blah

***closing tag***

so I ignored him.

***closing tag***

Your problem is in needing to match tag pairs appropriatley, rather than locating the first open and grabbing to the first close (which in the above example, is really paired to the SECOND open). Nor can you simply match the first open and the last close (two crypted bodies in one message will boff this up for you). Also, you need to contend with the possibility (nay, PROBABILITY) that someone may quote something and trim it such that only one of the tags is there, rather than both:

***opening tag***

so and so said:

***opening tag***

blah

so I ignored him.

***closing tag***

It's the _signed_ content, rather than _crypted_ content which will cause you grief if not handled properly -- the crypted content won't have plaintext in the midst of it.

[snip]

I'm not the .sig police - I was just commenting that the massiveness of your .sig could be uncomfortable for some recipients. <g>

---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>