Welcome to the Builder Academy

Question Malformed Mail Header

More
18 Aug 2012 11:03 #702 by Halenbane
I noticed that from time to time when someone logs in, the mud seems to crash and come back up really fast. This is what the syslog is telling me.

Aug 18 03:47:11 :: Mail system - fatal error - malformed mail header
Aug 18 03:47:11 :: Line was: ~

Anyone had this happen before?

Please Log in or Create an account to join the conversation.

More
19 Aug 2012 04:28 #704 by Halenbane
Replied by Halenbane on topic Re: Malformed Mail Header
I saw the reference to "malformed mail header" in mail.c, but not sure what is happening to cause problems. I looked thru the few mails that had been sent (just a few between me and a builder) over the last month or so, and didn't see anything out of the ordinary.

Please Log in or Create an account to join the conversation.

More
19 Aug 2012 05:52 #705 by Vatiken
Replied by Vatiken on topic Re: Malformed Mail Header
Corrupt mail file...
Code:
if (sscanf(line, "### %ld %ld %ld", &recipient, &sender, (long *)&sent_time) != 3) { log("Mail system - fatal error - malformed mail header"); log("Line was: %s", line); return NULL; }
File should look something like this:
Code:
### 1 1 1345355253 Msg1 ~ ### 1 1 1345355264 Msg2 ~

tbaMUD developer/programmer

Please Log in or Create an account to join the conversation.

More
19 Aug 2012 06:52 #706 by Halenbane
Replied by Halenbane on topic Re: Malformed Mail Header
Yeah I thought I had checked them all. I'll look again. Thanks.

Please Log in or Create an account to join the conversation.

More
19 Aug 2012 16:05 #712 by Vatiken
Replied by Vatiken on topic Re: Malformed Mail Header
tbaMUD.com uses the mail system regularly and I have heard of no issues. As far as I know, all mail handling is done in mail.c, so unless you altered something there should be no issues.

tbaMUD developer/programmer

Please Log in or Create an account to join the conversation.

Time to create page: 0.202 seconds