In accordance with embodiments, there are provided mechanisms and methods for messaging in an on-demand database service. These mechanisms and methods for messaging in an on-demand database service can enable embodiments to more flexibly message in on-demand database environments. The ability of embodiments to provide such feature may lead to enhanced messaging features which may be used for providing more effective ways of messaging in the context of on-demand databases.
Please help me write a proper abstract based on the patent claims. CLAIM: 1. A non-transitory machine-readable medium storing one or more sequences of instructions that, when executed by one or more processors, cause the one or more processors to perform operations comprising: receiving, by an on-demand database service on behalf of an entity, a message, wherein the on-demand database service includes an on-demand database; retrieving, by the on-demand database service from a portion of the on-demand database, one or more security criteria that include validating an address of a sender of the message; applying, by the on-demand database service on behalf of the entity, the one or more security criteria to the message; and adding, by the on-demand database service, one or more data values to the message, wherein the one or more data values indicate whether the message passed respective ones of the one or more security criteria. 2. The non-transitory machine-readable medium of claim 1, wherein the operations further comprise retrieving, based on the one or more data values, a rule for processing the message. 3. (canceled) 4. The non-transitory machine-readable medium of claim 2, wherein the retrieving includes retrieving the rule on behalf of the entity. 5. The non-transitory machine-readable medium of claim 2, further comprising processing the message by applying the rule retrieved. 6. The non-transitory machine-readable medium of claim 2, further comprising installing the rule for processing the message from an application exchange platform. 7. The non-transitory machine-readable medium of claim 1, wherein the message is received at the on-demand database service. 8. The non-transitory machine-readable medium of claim 7, wherein the message includes at least one of a workflow approval, a mass email, a single email, a notification, a case email, a billing email, a workflow request, or any combination thereof. 9. The non-transitory machine-readable medium of claim 1, wherein the message is received via the on-demand database service. 10. The non-transitory machine-readable medium of claim 1, wherein the on-demand database service includes a multi-tenant on-demand database service. 11. A method, comprising: receiving, by an on-demand database service on behalf of an entity, a message, wherein the on-demand database service includes an on-demand database; retrieving, by the on-demand database service from a portion of the on-demand database, one or more security criteria that include validating an address of a sender of the message; applying, by the on-demand database service on behalf of the entity, of the one or more security criteria to the message; and adding, by the on-demand database service, one or more data values to the message, wherein the one or more data values indicate whether the message passed respective ones criteria of the one or more security criteria. 12. An apparatus, comprising: a processor of an on-demand database service, wherein the on-demand database service includes an on-demand database; and a memory that includes one or more stored sequences of instructions that, when executed by the processor, cause the processor to perform operations comprising: receiving, on behalf of an entity, a message; retrieving, from a portion of the on-demand database, one or more security criteria that include validating an address of a sender of the message; applying, on behalf of the entity, a security criterion the one or more security criteria to the message; and applying, by the on-demand database service on behalf of the entity, the one or more security criteria to the message; and adding, by the on-demand database service, one or more data values to the message, wherein the one or more data values indicate whether the message passed respective ones of the one or more security criteria. 13. (canceled) 14. The non-transitory machine-readable medium of claim 1, wherein the one or more security criteria further include a sender policy framework validation, a transport layer security authentication, an anti-virus verification of the message, or any combination thereof. 15. The non-transitory machine-readable medium of claim 1, wherein the one or more security criteria further include an anti-spam verification. 16. (canceled) 17. The non-transitory machine-readable medium of claim 1, wherein the one or more security criteria includes a security criteria managed by the on-demand database service. 18. The method of claim 11, wherein validating the address of the sender comprises verifying an encoded string included in the address of the sender. 19. The method of claim 18, wherein the encoded string includes an entity identifier corresponding to the sender of the message. 20. The apparatus of claim 12, wherein the operations further comprise, in response to failing to retrieve the one or more security criteria, discarding the message. 21. The apparatus of claim 12, wherein the operations further comprise, in response to the message failing the address validation indicated by the one or more security criteria, discarding the message.