Common Macros

From ESM Wiki
(Difference between revisions)
Jump to: navigation, search
Line 16: Line 16:
 
[[#$body.html|$body.html]]<br/>
 
[[#$body.html|$body.html]]<br/>
 
[[#$body_part|$body_part]]<br/>
 
[[#$body_part|$body_part]]<br/>
 +
[[#$body_part.is_body|$body_part.is_body]]<br/>
 +
[[#$body_part.is_attachment|$body_part.is_attachment]]<br/>
 
[[#$body_part.size|$body_part.size]]<br/>
 
[[#$body_part.size|$body_part.size]]<br/>
 
[[#$body_part.headers|$body_part.headers]]<br/>
 
[[#$body_part.headers|$body_part.headers]]<br/>
Line 24: Line 26:
 
[[#$body_part.digest|$body_part.digest]]<br/>
 
[[#$body_part.digest|$body_part.digest]]<br/>
 
[[#$body_part.resource_fork|$body_part.resource_fork]]<br/>
 
[[#$body_part.resource_fork|$body_part.resource_fork]]<br/>
[[#$body_part.resource_fork.size|$body_part.resource_fork.size]]<br/>
 
[[#$body_part.resource_fork.digest|$body_part.resource_fork.digest]]<br/>
 
 
     </td>
 
     </td>
 
     <td valign="top" style="padding-right: 10px;">
 
     <td valign="top" style="padding-right: 10px;">
 +
[[#$body_part.resource_fork.size|$body_part.resource_fork.size]]<br/>
 +
[[#$body_part.resource_fork.digest|$body_part.resource_fork.digest]]<br/>
 
[[#$data|$data]]<br/>
 
[[#$data|$data]]<br/>
 
[[#$data.size|$data.size]]<br/>
 
[[#$data.size|$data.size]]<br/>
Line 49: Line 51:
 
[[#$host|$host]]<br/>
 
[[#$host|$host]]<br/>
 
[[#$ip|$ip]]<br/>
 
[[#$ip|$ip]]<br/>
[[#$ip.dec|$ip.dec]]<br/>
 
[[#$ip.hex|$ip.hex]]<br/>
 
 
     </td>
 
     </td>
 
     <td valign="top" style="padding-right: 10px;">
 
     <td valign="top" style="padding-right: 10px;">
 +
[[#$ip.dec|$ip.dec]]<br/>
 +
[[#$ip.hex|$ip.hex]]<br/>
 
[[#$if_not_empty|$if_not_empty]]<br/>
 
[[#$if_not_empty|$if_not_empty]]<br/>
 
[[#$gethostname|$gethostname]]<br/>
 
[[#$gethostname|$gethostname]]<br/>
Line 74: Line 76:
 
[[#$subject|$subject]]<br/>
 
[[#$subject|$subject]]<br/>
 
[[#$text_find_replace_all|$text_find_replace_all]]<br/>
 
[[#$text_find_replace_all|$text_find_replace_all]]<br/>
[[#$thread|$thread]]<br/>
 
[[#$time|$time]]<br/>
 
 
     </td>
 
     </td>
 
     <td valign="top" style="padding-right: 10px;">
 
     <td valign="top" style="padding-right: 10px;">
 +
[[#$thread|$thread]]<br/>
 +
[[#$time|$time]]<br/>
 
[[#$time6|$time6]]<br/>
 
[[#$time6|$time6]]<br/>
 
[[#$uri_escape|$uri_escape]]<br/>
 
[[#$uri_escape|$uri_escape]]<br/>
Line 101: Line 103:
 
==== $body.html ====
 
==== $body.html ====
 
==== $body_part ====
 
==== $body_part ====
 +
==== $body_part.is_body ====
 +
==== $body_part.is_attachment ====
 
==== $body_part.size ====
 
==== $body_part.size ====
 
==== $body_part.headers ====
 
==== $body_part.headers ====

Revision as of 15:00, 9 October 2009

The following macros can be used in templates and conditions of all engines:

$attachment
$attachment.base64
$attachment.headers
$attachment.text
$attachment.malformed
$attachment.multipart
$attachment.resource_fork
$attachment.resource_fork.base64
$attachment.file_name
$attachment.mime_type
$body
$body.html
$body_part
$body_part.is_body
$body_part.is_attachment
$body_part.size
$body_part.headers
$body_part.text
$body_part.malformed
$body_part.multipart
$body_part.file_name
$body_part.digest
$body_part.resource_fork

$body_part.resource_fork.size
$body_part.resource_fork.digest
$data
$data.size
$data.digest
$decode_base64
$empty
$encode_base64
$json_escape
$headers
$headers.message_id
$headers.in_reply_to
$headers.references
$headers.from
$headers.sender
$headers.reply_to
$headers.to
$headers.cc
$headers.bcc
$headers.subject
$hmac
$host
$ip

$ip.dec
$ip.hex
$if_not_empty
$gethostname
$group
$message_id
$md5
$not_empty
$pid
$recipient
$recipient.local
$recipient.domain
$recipient.component
$sender
$sender.local
$sender.domain
$sender.component
$sha1
$size
$size_hex
$sp, $br, $cr, $lf, $crlf, $htab
$subject
$text_find_replace_all

$thread
$time
$time6
$uri_escape
$wrap
$xml_cdata
$xml_escape
$year, $month, $day, $hour, $minute, $second

$attachment

$attachment.base64

$attachment.headers

$attachment.text

$attachment.malformed

$attachment.multipart

$attachment.resource_fork

$attachment.resource_fork.base64

$attachment.file_name

$attachment.mime_type

$body

$body.html

$body_part

$body_part.is_body

$body_part.is_attachment

$body_part.size

$body_part.headers

$body_part.text]]

$body_part.malformed

$body_part.multipart

$body_part.file_name

$body_part.digest

$body_part.resource_fork

$body_part.resource_fork.size

$body_part.resource_fork.digest

$data

$data.size

$data.digest

$decode_base64

$empty

$encode_base64

$json_escape

$headers

$headers.message_id

$headers.in_reply_to

$headers.references

$headers.from

$headers.sender

$headers.reply_to

$headers.to

$headers.cc

$headers.bcc

$headers.subject

$hmac

$host

$ip

$ip.dec

$ip.hex

$if_not_empty

$gethostname

$group

$message_id

$md5

$not_empty

$pid

$recipient

$recipient.local

$recipient.domain

$recipient.component

$sender

$sender.local

$sender.domain

$sender.component

$sha1

$size

$size_hex

$sp, $br, $cr, $lf, $crlf, $htab

$subject

$text_find_replace_all

$thread

$time

$time6

$uri_escape

$wrap

$xml_cdata

$xml_escape

$year, $month, $day, $hour, $minute, $second

Personal tools