%D \module
%D   [       file=t-correspondence,
%D        version=2009.04.27,
%D          title=\CONTEXT\ User Module,
%D       subtitle=Correspondence,
%D         author=Wolfgang Schuster,
%D           date=\currentdate,
%D      copyright=Wolfgang Schuster,
%D          email=schuster.wolfgang@googlemail.com,
%D        license=Public Domain]

\writestatus{loading}{Context User Module / Correspondence}

\unprotect

%D I use a few extra constants and variables in my module.

\ifx\setinterfaceconstant\undefined % fallback for old context versions
  \let\setinterfaceconstant\gobbletwoarguments
  \let\setinterfacevariable\gobbletwoarguments
  \let\setinterfaceelement \gobbletwoarguments
\fi

\startinterface all
  \setinterfaceconstant {head}            {head}
  \setinterfaceconstant {foot}            {foot}
  \setinterfaceconstant {topmark}         {topmark}
  \setinterfaceconstant {botmark}         {botmark}
  \setinterfaceconstant {cutmark}         {cutmark}
  \setinterfaceconstant {endmark}         {endmark}
  \setinterfaceconstant {usermark}        {usermark}
  \setinterfaceconstant {foldmark}        {foldmark}
  \setinterfaceconstant {extension}       {extension}
  \setinterfaceconstant {interface}       {interface}
  \setinterfaceconstant {backgroundimage} {backgroundimage}
  \setinterfaceconstant {whitespace}      {whitespace}
  \setinterfaceconstant {nexthead}        {nexthead}
  \setinterfaceconstant {lefthead}        {lefthead}
  \setinterfaceconstant {righthead}       {righthead}
  \setinterfaceconstant {nextfoot}        {nextfoot}
  \setinterfaceconstant {leftfoot}        {leftfoot}
  \setinterfaceconstant {rightfoot}       {rightfoot}
  \setinterfaceconstant {content}         {content}
  \setinterfaceconstant {backaddress}     {backaddress}
  \setinterfaceconstant {optimize}        {optimize}
  \setinterfaceconstant {opening}         {opening}
  \setinterfaceconstant {closing}         {closing}
  \setinterfaceconstant {signature}       {signature}
  \setinterfaceconstant {dispatch}        {dispatch}
  \setinterfaceconstant {appendices}      {appendices}
  \setinterfaceconstant {fromaddress}     {fromaddress}
  \setinterfaceconstant {frombank}        {frombank}
  \setinterfaceconstant {frommail}        {frommail}
  \setinterfaceconstant {fromfax}         {fromfax}
  \setinterfaceconstant {fromlogo}        {fromlogo}
  \setinterfaceconstant {fromname}        {fromname}
  \setinterfaceconstant {fromphone}       {fromphone}
  \setinterfaceconstant {fromurl}         {fromurl}
  \setinterfaceconstant {toname}          {toname}
  \setinterfaceconstant {toaddress}       {toaddress}
  \setinterfaceconstant {enclosure}       {enclosure}
  \setinterfaceconstant {copy}            {copy}
  \setinterfaceconstant {ps}              {ps}
  \setinterfaceconstant {postscript}      {postscript}
  \setinterfaceconstant {attention}       {attention}
  \setinterfaceconstant {distribution}    {distribution}
  \setinterfaceconstant {salutation}      {salutation}
  \setinterfaceconstant {addressee}       {addressee}
  \setinterfaceconstant {prefix}          {prefix}
  \setinterfaceconstant {suffix}          {suffix}
  \setinterfaceconstant {initials}        {initials}
  \setinterfaceconstant {formalname}      {formalname}
  \setinterfaceconstant {informalname}    {informalname}
  \setinterfaceconstant {yourref}         {yourref}
  \setinterfaceconstant {yourmail}        {yourmail}
  \setinterfaceconstant {myref}           {myref}
  \setinterfaceconstant {mymail}          {mymail}
  \setinterfaceconstant {customer}        {customer}
  \setinterfaceconstant {invoice}         {invoice}
  \setinterfaceconstant {subject}         {subject}
  \setinterfaceconstant {cc}              {cc}
  \setinterfaceconstant {enclosure}       {enclosure}
  \setinterfaceconstant {encl}            {encl}
  \setinterfaceconstant {phone}           {phone}
  \setinterfaceconstant {fax}             {fax}
  \setinterfaceconstant {email}           {email}
  \setinterfaceconstant {url}             {url}
  \setinterfaceconstant {bank}            {bank}
  \setinterfaceconstant {name}            {name}
  \setinterfaceconstant {room}            {room}
  \setinterfaceconstant {yourorder}       {yourorder}
  \setinterfaceconstant {ourinvoice}      {ourinvoice}
  \setinterfaceconstant {rulewidth}       {rulewidth}
  \setinterfaceconstant {fromalign}       {fromalign}
  \setinterfaceconstant {fromrule}        {fromrule}
