Skip to Content
Sun and Oracle
Channel Sun
How to Buy
Log In
English
docs.sun.com Home
>
Sun Java System Messaging Server 6.3
> Sun Java System Messaging Server 6 2005Q4 MTA Developer's Reference
Sun Java System Messaging Server 6 2005Q4 MTA Developer's Reference
Search only this book
Search Help
Contained Within
Sun Java System Messaging Server 6.3
Sun Java System Messaging Server 6 2005Q4
Find More Documentation
Browse Documentation Titles
Browse Product Documentation
Featured Support Resources
Sun Training Courses
BigAdmin System Admininstration Portal
Sun Support Center
Sun Solve
Download this book in PDF (1309 KB)
Sun Java System Messaging Server 6 2005Q4 MTA Developer's Reference
Index
A
B
C
D
E
H
I
J
K
L
M
O
P
R
S
T
V
W
Book Information
Preface
Who Should Use This Book
Before You Read This Book
How This Book Is Organized
Messaging Server Documentation Set
Related Books
Default Paths and File Names
Typographic Conventions
Shell Prompts in Command Examples
Symbol Conventions
Accessing Sun Resources Online
Third-Party Web Site References
Sun Welcomes Your Comments
1. MTA SDK Concepts and Overview
Channel Programs and Message Queuing
Managing Multiple Threads Using Contexts
Enqueuing Messages
Dequeuing Messages
String-valued Call Arguments
Item Codes and Item Lists
2. MTA SDK Programming Considerations
Running Your Enqueue and Dequeue Programs
Debugging Programs and Logging Diagnostics
Required Privileges
Compiling and Linking Programs
Running Your Test Programs
To Run Test Programs in a Messaging Environment
To Manually Run Your Test Programs
Preventing Mail Loops when Re-enqueuing Mail
Miscellaneous Programming Considerations
3. Enqueuing Messages
Basic Steps to Enqueue Messages
Originating Messages
A Simple Example of Enqueuing a Message
Transferring Messages into the MTA
Intermediate Processing Channels
Delivery Processing Options (Envelope Fields)
Order Dependencies
4. Dequeuing Messages
How Dequeuing Works
Basic Dequeuing Steps
Caller-Supplied Processing Routine
The process_message() Routine
A Simple Dequeuing Example
Processing the Message Queue
The process_done() Routine
A Complex Dequeuing Example
Intermediate processing channels
Intermediate Channel Example
Thread Creation Loop in mtaDequeueStart()
Multiple Calls to mtaDequeueStart()
Calling Order Dependencies
5. Decoding Messages
Usage Modes for mtaDecodeMessage()
The Input Source
The Inspection Routine
A Simple Decoding Example
The Output Destination
Decode Contexts
A Simple Virus Scanner Example
6. MTA SDK Reference
Summary of SDK Routines
MTA SDK Routines
mtaAddressFinish()
mtaAddressGetN()
mtaAddressParse()
mtaAddressToChannel()
mtaBlockSize()
mtaChannelGetName()
mtaChannelToHost()
mtaDateTime()
mtaDebug()
mtaDecodeMessage()
mtaDecodeMessageInfoInt()
mtaDecodeMessageInfoParams()
mtaDecodeMessageInfoString()
mtaDecodeMessagePartCopy()
mtaDecodeMessagePartDelete()
mtaDequeueInfo()
mtaDequeueLineNext()
mtaDequeueMessageFinish()
mtaDequeueRecipientDisposition()
mtaDequeueRecipientNext()
mtaDequeueRewind()
mtaDequeueStart()
Other Considerations for mtaDequeueStart()
mtaDequeueThreadId()
mtaDone()
mtaEnqueueCopyMessage()
mtaEnqueueError()
mtaEnqueueFinish()
mtaEnqueueInfo()
mtaEnqueueStart()
mtaEnqueueTo()
mtaEnqueueWrite()
mtaEnqueueWriteLine()
mtaErrno()
mtaInit()
mtaLog()
mtaLogv()
mtaOptionFinish()
mtaOptionFloat()
mtaOptionInt()
mtaOptionStart()
mtaOptionString()
mtaPostmasterAddress()
mtaStackSize()
mtaStrError()
mtaUniqueString()
mtaVersionMajor()
mtaVersionMinor()
mtaVersionRevision()
7. Using Callable Send mtaSend()
Sending a Message
Envelope and Header From Addresses
To, Cc, and Bcc Addresses
Message Headers and Content
Required Privileges for mtaSend()
mtaSendDispose()
Compiling and Linking Programs
Examples of Using mtaSend()
8. mtaSend() Routine Specification
List of Item Codes
mtaSend() Syntax
Arguments
Item Descriptor Fields
Description
Item Codes
9. Error Status Codes Summary
Error Status Codes
News Center
About Sun
Contact Sun
Terms of Use
Privacy
Copyright
1994-2009
Sun Microsystems, Inc.