File/plugins/gpg/functions/hooks.php

Description

NaSMail GPG plugin

Copyright (c) 2002-2005 Braverock Ventures Copyright (c) 2007 The NaSMail Project This file is part of NaSMail gpg plugin. It stores hooked functions that don't depend on gpg plugin configuration.

This plugin is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This plugin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with plugin; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Functions
gpg_decrypt_attachment_do (line 250)

Hook function for GPG attachments with application/gpg-encrypted, attachment application/pgp, application/octec-stream and text/plain mime type.

This function looks for a '-----BEGIN PGP MESSAGE----' or '-----BEGIN PGP PUBLIC KEY BLOCK-----' and will pop a link if found

void gpg_decrypt_attachment_do ( &$attachinfo, array $attachinfo)
  • array $attachinfo: array passed by NaSMail to attachment handlers
  • &$attachinfo
gpg_handle_pubkeys_do (line 198)

Handles attached PGP public keys

  • since: 2.1.nsm
void gpg_handle_pubkeys_do (array &$args)
  • array &$args: Hook arguments
gpg_help_chapter_do (line 68)

This function displays the GPG Help link on the main SM help screen

Newer versions of SM will make the GPG Help link a numbered chapter link at the bottom of the list, while older versions will add a bullet at the top of the page.

void gpg_help_chapter_do ()
gpg_identity_process_hook (line 116)

Function to handle general identity save triggered by options_identity_process hook

void gpg_identity_process_hook (array $args)
  • array $args: Arguments passed by options_identities_process
gpg_identity_renumber_hook (line 162)

Function used to re-assign GPG->SM identity maps

void gpg_identity_renumber_hook (array $args)
  • array $args: Arguments passed from option_identities_renumber hook
gpg_loading_constants_do (line 51)

Sets constants used in plugin

void gpg_loading_constants_do ()
gpg_loading_prefs_do (line 99)

Function bypasses compose form security checks

void gpg_loading_prefs_do ()
gpg_optpage_set_loadinfo_do (line 29)

Sets gpg option block

  • since: 2.1.nsm
void gpg_optpage_set_loadinfo_do ()
gpg_show_menuline_do (line 84)

This function adds the Keyring link to the main SM top menu on every screen.

void gpg_show_menuline_do ()

Documentation generated on Sun, 22 Nov 2009 17:36:37 +0200 by phpDocumentor 1.4.3