Set any appropriate fields in the best effort message. The message does
not actually get added to any streams.

@param msgItem The message to add
965972
private void addBestEffortMessage(SIMPMessage msgItem) throws SIResourceException
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "addBestEffortMessage", new Object[] { msgItem });
    
    // Get the JsMessage as we need to update the Guaranteed fields
    JsMessage jsMsg = msgItem.getMessage();
 
    long tick = this.messageProcessor.nextTick();

    //Set a unique id in the message if explicitly told to or
    //if one has not already been set
    if(msgItem.getRequiresNewId()  ||  jsMsg.getSystemMessageId()==null)
    {
      jsMsg.setSystemMessageSourceUuid(this.messageProcessor.getMessagingEngineUuid());
      jsMsg.setSystemMessageValue(tick);
      msgItem.setRequiresNewId(false);
    }

    jsMsg.setGuaranteedValueEndTick(tick);
    jsMsg.setGuaranteedValueValueTick(tick);
    jsMsg.setGuaranteedValueRequestedOnly(false);

    // Keep MFP happy
    jsMsg.setGuaranteedValueStartTick(-1);
    jsMsg.setGuaranteedValueCompletedPrefix(-1);

    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "addBestEffortMessage");
  }
1334647
public void setProperty(final OutlookMessageProperty msgProp) {
		final String name = msgProp.getClazz();
		final Object value = msgProp.getData();

		if (name == null || value == null) {
			return;
		}

		//Most fields expect a String representation of the value
		final String stringValue = convertValueToString(value);

		int mapiClass = -1;
		try {
			mapiClass = Integer.parseInt(name, 16);
		} catch (final NumberFormatException e) {
			LOGGER.trace("Unexpected type: {}", name, e);
		}

		switch (mapiClass) {
			case 0x1a: //MESSAGE CLASS
				setMessageClass(stringValue);
				break;
			case 0x1035:
				setMessageId(stringValue);
				break;
			case 0x37: //SUBJECT
			case 0xe1d: //NORMALIZED SUBJECT
				setSubject(stringValue);
				break;
			case 0xc1f: //SENDER EMAIL ADDRESS
			case 0x65: //SENT REPRESENTING EMAIL ADDRESS
			case 0x3ffa: //LAST MODIFIER NAME
			case 0x800d:
			case 0x8008:
				setFromEmail(stringValue);
				break;
			case 0x42: //SENT REPRESENTING NAME
				setFromName(stringValue);
				break;
			case 0x76: //RECEIVED BY EMAIL ADDRESS
				setToEmail(stringValue, true);
				break;
			case 0x8000:
				setToEmail(stringValue);
				break;
			case 0x3001: //DISPLAY NAME
				setToName(stringValue);
				break;
			case 0xe04: //DISPLAY TO
				setDisplayTo(stringValue);
				break;
			case 0xe03: //DISPLAY CC
				setDisplayCc(stringValue);
				break;
			case 0xe02: //DISPLAY BCC
				setDisplayBcc(stringValue);
				break;
			case 0x1013: //HTML
				setBodyHTML(stringValue);
				break;
			case 0x1000: //BODY
				setBodyText(stringValue);
				break;
			case 0x1009: //RTF COMPRESSED
				setBodyRTF(value);
				break;
			case 0x7d: //TRANSPORT MESSAGE HEADERS
				setHeaders(stringValue);
				break;
			case 0x3007: //CREATION TIME
				setCreationDate(stringValue);
				break;
			case 0x3008: //LAST MODIFICATION TIME
				setLastModificationDate(stringValue);
				break;
			case 0x39: //CLIENT SUBMIT TIME
				setClientSubmitTime(stringValue);
				break;
			case  0x8005: // S/MIME details
				setSmime(stringValue);
				break;
		}

		// save all properties (incl. those identified above)
		properties.put(mapiClass, value);

		checkToRecipient();

		// other possible values (some are duplicates)
		// 0044: recv name
		// 004d: author
		// 0050: reply
		// 005a: sender
		// 0065: sent email
		// 0076: received email
		// 0078: repr. email
		// 0c1a: sender name
		// 0e04: to
		// 0e1d: subject normalized
		// 1046: sender email
		// 3003: email address
		// 1008 rtf sync
	}
960846
private void initMessage(HttpMessage message) {
        StaticMessageContentBuilder staticMessageContentBuilder = StaticMessageContentBuilder.withMessage(message);
        staticMessageContentBuilder.setMessageHeaders(message.getHeaders());
        getAction().setMessageBuilder(new HttpMessageContentBuilder(message, staticMessageContentBuilder));
    }
