Java Doc for SakaiMailet.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » james » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » sakai » org.sakaiproject.james 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.sakaiproject.james.SakaiMailet

SakaiMailet
public class SakaiMailet extends GenericMailet (Code)

SakaiMailet watches incoming mail (via James) and sends mail to the appropriate mail archive channel in Sakai.



Field Summary
final public static  StringPOSTMASTER
     The user name of the postmaster user - the one who posts incoming mail.
final public  StringerrorMsg_I
    
final public  StringerrorMsg_III
    
final public  StringerrorMsg_IV
    


Method Summary
protected  ReferencecreateAttachment(List attachments, String type, String fileName, byte[] body, String id)
     Create an attachment, adding it to the list of attachments.
public  voiddestroy()
     Called when leaving.
protected  booleanfromValidUser(String fromAddr, MailArchiveChannel channel)
     Check if the fromAddr email address is recognized as belonging to a user who has permission to add to the channel.
Parameters:
  fromAddr - The email address to check.
Parameters:
  channel - The mail archive channel.
public  voidinit()
     Called when created.
protected  voidparseEnvelope(Message innerMsg, String id, StringBuffer bodyBuf, List attachments, Integer embedCount)
     Saves header info about embedded email messages.
protected  IntegerparseParts(Part p, String id, StringBuffer bodyBuf, StringBuffer bodyContentType, List attachments, Integer embedCount)
     Breaks email messages into parts which can be saved as files (saves as attachments) or viewed as plain text (added to body of message).
Parameters:
  p - The message-part embedded in a message..
Parameters:
  id - The string containing the message's id.
Parameters:
  bodyBuf - The string-buffer in which the message body is being built.
Parameters:
  bodyContentType - The value of the Content-Type header for the mesage body.
Parameters:
  attachments - The ReferenceVector in which references to attachments are collected.
Parameters:
  embedCount - An Integer that counts embedded messages (outer message is zero).
protected  byte[]readBody(int approxSize, InputStream stream)
    
public  voidservice(Mail mail)
     Process incoming mail.

Field Detail
POSTMASTER
final public static String POSTMASTER(Code)
The user name of the postmaster user - the one who posts incoming mail.



errorMsg_I
final public String errorMsg_I(Code)



errorMsg_III
final public String errorMsg_III(Code)



errorMsg_IV
final public String errorMsg_IV(Code)





Method Detail
createAttachment
protected Reference createAttachment(List attachments, String type, String fileName, byte[] body, String id)(Code)
Create an attachment, adding it to the list of attachments.



destroy
public void destroy()(Code)
Called when leaving.



fromValidUser
protected boolean fromValidUser(String fromAddr, MailArchiveChannel channel)(Code)
Check if the fromAddr email address is recognized as belonging to a user who has permission to add to the channel.
Parameters:
  fromAddr - The email address to check.
Parameters:
  channel - The mail archive channel. True if the email address is from a user who is authorized to add mail, false if not.



init
public void init() throws MessagingException(Code)
Called when created.



parseEnvelope
protected void parseEnvelope(Message innerMsg, String id, StringBuffer bodyBuf, List attachments, Integer embedCount) throws MessagingException, IOException(Code)
Saves header info about embedded email messages.
Parameters:
  innerMsg - The message-part believed to be an embedded message..
Parameters:
  id - The string containing the outer message's id.
Parameters:
  bodyBuf - The string-buffer in which the message body is being built.
Parameters:
  attachments - The ReferenceVector in which references to attachments are collected.
Parameters:
  embedCount - An Integer that counts embedded messages (Outer message is zero).



parseParts
protected Integer parseParts(Part p, String id, StringBuffer bodyBuf, StringBuffer bodyContentType, List attachments, Integer embedCount) throws MessagingException, IOException(Code)
Breaks email messages into parts which can be saved as files (saves as attachments) or viewed as plain text (added to body of message).
Parameters:
  p - The message-part embedded in a message..
Parameters:
  id - The string containing the message's id.
Parameters:
  bodyBuf - The string-buffer in which the message body is being built.
Parameters:
  bodyContentType - The value of the Content-Type header for the mesage body.
Parameters:
  attachments - The ReferenceVector in which references to attachments are collected.
Parameters:
  embedCount - An Integer that counts embedded messages (outer message is zero). Value of embedCount (updated if this call processed any embedded messages).



readBody
protected byte[] readBody(int approxSize, InputStream stream)(Code)
Read in a stream from the mime body into a byte array



service
public void service(Mail mail) throws MessagingException(Code)
Process incoming mail.
Parameters:
  mail - ...



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.