File/plugins/digest_rfc1153/functions.php

Description

Copyright (c) 2008 The NaSMail Project This file is part of NaSMail digest_rfc1153 plugin.

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

This script contains code based on reply/forward handing in NaSMail src/compose.php. Copyright (c) 1999-2006 The SquirrelMail Project Team

  • version: $Id: functions.php 1242 2008-04-05 05:37:41Z tokul $
Constants
DIGEST_RFC1153_DELIMITER = "\n----------------------------------------------------------------------\n" (line 28)
DIGEST_RFC1153_DELIMITER2 = "\n\n------------------------------\n\n" (line 29)
DIGEST_RFC1153_SUBJECT_REGEXP = '/(\S+) Digest.+(\d+).+(\d+)/' (line 30)
Functions
digest_rfc1153_compose_form_process_do (line 284)

Detects plugin actions and general replies to digest messages and changes compose message data.

void digest_rfc1153_compose_form_process_do ( &$args, array $args)
  • array $args: Hook arguments
  • &$args
digest_rfc1153_get_message (line 251)

Gets message part from rfc1153 digest body

  • return: message body (simple version of message/rfc822) or empty string on error
string digest_rfc1153_get_message (stream $imap_stream, string $mailbox, integer $id, string $ent_id, integer $mess_id)
  • stream $imap_stream: IMAP connection resource
  • string $mailbox: Mailbox name
  • integer $id: Message ID
  • string $ent_id: Message part ID (Used for attached digest messages). Use 1 for others
  • integer $mess_id: Digest part ID
digest_rfc1153_message_body_do (line 36)

Removes digest messages from main message body

void digest_rfc1153_message_body_do ( &$data, array $data)
  • array $data: Hook data. $data[1] = message body
  • &$data
digest_rfc1153_print_msg_line (line 171)

Creates HTML table cells with message information

string digest_rfc1153_print_msg_line (object Rfc822Header $Rfc822Header, string $bgcolor, string $message_link, integer $size)
  • object Rfc822Header $Rfc822Header: Header data
  • string $bgcolor: cell background color
  • string $message_link: Link to message
  • integer $size
digest_rfc1153_quote_delimiter (line 376)

Quotes delimiter according to message quoting rules

  • return: Quoted delimiter
string digest_rfc1153_quote_delimiter (string $delimiter, string $action)
  • string $delimiter: Delimiter
  • string $action: smaction value of compose form
digest_rfc1153_read_body_bottom_do (line 59)

Displays list of digest messages after main message body

void digest_rfc1153_read_body_bottom_do ()

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