MOO-cows Mailing List Archive


LambdaCore correction: $mail_agent:resolve_addr

On LambdaMOO, I hacked $mail_agent:resolve_addr such that if you attempted to send mail to someone, it would decline to send the message entirely.  This was intended to supercede the refusal code in :receive_message.  However, at that time the refusal code was -not- in LambdaCore, so I included coding to remove my hackery when a Core was generated.  So now we have refusal code without my change.

The code change is in $mail_agent:resolve_addr:
  32:      "vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv";
  33:      "*** LambdaMOO-Specific Hack For Mail Refusal WOO WOO ***";
  34:    elseif (is_player(recip) && recip:refuses_action(from, "mail"))
  35:      player:tell(recip:mail_refused_msg());
  36:      return E_INVARG;
  37:      "^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^";

Without this code, sending mail to a person who is refusing you will produce messages like:

  #30119:receive_message: Blackbriar refuses your mail.
  Mail actually sent to Blackbriar (#30119).

while with this code change I will see only

  Blackbriar refuses your mail.

and the mail will -not- be sent.  (This is a good thing in the mail editor, IMO.)

Seth / Blackbriar
Seth I. Rich -                         no, no quote.
Rabbits on walls, no problem.                          it's far too cold.

Home | Subject Index | Thread Index