Re: Mail not working

From: George (greerga@DRAGON.HAM.MUOHIO.EDU)
Date: 09/30/97


On Tue, 30 Sep 1997, Sorren@usa.net wrote:

>I have installed the attach objs to mail patch , then found that my mail
>in the mud doesn't work correctly, the person deson't receive their mail,
>so I just put back in the stock mail.h and mail.c, then I proceeded to

The patch probably changed more than just mail.h and mail.c.

>the mud on the linux os, and STILL I get ^M inserted into my obj and mob

Could have a short function strip it.

char *stripstring(char *foo)
{
  char buf[MAX_STRING_LENGTH];
  int len = strlen(foo), i, n;

  for (i = 0, n = 0; i <= len; i++)
    if (foo[i] != '\r')
      buf[n++] = foo[i];

  buf[n] = '\0';
  return str_dup(buf);
}

Although I can't confirm that works. :)

>go fine till the improved editor kicks in, I also have a util that I got

This is 'liberal use of debugging printfs' territory.

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST