SMBAGENT Command Syntax

Each message submitted to SMBAGENT must contain only one command keyword, followed by the <topic name>. Commands and topic names are specified in the subject field of the message. The message body is ignored except in the case of the NEW and POST commands, where it contains information to be copied to the specified area.

The maximum length of a topic used with SMBAGENT is 100 characters.

Recognized SMBAGENT Commands and Actions

Command SMBAGENT Actions
NEW <topic name>

[Introductory Note]

Creates a new topic by creating a topic folder and copying the message body into the folder's associated data area. This hidden message becomes the topic's introduction and will contain the complete list of topic subscribers.

JOIN <topic name> Adds the sender's e-mail address to the subscriber list of the topic and sends the introductory note back as part of the confirmation message.
POST <topic name>

[Posting]

Verifies the subscriber against the subscriber-list and, if verified, saves the posting (entire message body) as a message in the topic folder. This posting is then redistributed to the current subscribers of the topic.
LEAVE <topic name> Deletes the sender from the current subscriber list of the specified topic and, if the last subscriber, deletes the topic.
INTRO <topic name> Returns the introductory message for the specified topic.
TOPICS Returns a list of all topics to which the sender is currently subscribed.
MEMBERS <topic name> Returns a list of the member for the specified topic.

SMBAGENT confirms each message by returning the requested information with an explicit confirmation message to the sender. In cases where SMBAGENT cannot return the information, an error message is returned to the sender.

Confirmation Messages

Action Response
NEW The requested topic has been created.
JOIN You have been enlisted in the requested topic. Attached is the introduction message.
POST The message has been successfully posted for the requested topic.
INTRO Attached is the introduction for the requested topic.
LEAVE You have been removed from the subscriber list for the requested topic.
TOPICS The message body contains a list of all topics.
MEMBERS The message body contains the membership for the requested topic.

For all messages, the original message is included at the top of each confirmation message. An additional message (the topic introduction) is attached at the end of the Join and Intro confirmation messages. Error messages contain only one attachment, the original message, at the top of the message.

Error Messages from SMBAGENT Commands

Error type Error Message
No command ERROR: Missing the command keyword.
Bad command ERROR: Unrecognized command keyword.
Command only ERROR: Missing the topic name.
Create attempt ERROR: The topic already exists.
Nonexistent ERROR: The topic does not exist.
Nonsubscriber ERROR: You are not a subscriber of the specified topic.
Join attempt ERROR: You are already a subscriber of the specified topic.
Corrupt topic ERROR: Can't open the topic folder. (May be missing associated data.)
Topic too long ERROR: Topic name too long. (Topic names must be less than 100 characters.)
Init Failure ERROR: Can't initialize the root topic folder. Contact your administrator.
General Error ERROR: General Sample Mailbox Agent Error. Contact your administrator.