home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / comms / network / amigaelm.lzh / prefs.h < prev    next >
C/C++ Source or Header  |  1992-03-15  |  4KB  |  137 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <exec/types.h>
  4. #include <ctype.h>
  5. #include <string.h>
  6. #include <libraries/dosextens.h>
  7.  
  8. #define Prototype extern
  9. #define Local static
  10.  
  11. #define VERSION        "1.11"
  12. #define UUMAIL        "uumail:"
  13. #define UULIB        "uulib:"
  14. #define UULIB_CONFIG    "uulib:Config"
  15. #define SIGNATURE    ".signature"
  16. #define ELM_RC        ".elm/elmrc"
  17. #define ELM_HEADERS    ".elm/elmheaders"
  18. #define ELM_ALIASES    ".elm/aliases"
  19. #define REVERSE_ON    "\033[7m"
  20. #define UNDERLINE_ON    "\033[4m"
  21. #define BOLDFACE_ON    "\033[1m"
  22. #define PLAIN_TEXT    "\033[0m"
  23. #define FULL        0
  24. #define UPDATE        1
  25. #define MAX_LINELENGTH    1024
  26.  
  27. typedef int StatusFlag;
  28.  
  29. struct MailItem {
  30.     struct MailItem *next;      /* next mail item in list */
  31.     long ArtikelStart;          /* start of article within file */
  32.     long ArtikelEnd;            /* end of article within file */
  33.     long TextStart;             /* start of real text */
  34.     long SignatureStart;        /* start of signature */
  35.     long Lines;                 /* number of lines (real text, no header) */
  36.     long TotalLines;            /* total number of lines (header and body) */
  37.     char *From;                 /* sender (full address) */
  38.     char *FromName;             /* sender (real name) */
  39.     char *To;                   /* receiver (normal: me) */
  40.     char *ToName;               /* receiver (real name) */
  41.     char *Cc;                   /* carbon copy */
  42.     char *Bcc;                  /* blind carbon copy */
  43.     char *Subject;              /* Subject: */
  44.     char *Date;                 /* date (short) */
  45.     char *RR_To;                /* Return-Receipt-To: */
  46.     char *RV_To;                /* Return-View-To: */
  47.     char *ReplyTo;              /* Reply-To: */
  48.     char *MessageID;            /* Message-Id: */
  49.     StatusFlag Status;          /* status flags */
  50.     StatusFlag OldStatus;       /* old status flags (folder changed?) */
  51.     int Urgent;                 /* this message is tagged urgent */
  52. };
  53.  
  54. struct AliasItem {
  55.     struct AliasItem *next;
  56.     char *alias;
  57.     char *real;
  58. };
  59.  
  60.  
  61. #include "protos.h"
  62.  
  63. /* Status Flags */
  64. #define DELETED        2
  65. #define LOGGED        4
  66. #define ANSWERED    8
  67. #define FORWARDED    16
  68. #define READ        32
  69. #define RR        64
  70. #define OLD        128
  71. #define BOUNCED        256
  72.  
  73. /* Sendmail Versions */
  74. #define SM_FEULNER    1
  75. #define SM_DILLON    2
  76. #define SM_OTHER    3
  77.  
  78. /* we want no enforcer hits */
  79. #define STR(x) ((x)?(x):(""))
  80.  
  81. extern int MaxArticle;
  82. extern int SendmailVersion;
  83. extern BOOL MailToDelete;
  84. extern struct MailItem *MailList;
  85. extern struct AliasItem *AliasList;
  86.  
  87. extern char *MailTmp;                   /* temporary mail file */
  88. extern char *UserName;
  89. extern char *HostName;
  90. extern char *RealName;
  91. extern char *MailEditor;
  92. extern char *DomainName;
  93. extern char *FolderName;
  94. extern char *PrefixString;
  95. extern char *SentArchive;
  96. extern char *ReceivedFolder;
  97. extern char *ReplyIntro;
  98. extern char *ForwardIntro;
  99. extern char *ColorData;
  100. extern char *FileBuffer;
  101. extern char *StdFontName;
  102. extern char *PagerFontName;
  103. extern char *IntuiFontName;
  104. extern char *Pager;
  105. extern char *PubScreenName;
  106. extern char *Shell;
  107. extern char *PipeDefault;
  108.  
  109. extern BOOL ReturnView;
  110. extern BOOL ReturnReceipt;
  111. extern BOOL WantView;
  112. extern BOOL WantReturn;
  113. extern BOOL ShowHeader;
  114. extern BOOL ShowSig;
  115. extern BOOL AlwaysDelete;
  116. extern BOOL AlwaysKeep;
  117. extern BOOL KeepBackup;
  118. extern BOOL UseOwnScreen;
  119. extern BOOL ShanghaiWindows;
  120. extern BOOL ReverseSorting;
  121. extern BOOL WBToFront;
  122. extern BOOL UseCmdClearKludge;
  123. extern char *TBuffer;                   /* help for output */
  124.  
  125. extern int Win_Height;                  /* characters */
  126. extern int Win_Width;                   /* characters */
  127.  
  128. extern int Screen_Height;               /* pixels */
  129. extern int Screen_Width;                /* pixels */
  130. extern int Screen_Interlace;            /* yes/no */
  131.  
  132. extern int StdFontSize;                 /* font y-size */
  133. extern int PagerFontSize;               /* font y-size */
  134. extern int IntuiFontSize;               /* font y-size */
  135.  
  136. extern long FileBufferSize;
  137.