\stopinterface

\startinterface all
  \setinterfacevariable {secondpage}      {secondpage}
  \setinterfacevariable {foot}            {foot}
  \setinterfacevariable {topmark}         {topmark}
  \setinterfacevariable {botmark}         {botmark}
  \setinterfacevariable {cutmark}         {cutmark}
  \setinterfacevariable {endmark}         {endmark}
  \setinterfacevariable {option}          {option}
  \setinterfacevariable {foldmark}        {foldmark}
  \setinterfacevariable {usermark}        {usermark}
  \setinterfacevariable {layer}           {layer}
  \setinterfacevariable {firsthead}       {firsthead}
  \setinterfacevariable {nexthead}        {nexthead}
  \setinterfacevariable {lefthead}        {lefthead}
  \setinterfacevariable {righthead}       {righthead}
  \setinterfacevariable {firstfoot}       {firstfoot}
  \setinterfacevariable {nextfoot}        {nextfoot}
  \setinterfacevariable {leftfoot}        {leftfoot}
  \setinterfacevariable {rightfoot}       {rightfoot}
  \setinterfacevariable {layout}          {layout}
  \setinterfacevariable {place}           {place}
  \setinterfacevariable {initialize}      {initialize}
  \setinterfacevariable {finish}          {finish}
  \setinterfacevariable {sequence}        {sequence}
  \setinterfacevariable {style}           {style}
  \setinterfacevariable {extension}       {extension}
  \setinterfacevariable {interface}       {interface}
  \setinterfacevariable {resume}          {resume}
  \setinterfacevariable {letter}          {letter}
  \setinterfacevariable {backaddress}     {backaddress}
  \setinterfacevariable {reference}       {reference}
  \setinterfacevariable {location}        {location}
  \setinterfacevariable {address}         {address}
  \setinterfacevariable {opening}         {opening}
  \setinterfacevariable {closing}         {closing}
  \setinterfacevariable {letternext}      {letternext}
  \setinterfacevariable {lettermain}      {lettermain}
  \setinterfacevariable {special}         {special}
  \setinterfacevariable {notation}        {notation}
  \setinterfacevariable {inside}          {inside}
  \setinterfacevariable {optimize}        {optimize}
  \setinterfacevariable {file}            {file}
  \setinterfacevariable {e}               {e}
  \setinterfacevariable {data}            {data}
  \setinterfacevariable {sender}          {sender}
  \setinterfacevariable {dispatch}        {dispatch}
  \setinterfacevariable {enclosure}       {enclosure}
  \setinterfacevariable {copy}            {copy}
  \setinterfacevariable {nobreak}         {nobreak}
  \setinterfacevariable {endgraf}         {endgraf}
  \setinterfacevariable {memo}            {memo}
  \setinterfacevariable {addressee}       {addressee}
  \setinterfacevariable {french}          {french}
  \setinterfacevariable {simplified}      {simplified}
  \setinterfacevariable {fullblock}       {fullblock}
  \setinterfacevariable {hanging}         {hanging}
  \setinterfacevariable {modified}        {modified}
  \setinterfacevariable {semiblock}       {semiblock}
  \setinterfacevariable {contact}         {contact}
  \setinterfacevariable {handle}          {handle}
  \setinterfacevariable {casual}          {casual}
  \setinterfacevariable {classic}         {classic}
  \setinterfacevariable {knuth}           {knuth}
  \setinterfacevariable {firstname}       {firstname}
  \setinterfacevariable {familyname}      {familyname}
  \setinterfacevariable {street}          {street}
  \setinterfacevariable {town}            {town}
  \setinterfacevariable {mobile}          {mobile}
  \setinterfacevariable {phone}           {phone}
  \setinterfacevariable {fax}             {fax}
  \setinterfacevariable {email}           {email}
  \setinterfacevariable {info}            {info}
  \setinterfacevariable {correspondence}  {correspondence}
\stopinterface

\startinterface all
  \setinterfaceelement  {set}             {set}
  \setinterfaceelement  {value}           {value}
  \setinterfaceelement  {complex}         {complex}
  \setinterfaceelement  {simple}          {simple}
  \setinterfaceelement  {use}             {use}
  \setinterfaceelement  {define}          {define}
  \setinterfaceelement  {flush}           {flush}
\stopinterface

%D Core macros.

\loadmarkfile{t-correspondence}

\protect \endinput
