ronald@robobar.co.uk (Ronald S H Khoo) (04/25/91)
[ I'm rather out of touch with mush, so please bear with me ... ] argv@zipcode.com (Dan Heller) writes: > This is release 7.2.2 of the Mail User's Shell (mush), Should there not be a realname = buf; at line 61 of init.c ? It seems to lose my name without it :-( Also, regarding line 411 in hdrs.c, > if (show_to && strncmp(p, login, strlen(login))) question: what is the strncmp for? It seems to prevent recognition of alternates where the login is not the same, or e.g. if my From: were something like R.S.H.Khoo@RoboBar.Co.UK, even if I specified that as an alternate .... Would it do any harm to delete the strncmp ? Thanks for any reply... -- Ronald Khoo <ronald@robobar.co.uk> +44 81 991 1142 (O) +44 71 229 7741 (H)
schaefer@ogicse.ogi.edu (Barton E. Schaefer) (04/25/91)
In article <1991Apr24.220750.15603@robobar.co.uk> ronald@robobar.co.uk (Ronald S H Khoo) writes: } Should there not be a } } realname = buf; } } at line 61 of init.c ? It seems to lose my name without it :-( No, but line 75 should read (realname && *buf), not (realname && *realname). } Also, regarding line 411 in hdrs.c, } } > if (show_to && strncmp(p, login, strlen(login))) My copy says !strncmp(p, login, strlen(login)) .... } question: what is the strncmp for? The original definition of the TO: processing was just to show you the recipient of messages you sent from the local machine, not messages you may have sent to yourself from elsewhere. } Would it do any harm to delete the strncmp ? No. -- Bart Schaefer schaefer@zipcode.com Z-Code Software Corporation schaefer@cse.ogi.edu
ronald@robobar.co.uk (Ronald S H Khoo) (05/02/91)
schaefer@ogicse.ogi.edu (Barton E. Schaefer) writes: > } Also, regarding line 411 in hdrs.c, > } > if (show_to && strncmp(p, login, strlen(login))) > My copy says !strncmp(p, login, strlen(login)) .... Ooops. Finger trouble. So does mine. > The original definition of the TO: processing was just to show you the > recipient of messages you sent from the local machine What if mail originating from the local machine doesn't include the login ? Some MMDF installations do this, e.g. From: R.Khoo@robobar.co.uk (I don't do this at the mo, but might in future) > } Would it do any harm to delete the strncmp ? > No. Thanks, Bart. I'll do that. -- Ronald Khoo <ronald@robobar.co.uk> +44 81 991 1142 (O) +44 71 229 7741 (H)