File/nasmail/plugins/abook_take/add.php

Description

Adds address to address book and returns to message

This file is part of NaSMail Abook Take plugin. Plugin is bundled with NaSMail webmail interface.

NaSMail 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.

NaSMail 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 NaSMail; if not, write to the Free Software Foundation, Inc., 51 Franklin

  • version: $Id: add.php 1454 2009-10-28 11:46:14Z tokul $
  • copyright: (c) 2007,2009 The NaSMail Project
  • since: 1.4
Includes
 include_once (SM_PATH.'include/validate.php') (line 31)

Required files

 include_once (SM_PATH.'functions/addressbook.php') (line 33)
 include_once (SM_PATH.'functions/forms.php') (line 32)
Functions
abook_take_get_names (line 76)

Guesses first and last names from fullname

  • since: 1.4
void abook_take_get_names (string $fullname, string &$firstname, string &$lastname)
  • string $fullname: Full name
  • string &$firstname: First name
  • string &$lastname: Last name
abook_take_parse_address (line 43)

Parses address string into email, name and comment parts

Returns array with 'email', 'firstname', 'lastname' and 'info' keys.

  • since: 1.4
array abook_take_parse_address (string $string)
  • string $string: rfc2822 address string

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