summaryrefslogtreecommitdiffstats
path: root/util/bbsmail.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/bbsmail.c')
-rw-r--r--util/bbsmail.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/util/bbsmail.c b/util/bbsmail.c
index 4cc441f2..96f5b512 100644
--- a/util/bbsmail.c
+++ b/util/bbsmail.c
@@ -9,40 +9,6 @@ extern char *notitle[], *nofrom[], *nocont[];
#endif
-int
-strip_ansi(char *buf, const char *str, int mode)
-{
- register int ansi, count = 0;
-
- for (ansi = 0; *str /* && *str != '\n' */ ; str++) {
- if (*str == 27) {
- if (mode) {
- if (buf)
- *buf++ = *str;
- count++;
- }
- ansi = 1;
- } else if (ansi && strchr("[;1234567890mfHABCDnsuJKc=n", *str)) {
- if ((mode == NO_RELOAD && !strchr("c=n", *str)) ||
- (mode == ONLY_COLOR && strchr("[;1234567890m", *str))) {
- if (buf)
- *buf++ = *str;
- count++;
- }
- if (strchr("mHn ", *str))
- ansi = 0;
- } else {
- ansi = 0;
- if (buf)
- *buf++ = *str;
- count++;
- }
- }
- if (buf)
- *buf = '\0';
- return count;
-}
-
int mailalertuid(int tuid)
{
userinfo_t *uentp=NULL;