(insert-buffer-substring the-buf start end)
(cond ((progn
(goto-char (point-min))
- (re-search-forward "^-+BEGIN PGP SIGNED MESSAGE-+$" nil t)
- )
+ (re-search-forward "^-+BEGIN PGP SIGNED MESSAGE-+$" nil t))
(funcall (pgp-function 'verify))
(goto-char (point-min))
(delete-region
(point-min)
(and
(re-search-forward "^-+BEGIN PGP SIGNED MESSAGE-+\n\n")
- (match-end 0))
- )
+ (match-end 0)))
(delete-region
(and (re-search-forward "^-+BEGIN PGP SIGNATURE-+")
(match-beginning 0))
- (point-max)
- )
+ (point-max))
(goto-char (point-min))
(while (re-search-forward "^- -" nil t)
(replace-match "-")
)
((progn
(goto-char (point-min))
- (re-search-forward "^-+BEGIN PGP MESSAGE-+$" nil t)
- )
+ (re-search-forward "^-+BEGIN PGP MESSAGE-+$" nil t))
(as-binary-process (funcall (pgp-function 'decrypt)))
(goto-char (point-min))
(delete-region (point-min)
(set-atype 'mime-acting-condition
'((type . application)(subtype . pgp)
- (method . mime-method-for-application/pgp)
- ))
+ (method . mime-method-for-application/pgp)))
(set-atype 'mime-acting-condition
'((type . text)(subtype . x-pgp)
- (method . mime-method-for-application/pgp)
- ))
+ (method . mime-method-for-application/pgp)))
;;; @ Internal method for multipart/signed
(set-atype 'mime-acting-condition
'((type . multipart)(subtype . signed)
- (method . mime-method-to-verify-multipart/signed)
- ))
+ (method . mime-method-to-verify-multipart/signed)))
;;; @ Internal method for application/pgp-signature
"Internal method to check PGP/MIME signature."
(let* ((encoding (cdr (assq 'encoding cal)))
(entity-number (mime-raw-point-to-entity-number start))
- (rcnum (reverse entity-number))
- (rmcnum (cdr rcnum))
- (knum (car rcnum))
+ (reversed-entity-number (reverse entity-number))
+ (rmcnum (cdr reversed-entity-number))
+ (knum (car reversed-entity-number))
(onum (if (> knum 0)
(1- knum)
(1+ knum)))
(set-atype 'mime-acting-condition
'((type . application)(subtype . pgp-signature)
- (method . mime-method-to-verify-application/pgp-signature)
- ))
+ (method . mime-method-to-verify-application/pgp-signature)))
;;; @ Internal method for application/pgp-encrypted
(defun mime-method-to-decrypt-application/pgp-encrypted (start end cal)
(let* ((entity-number (mime-raw-point-to-entity-number start))
- (rcnum (reverse entity-number))
- (rmcnum (cdr rcnum))
- (knum (car rcnum))
+ (reversed-entity-number (reverse entity-number))
+ (rmcnum (cdr reversed-entity-number))
+ (knum (car reversed-entity-number))
(onum (if (> knum 0)
(1- knum)
(1+ knum)))
(set-atype 'mime-acting-condition
'((type . application)(subtype . pgp-encrypted)
- (method . mime-method-to-decrypt-application/pgp-encrypted)
- ))
+ (method . mime-method-to-decrypt-application/pgp-encrypted)))
;;; @ Internal method for application/pgp-keys
(set-atype 'mime-acting-condition
'((type . application)(subtype . pgp-keys)
- (method . mime-method-to-add-application/pgp-keys)
- ))
+ (method . mime-method-to-add-application/pgp-keys)))
;;; @ end