Update of /cvsroot/mahogany/M/src/classes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30455/src/classes

Modified Files:
        MessageView.cpp 
Log Message:
don't try to use PGP/GPG if the command is empty (this provides a way to disable PGP 
which was lacking before...)

Index: MessageView.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/classes/MessageView.cpp,v
retrieving revision 1.146
retrieving revision 1.147
diff -b -u -2 -r1.146 -r1.147
--- MessageView.cpp     12 Jan 2004 17:48:29 -0000      1.146
+++ MessageView.cpp     11 Mar 2004 14:07:20 -0000      1.147
@@ -118,4 +118,5 @@
 extern const MOption MP_MVIEW_HEADER_VALUES_COLOUR;
 extern const MOption MP_MVIEW_URLCOLOUR;
+extern const MOption MP_PGP_COMMAND;
 extern const MOption MP_PLAIN_IS_TEXT;
 extern const MOption MP_RFC822_IS_TEXT;
@@ -1946,5 +1947,8 @@
 MessageView::ProcessSignedMultiPart(const MimePart *mimepart)
 {
-   if ( mimepart->GetParam(_T("protocol")) == _T("application/pgp-signature") )
+   // we use MP_PGP_COMMAND as a boolean switch telling us whether we should
+   // use pgp or not as well
+   if ( mimepart->GetParam(_T("protocol")) == _T("application/pgp-signature") &&
+            !READ_APPCONFIG_TEXT(MP_PGP_COMMAND).empty() )
    {
       static const wxChar *sigIgnoredMsg =



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to