source_field_width	17
ellipses		true
document_windowing	true
lines_per_window	50
index_dotfiles		false

Template RMAIL
{
  Recognize 
    {startline, "BABYL OPTIONS:", ignore, "\n",
     "Version:" ignore, "\n",
     "Labels:" ignore, "\n",
     "Note:   This is the header of an rmail file.\n",
     "Note:   If you are seeing it in rmail,\n",
     "Note:    it means the file has no messages in it.\n"}
  Delimiter
    {"^_^L"}
  Format 
    {"^_^L\n", ignore, startline, "*** EOOH ***\n",
     {anyorder, {startline, "From: ", SOURCE, "\n"},
               {startline, "Date: ", DATE, "\n"},
               optional {startline, "Subject: ", SUBJECT, "\n"}},
     "\n\n", BODY}
}

Template plain_email
{
  Recognize 
    {anyorder {startline, "From "}}
  Delimiter
    {startline, "From "}
  Format 
    {startline, "From ", ignore, 
        {anyorder optional {startline, "From: ", SOURCE, "\n"},
                  optional {startline, "Date: ", DATE, "\n"}, 
                  optional {startline, "Subject: ", SUBJECT, "\n"}
        }
     "\n\n", BODY}
}


Template Jimminy
{
  Recognize {startline "Jimminy-header"}
  Delimiter
    {"Jimminy-header <"}   
  Format {
    startline "Jimminy-header <" LOCATION "|" SOURCE "|" SUBJECT "|" DATE ">\n"
    BODY}
}

Template USENET
{
  Recognize 
    {startline "Article ",
     {anyorder, {startline, "Newsgroups: "},
	        {startline, "From: "},
	        {startline, "Date: "},
	        {startline, "Subject: "}}}
  Delimiter
    {startline "Article "}
  Format 
    {startline "Article ", ignore, "\n",
     {anyorder, {startline, "Newsgroups: ", SOURCE, "\n"},
                {startline, "Date: ", DATE, "\n"},
                {startline, "Subject: ", SUBJECT, "\n"}},
     "\n\n", BODY}
}

Template LaTeX
{
  Recognize {anyof "\\documentstyle", "\\documentclass"}
  Format
    {{anyorder optional {"\\title{", SUBJECT, "}" }, 
               optional {"\\author{", SOURCE, "}" },
	       optional {"\\date{", DATE, "}" }}
     optional "\\begin{document}", BODY}
}

Template HTML
{
  Recognize 
    {anyof icase "<html>", icase "<title>", icase "<a href=", icase "<p>"}
  Format 
    {optional {icase "<title>", SUBJECT}, optional {icase "</title>"}, BODY}
}

Template INSPEC
{
  Recognize 
    {startline, "  accession: "}
  Delimiter
    {"  accession:"}
  Format 
    {startline, "  accession: ", 
      {anyorder 
	{startline, "  doc title:", SUBJECT, "\n"}
	{startline, "   pub date:", DATE, "\n"}
	{startline, "     author:", SOURCE, "\n"}
	{startline, "   abstract:", BODY, "\n"}
      }
  }
}

Template PostScript
{
  Recognize {startline, "%!PS-Adobe-"}
  Reject
}

Template PDF
{
  Recognize {startline, "%PDF-"}
  Reject
}

Template HQX
{
  Recognize {startline, "(This file must be converted with BinHex ", ignore, ")\n"}
  Reject
}

Template RCS-CONTROL
{
  Recognize 
   {
     startline, "head", ignore, ";\n",
     startline, "access", ignore, ";\n",
     startline, "symbols", ignore, ";\n"
   }
  Reject
}

TEMPLATE SGML-LINUXDOC
{
   Recognize { startline, "<!DOCTYPE linuxdoc system>" }
   Format {
   	{optional {icase "<title>" SUBJECT},
	 optional {icase "<author>" SOURCE},
	 optional {icase "<date>" DATE}}
	 BODY
	 }
}
	 

 