758673
@SneakyThrows
    public void commitAll(final String message) {
        this.gitInstance.add().addFilepattern(".").call();
        this.gitInstance.commit()
            .setMessage(message)
            .setAll(true)
            .setAuthor("CAS", "cas@apereo.org")
            .call();
    }
261048
public void addMessage(String message) {
    ActionMessages messages = (ActionMessages) next.get(Flash.MESSAGES);
    if (null == messages) {
      messages = new ActionMessages();
      put(Flash.MESSAGES, messages);
    }
    messages.getMessages().add(message);
  }
301795
public void addMessage(String message, int x, int y, long time)
    {
        messages.add(new MessageData(message, x, y, time));
        hasMessage = true;
    }
349464
public void addErrorMsgs(final Set<String> msgs) {
    if (msgs != null) {
      this._errorMsgs.addAll(msgs);
      if (!msgs.isEmpty()) {
        this._status = ValidationStatus.ERROR;
      }
    }
  }
1123293
public void setupMessageDataDesc()
    {
        super.setupMessageDataDesc();
        
        for (String key: PROPERTIES)
        {
            this.addMessageFieldDesc(key, String.class, MessageFieldDesc.REQUIRED, null);
        }
    }
1211492
@Override
    public void setGatherMessages(String gatherMessages) throws JMSException {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setGatherMessages", gatherMessages);

        // Make sure null and empty are treated equally.
        if ((gatherMessages == null) || ("".equals(gatherMessages.trim())))
            gatherMessages = null;

        if ((gatherMessages == null) ||
            (ApiJmsConstants.GATHER_MESSAGES_OFF.equals(gatherMessages) ||
            (ApiJmsConstants.GATHER_MESSAGES_ON.equals(gatherMessages)))) {

            updateProperty(GATHER_MESSAGES, gatherMessages);
        }
        else {
            // bad value, throw exception
            String key = "INVALID_VALUE_CWSIA0281";
            Object[] inserts = new Object[] { GATHER_MESSAGES, gatherMessages };
            throw (JMSException) JmsErrorUtils.newThrowable(JMSException.class, key, inserts, tc);
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setGatherMessages");
    }
978842
public function setupMessage(Message $message){

        $this->addRecipients($message);

        $this->setSubject($message);

        $this->callCustomBuilder($message);

    }
589142
public void setBusy(String message) {
        busyMessage = message = StrUtil.formatMessage(message);

        if (busyDisabled) {
            busyPending = true;
        } else if (message != null) {
            disableActions(true);
            ClientUtil.busy(container, message);
            busyPending = !isVisible();
        } else {
            disableActions(false);
            ClientUtil.busy(container, null);
            busyPending = false;
        }
    }
138498
public void addPayloadProperties(Object msg, BaseMessage message)
    {
        MessageDataDesc messageDataDesc = message.getMessageDataDesc(null);   // Top level only
        if (messageDataDesc != null)
        {
            Map<String,Class<?>> mapPropertyNames = messageDataDesc.getPayloadPropertyNames(null);
        
            if (mapPropertyNames != null)
            {
                Map<String,Object> properties = this.getPayloadProperties(msg, mapPropertyNames);
                for (String key : properties.keySet())
                {
                    message.put(key, properties.get(key));
                }
            }
        }
    }
963595
public void setProperty(final OutlookMessageProperty msgProp) {
		String name = msgProp.getClazz();
		final Object value = msgProp.getData();

		if (name == null || value == null) {
			return;
		}
		name = name.intern();

		int mapiClass = -1;
		try {
			mapiClass = parseInt(name, 16);
		} catch (final NumberFormatException e) {
			LOGGER.error("Unexpected mapi class: {}", name, e);
		}

		if (mapiClass == 0x3003 || mapiClass == 0x39fe) {
			setAddress((String) value);
		} else if (mapiClass == 0x3001) {
			setName((String) value);
		}

		// save all properties (incl. those identified above)
		properties.put(mapiClass, value);
	}
1375
public void
apply(Message m, int error, TSIGRecord old) {
	Record r = generate(m, m.toWire(), error, old);
	m.addRecord(r, Section.ADDITIONAL);
	m.tsigState = Message.TSIG_SIGNED;
}
837787
public function set($field, $msg) {
      @$this->fails['messages'][$field][] = str_replace(":attribute", $field, $msg);
      @$this->fails["failed"]  [$field][] = true;
   }
852144
public void error(final String message) {
        messages.add(new LogMessage(message, LogMessage.Type.ERROR));
        log.error(message);
    }
983992
public void setMessage(String message) {
        requireArgument(message != null && !message.isEmpty(), "Message cannot be null or empty.");
        this.message = message;
    }