source_field_width	17
ellipses		true
document_windowing	true
lines_per_window	50
index_dotfiles		false

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

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"}
  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 "}}
  Format 
    {"\nFrom ", // Note that icase and startline don't work for new doc delimiter
	{anyorder optional {startline, "From: ", SOURCE, "\n"},
		  optional {startline, "Date: ", DATE, "\n"},
        	  optional {startline, "Subject: ", SUBJECT, "\n"}},
     optional, "\n\n", BODY}
}

Template USENET
{
  Recognize 
    {"\nArticle ",
     {anyorder, {startline, "Newsgroups: "},
	        {startline, "From: "},
	        {startline, "Date: "},
	        {startline, "Subject: "}}}
  Format 
    {"\nArticle ", 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, icase "</title>"}, BODY}
}

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
}

