Steve's VB Mail

Disclaimer:  Steve's VB Mail is provided AS-IS, with no further warranties, express or implied.

Messaging Rules:  The messaging rules right now are limited to a simple While Your Out type rule.  The rules are architectured to support additional rules, but none are available at this time.  When the Use This Rule option is selected, Steve's VB Mail automatically responds to every note received.  When a note comes in, a reply is automatically sent to the note originator with whatever message you choose to leave.  Optionally, it can also forward on the note you received onto someone else of your choosing.

Messaging rules ONLY work if Steve's VB Mail is running; if it isn't running, the rule won't be processed.

Drag and Drop:  Drag and drop is implemented throughout Steve's VB Mail.  You can drag messages and drop them over the Read, Delete and Move Message buttons.  In addition, when you're composing a note, you can drag and drop users between the TO:, CC: and BCC: recipient type list boxes.

Select Multiple Messages:  You can select multiple messages to Read, Delete or Move.  You can use the Ctrl and Shift keys to select multiple entries.  Due to an anomaly with Visual Basic list boxes, you must begin dragging when you click down to select your last item.  For example, if you hold down the Ctrl key to select the first, second and fifth message in the list, don't click on the fifth item, let up, and then click again to drag.  This removes the focus from the fifth item.  Instead, click on the first and second items, press the mouse button down on the fifth item and begin dragging.

Source Code:  The source code for Steve's VB Mail is available for $99.  Steve's VB Mail contains several Visual Basic modules that contain high-level Banyan mail API functions.  These functions allow you to add workgroup-type functionality to your business applications.  In addition, you can easily export the modules to text files and import them into Microsoft Access, Excel 5.0 and Project 4.0.  There is only one VB-specific function used in these modules that needs to be changed to have the functions work in the other Microsoft applications, and that statement merely changes the mouse pointer back and forth between an hourglass and an arrow.

The functions included in the VB Mail source code are as follows:

PickSTDANames:  Pops up a Banyan common dialog box containing any of the elements you choose:  users, nicknames, lists, services, printers and/or file services.  It returns the items selected into an array that you can manipulate.

SendMailMessage:  Sends a Banyan mail message.  Allows you to include attachment names, delete the copy of the message that is sent out of the inbox, and certify a message.

CreateFolder:  Creates a Banyan mail folder.

DeleteFolder:  Deletes a Bayan mail folder.

DeleteMessage:  Deletes a Banyan mail message.

GetCurrentUser:  Returns a trim string with the STDA name of the currently-logged in user.

GetMailPriority:  Takes the numeric mail priority returned by Banyan and returns an English-like equivalent.

GetMailSession:  Creates and returns a handle to mail session.

GetMailStatus:  Takes the numeric mail status returned by Banyan and returns and English-like equivalent.

GetMessageList:  For the folder name specified, returns mail header information for each message in the folder.  Mail header information includes things like Message ID, Status, Type, Priority, first 30 characters of the from Name (Banyan limitation), first 25 characters of the Subject (Banyan limitation) and Date.

GetNumFolders:  Returns an array filled with the name of each mail folder and the number of messages in each.

GetNumUnreadMessages:  Returns the number of unread messages in a users inbox.

MoveMessage:  Moves a message to a different mail folder.

ReadMailMessage:  Takes a Message ID and returns the full name of the person who sent the note, the full subject of the note, the actual text of the note, and an array containing the list of attachments with the note.

SaveAttachment:  Saves an attachment from a Banyan mail message.

StripNullsFromString:  The values returned by Banyan contain a null terminator at the end that causes problems when trying to concatenate strings.  This function strips out those null termination characters so that you can piece your strings together for list boxes, dialog boxes, etc.

AddList:  Adds a StreetTalk list.

AddToList:  Adds a new person to a StreetTalk list.

DeleteList:  Deletes a StreetTalk list.

DeleteFromList:  Deletes a person from a StreetTalk list.

GetMemberList:  Returns an array with the names of all the members of a StreetTalk list.

GetSTSession:  Returns a handle to a StreetTalk session.

SpellCheck:  Uses the power of OLE 2.0 automation to have Excel 5.0 spell check the contents of any Visual Basic text box - very cool!

SaveToWord:  Uses the power of OLE 2.0 automation to save the contents of any VB text box to a Word document - requires Word 6.0.

Once you've ordered the source code, you can use it and distribute it throughout your corporation at no additional charge.  The only restriction is that you can't just repackage these functions and distribute it as is; you can, however, write your own programs that use these functions and redristibute them without additional cost.  To order a copy of the source code, send a check for $99 payable to:

Steve Peschka
13120 SE 137th Drive
Clackamas, OR  97015

Include an address where you would like a disk shipped with the source code.  If you include a CompuServe address, a zipped file will be mailed to you when your check is received.


