function _support_generate_message_id in Support Ticketing System 6
Same name and namespace in other branches
- 7 support.module \_support_generate_message_id()
 
Generate an RFC2822 message ID.
Parameters
$nid: The support ticket nid.
$cid: The cid of this followup, or 0 for a new ticket.
1 call to _support_generate_message_id()
- support_mail in ./
support.module  - Implementation of hook_mail().
 
File
- ./
support.module, line 1087  - support.module
 
Code
function _support_generate_message_id($nid, $cid = 0) {
  global $base_url;
  $id_left = $cid . '.' . $nid;
  $id_right = preg_replace('|.+://([a-zA-Z0-9\\._-]+).*|', '\\1', $base_url);
  return "<{$id_left}@{$id_right}>";
}