HEX
Server: Apache/2.4.65 (Unix) OpenSSL/3.5.5
System: Linux cpanel.ns-taberra.com 5.14.0-681.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 11 20:19:22 UTC 2026 x86_64
User: asif201 (1002)
PHP: 8.3.0
Disabled: NONE
Upload Files
File: //usr/share/enscript/hl/mail.st
/**
 * Name: mail
 * Description: Mail and news articles.
 * Author: Originally by Markku Rossi <mtr@iki.fi>, heavily modified
 * by Matthew Weigel <weigel@pitt.edu>
 */

state mail_body extends Highlight
{
  BEGIN {
    reference_face (false);
  }
  /^[ \t]*>/ {
    comment_face (true);
    language_print ($0);
    call (eat_one_line);
    comment_face (false);
  }
}

state mail_header extends Highlight
{
  BEGIN {
    reference_face (true);
  }

  END {
    comment_face (true);
  }
  /[ \t:]/ {
    language_print ($0);
    return;
  }
}

state mail extends HighlightEntry
{
  /^[ \t]*$/ {
    /* Move to the mail body. */
    call (mail_body);
  }

  /^/ {
    reference_face (true);
    language_print ($0);
    call (mail_header);
    comment_face (true);
  }
}


/*
Local variables:
mode: c
End:
*/