Java Doc for MessageProcessor.java in  » Web-Mail » james-2.3.1 » org » apache » james » fetchmail » 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 » Web Mail » james 2.3.1 » org.apache.james.fetchmail 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.james.fetchmail.ProcessorAbstract
      org.apache.james.fetchmail.MessageProcessor

MessageProcessor
public class MessageProcessor extends ProcessorAbstract (Code)

Class MessageProcessor handles the delivery of MimeMessages to the James input spool.

Messages written to the input spool always have the following Mail Attributes set:

org.apache.james.fetchmail.taskName (java.lang.String)
The name of the fetch task that processed the message
org.apache.james.fetchmail.folderName (java.lang.String)
The name of the folder from which the message was fetched

Messages written to the input spool have the following Mail Attributes set if the corresponding condition is satisfied:

org.apache.james.fetchmail.isBlacklistedRecipient
The recipient is in the configured blacklist
org.apache.james.fetchmail.isMaxMessageSizeExceeded (java.lang.String)
The message size exceeds the configured limit. An empty message is written to the input spool. The Mail Attribute value is a String representing the size of the original message in bytes.
org.apache.james.fetchmail.isRecipientNotFound
The recipient could not be found. Delivery is to the configured recipient. See the discussion of delivery to a sole intended recipient below.
org.apache.james.fetchmail.isRemoteRecievedHeaderInvalid
The Receieved header at the index specified by parameter remoteReceivedHeaderIndex is invalid.
org.apache.james.fetchmail.isRemoteRecipient
The recipient is on a remote host
org.apache.james.fetchmail.isUserUndefined
The recipient is on a localhost but not defined to James
org.apache.james.fetchmail.isDefaultSenderLocalPart
The local part of the sender address could not be obtained. The default value has been used.
org.apache.james.fetchmail.isDefaultSenderDomainPart
The domain part of the sender address could not be obtained. The default value has been used.
org.apache.james.fetchmail.isDefaultRemoteAddress
The remote address could not be determined. The default value (localhost/127.0.0.1)has been used.

Configuration settings - see org.apache.james.fetchmail.ParsedConfiguration - control the messages that are written to the James input spool, those that are rejected and what happens to messages that are rejected.

Rejection processing is based on the following filters:

RejectRemoteRecipient
Rejects recipients on remote hosts
RejectBlacklistedRecipient
Rejects recipients configured in a blacklist
RejectUserUndefined
Rejects recipients on local hosts who are not defined as James users
RejectRecipientNotFound
See the discussion of delivery to a sole intended recipient below
RejectMaxMessageSizeExceeded
Rejects messages whose size exceeds the configured limit
RejectRemoteReceievedHeaderInvalid
Rejects messages whose Received header is invalid.

Rejection processing is intentionally limited to managing the status of the messages that are rejected on the server from which they were fetched. View it as a simple automation of the manual processing an end-user would perform through a mail client. Messages may be marked as seen or be deleted.

Further processing can be achieved by configuring to disable rejection for one or more filters. This enables Messages that would have been rejected to be written to the James input spool. The conditional Mail Attributes described above identify the filter states. The Matcher/Mailet chain can then be used to perform any further processing required, such as notifying the Postmaster and/or sender, marking the message for error processing, etc.

Note that in the case of a message exceeding the message size limit, the message that is written to the input spool has no content. This enables configuration of a mailet notifying the sender that their mail has not been delivered due to its size while maintaining the purpose of the filter which is to avoid injecting excessively large messages into the input spool.

Delivery is to a sole intended recipient. The recipient is determined in the following manner:

  1. If isIgnoreIntendedRecipient(), use the configured recipient
  2. If the Envelope contains a for: stanza, use the recipient in the stanza
  3. If the Message has a sole intended recipient, use this recipient
  4. If not rejectRecipientNotFound(), use the configured recipient

If a recipient cannot be determined after these steps, the message is rejected.

Every delivered message CURRENTLY has an "X-fetched-from" header added containing the name of the fetch task. Its primary uses are to detect bouncing mail and provide backwards compatibility with the fetchPop task that inserted this header to enable injected messages to be detected in the Matcher/Mailet chain. This header is DEPRECATED and WILL BE REMOVED in a future version of fetchmail. Use the Mail Attribute org.apache.james.fetchmail.taskName instead.

MessageProcessor is as agnostic as it can be about the format and contents of the messages it delivers. There are no RFCs that govern its behavior. The most releveant RFCs relate to the exchange of messages between MTA servers, but not POP3 or IMAP servers which are normally end-point servers and not expected to re-inject mail into MTAs. None the less, the intent is to conform to the 'spirit' of the RFCs. MessageProcessor relies on the MTA (James in this implementation) to manage and validate the injected mail just as it would when receiving mail from an upstream MTA.

The only correction applied by MessageProcessor is to correct a missing or partial sender address. If the sender address can not be obtained, the default local part and default domain part is added. If the sender domain part is absent, the default domain part is added.

Mail with corrections applied to the sender address will most likely pass Matcher tests on the sender that they might otherwise fail. The Mail Attributes org.apache.james.fetchmail.isDefaultSenderLocalPart and org.apache.james.fetchmail.isDefaultSenderDomainPart are added to the injected mail to enable such mail to be detected and processed accordingly.

The status of messages on the server from which they were fetched that cannot be injected into the input spool due to non-correctable errors is determined by the undeliverable configuration options.




Constructor Summary
 MessageProcessor(MimeMessage messageIn, Account account)
     Constructor for MessageProcessor.

Method Summary
protected  voidaddErrorMessages(Mail mail)
     Adds any required error messages to a Mail.
protected  voidaddMailAttributes(Mail aMail)
     Adds the mail attributes to a Mail.
protected  BooleancomputeMaxMessageSizeExceeded()
     Compute the maxMessageSizeExceeded.
protected  StringcomputeRemoteAddress()
     Answer the IP Address of the remote server for the message being processed.
protected  StringcomputeRemoteDomain()
    

Method computeRemoteDomain answers a String that is the RFC2822 compliant "Received : from" domain extracted from the message being processed for the remote domain that sent the message.

Often the remote domain is the domain that sent the message to the host of the message store, the second "received" header, which has an index of 1.

protected  StringcomputeRemoteHostName()
     Answer the Canonical host name of the remote server for the message being processed.
protected  BooleancomputeRemoteReceivedHeaderInvalid()
     Computes the remoteReceivedHeaderInvalid.
protected  MimeMessagecreateEmptyMessage()
     Method createEmptyMessage answers a new MimeMessage from the fetched message with the message contents removed.
protected  MailcreateMail(MimeMessage message, MailAddress recipient)
     Method createMail creates a new Mail.
protected  MimeMessagecreateMessage()
    
protected  StringgetEnvelopeRecipient(MimeMessage msg)
     Method getEnvelopeRecipient answers the recipient if found else null.
protected  MailAddressgetIntendedRecipient()
     Method getIntendedRecipient answers the sole intended recipient else null.
protected  MimeMessagegetMessageIn()
     Returns the messageIn.
public static  StringgetRFC2822RECEIVEDHeaderFields()
     Returns the rFC2822RECEIVEDHeaderFields.
protected  StringgetRemoteAddress()
     Returns the remoteAddress, lazily initialised as required.
protected  StringgetRemoteDomain()
     Returns the remoteDomain, lazily initialised as required.
protected  StringgetRemoteHostName()
     Returns the remoteHostName, lazily initialised as required.
protected  MailAddressgetSender()
    

Method getSender answers a MailAddress for the sender. When the sender local part and/or domain part can not be obtained from the mail, default values are used.

protected  StringBuffergetStatusReport(String detailMsg)
     Answer a StringBuffer containing a message reflecting the current status of the message being processed.
protected  voidhandleBouncing(Mail mail)
     Method handleBouncing sets the Mail state to ERROR and delete from the message store.
protected  voidhandleMarkSeenNotPermanent()
    

Handler for when the folder does not support the SEEN flag.

protected  voidhandleParseException(ParseException ex)
     Method handleParseException.
protected  voidhandleUnknownHostException(UnknownHostException ex)
     Method handleUnknownHostException.
protected  booleanisBlacklistedRecipient(MailAddress recipient)
     Method isBlacklistedRecipient.
protected  booleanisBlacklistedRecipient()
     Returns the Blacklisted.
protected  booleanisBouncing()
    
protected  booleanisDefaultRemoteAddress()
     Returns the defaultRemoteAddress.
protected  booleanisDefaultSenderDomainPart()
     Returns the defaultSenderDomainPart.
protected  booleanisDefaultSenderLocalPart()
     Returns the defaultSenderLocalPart.
protected  booleanisLocalRecipient(MailAddress recipient)
     Method isLocalRecipient.
protected  booleanisLocalServer(MailAddress recipient)
     Method isLocalServer.
protected  booleanisLocalUser(MailAddress recipient)
     Method isLocalUser.
protected  BooleanisMaxMessageSizeExceeded()
     Returns the maxMessageSizeExceeded, lazily initialised as required.
protected  booleanisMessageDeleted()
    
protected  booleanisMessageSeen()
    
protected  booleanisPreviouslyUnprocessed()
     Returns boolean indicating if the message to be delivered was unprocessed in a previous delivery attempt.
protected  booleanisRecipientNotFound()
     Returns the recipientNotFound.
protected  BooleanisRemoteReceivedHeaderInvalid()
     Returns the remoteReceivedHeaderInvalid, lazily initialised.
protected  booleanisRemoteRecipient()
     Returns the localRecipient.
protected  booleanisUserUndefined()
     Returns the userUndefined.
protected  voidlogStatusError(String detailMsg)
     Log the status the current message as ERROR.
protected  voidlogStatusInfo(String detailMsg)
     Log the status of the current message as INFO.
protected  voidlogStatusWarn(String detailMsg)
     Log the status the current message as WARN.
public  voidprocess()
     Method process attempts to deliver a fetched message.
protected  voidrejectBlacklistedRecipient(MailAddress recipient)
     Method rejectBlacklistedRecipient.
protected  voidrejectMaxMessageSizeExceeded(int messageSize)
     Method rejectMaxMessageSizeExceeded.
protected  voidrejectRecipientNotFound()
     Method rejectRecipientNotFound.
protected  voidrejectRemoteReceivedHeaderInvalid()
     Method rejectRemoteReceivedHeaderInvalid.
protected  voidrejectRemoteRecipient(MailAddress recipient)
     Method rejectRemoteRecipient.
protected  voidrejectUserUndefined(MailAddress recipient)
     Method rejectUserUndefined.
protected  voidsendMail(Mail mail)
     Method sendMail.
protected  voidsetBlacklistedRecipient(boolean blacklisted)
     Sets the Blacklisted.
protected  voidsetDefaultRemoteAddress(boolean defaultRemoteAddress)
     Sets the defaultRemoteAddress.
protected  voidsetDefaultSenderDomainPart(boolean defaultSenderDomainPart)
     Sets the defaultSenderDomainPart.
protected  voidsetDefaultSenderLocalPart(boolean defaultSenderLocalPart)
     Sets the defaultSenderLocalPart.
protected  voidsetMaxMessageSizeExceeded(Boolean maxMessageSizeExceeded)
     Sets the maxMessageSizeExceeded.
protected  voidsetMessageDeleted()
     Set the DELETED flag.
protected  voidsetMessageIn(MimeMessage messageIn)
     Sets the messageIn.
protected  voidsetMessageSeen()
    
protected  voidsetRecipientNotFound(boolean recipientNotFound)
     Sets the recipientNotFound.
protected  voidsetRemoteAddress(String remoteAddress)
     Sets the remoteAddress.
protected  voidsetRemoteDomain(String remoteDomain)
     Sets the remoteDomain.
protected  voidsetRemoteHostName(String remoteHostName)
     Sets the remoteHostName.
protected  voidsetRemoteReceivedHeaderInvalid(Boolean remoteReceivedHeaderInvalid)
     Sets the remoteReceivedHeaderInvalid.
protected  voidsetRemoteRecipient(boolean localRecipient)
     Sets the localRecipient.
protected  voidsetUserUndefined(boolean userUndefined)
     Sets the userUndefined.
protected  voidupdateMaxMessageSizeExceeded()
     Refreshes the maxMessageSizeExceeded.
protected  voidupdateRemoteAddress()
     Updates the remoteAddress.
protected  voidupdateRemoteDomain()
     Updates the remoteDomain.
protected  voidupdateRemoteHostName()
     Updates the remoteHostName.
protected  voidupdateRemoteReceivedHeaderInvalid()
     Updates the remoteReceivedHeaderInvalid.


Constructor Detail
MessageProcessor
MessageProcessor(MimeMessage messageIn, Account account)(Code)
Constructor for MessageProcessor.
Parameters:
  messageIn -
Parameters:
  account -




Method Detail
addErrorMessages
protected void addErrorMessages(Mail mail) throws MessagingException(Code)
Adds any required error messages to a Mail.
Parameters:
  aMail - a Mail instance



addMailAttributes
protected void addMailAttributes(Mail aMail) throws MessagingException(Code)
Adds the mail attributes to a Mail.
Parameters:
  aMail - a Mail instance



computeMaxMessageSizeExceeded
protected Boolean computeMaxMessageSizeExceeded() throws MessagingException(Code)
Compute the maxMessageSizeExceeded. Boolean



computeRemoteAddress
protected String computeRemoteAddress() throws MessagingException, UnknownHostException(Code)
Answer the IP Address of the remote server for the message being processed. String
throws:
  MessagingException -
throws:
  UnknownHostException -



computeRemoteDomain
protected String computeRemoteDomain() throws MessagingException(Code)

Method computeRemoteDomain answers a String that is the RFC2822 compliant "Received : from" domain extracted from the message being processed for the remote domain that sent the message.

Often the remote domain is the domain that sent the message to the host of the message store, the second "received" header, which has an index of 1. Other times, messages may be received by a edge mail server and relayed internally through one or more internal mail servers prior to arriving at the message store host. In these cases the index is 1 + the number of internal servers through which a mail passes.

The index of the header to use is specified by the configuration parameter RemoteReceivedHeaderIndex. This is set to point to the received header prior to the remote mail server, the one prior to the edge mail server.

"received" headers are searched starting at the specified index. If a domain in the "received" header is not found, successively closer "received" headers are tried. If a domain is not found in this way, the local machine is used as the domain. Finally, if the local domain cannot be determined, the local address 127.0.0.1 is used.

String An RFC2822 compliant "Received : from" domain name



computeRemoteHostName
protected String computeRemoteHostName() throws MessagingException, UnknownHostException(Code)
Answer the Canonical host name of the remote server for the message being processed. String
throws:
  MessagingException -
throws:
  UnknownHostException -



computeRemoteReceivedHeaderInvalid
protected Boolean computeRemoteReceivedHeaderInvalid() throws MessagingException(Code)
Computes the remoteReceivedHeaderInvalid. Boolean



createEmptyMessage
protected MimeMessage createEmptyMessage() throws MessagingException(Code)
Method createEmptyMessage answers a new MimeMessage from the fetched message with the message contents removed. MimeMessage
throws:
  MessagingException -



createMail
protected Mail createMail(MimeMessage message, MailAddress recipient) throws MessagingException, UnknownHostException(Code)
Method createMail creates a new Mail.
Parameters:
  message -
Parameters:
  recipient - Mail
throws:
  MessagingException -



createMessage
protected MimeMessage createMessage() throws MessagingException(Code)

Method createMessage answers a new MimeMessage from the fetched message.

If the maximum message size is exceeded, an empty message is created, else the new message is a copy of the received message.

MimeMessage
throws:
  MessagingException -



getEnvelopeRecipient
protected String getEnvelopeRecipient(MimeMessage msg) throws MessagingException(Code)
Method getEnvelopeRecipient answers the recipient if found else null. Try and parse the "for" parameter from a Received header Maybe not the most accurate parsing in the world but it should do I opted not to use ORO (maybe I should have)
Parameters:
  msg - String



getIntendedRecipient
protected MailAddress getIntendedRecipient() throws MessagingException(Code)
Method getIntendedRecipient answers the sole intended recipient else null. MailAddress
throws:
  MessagingException -



getMessageIn
protected MimeMessage getMessageIn()(Code)
Returns the messageIn. MimeMessage



getRFC2822RECEIVEDHeaderFields
public static String getRFC2822RECEIVEDHeaderFields()(Code)
Returns the rFC2822RECEIVEDHeaderFields. String



getRemoteAddress
protected String getRemoteAddress() throws MessagingException, UnknownHostException(Code)
Returns the remoteAddress, lazily initialised as required. String



getRemoteDomain
protected String getRemoteDomain() throws MessagingException(Code)
Returns the remoteDomain, lazily initialised as required. String



getRemoteHostName
protected String getRemoteHostName() throws MessagingException, UnknownHostException(Code)
Returns the remoteHostName, lazily initialised as required. String



getSender
protected MailAddress getSender() throws MessagingException(Code)

Method getSender answers a MailAddress for the sender. When the sender local part and/or domain part can not be obtained from the mail, default values are used. The flags 'defaultSenderLocalPart' and 'defaultSenderDomainPart' are set accordingly.

MailAddress
throws:
  MessagingException -



getStatusReport
protected StringBuffer getStatusReport(String detailMsg) throws MessagingException(Code)
Answer a StringBuffer containing a message reflecting the current status of the message being processed.
Parameters:
  detailMsg - StringBuffer



handleBouncing
protected void handleBouncing(Mail mail) throws MessagingException(Code)
Method handleBouncing sets the Mail state to ERROR and delete from the message store.
Parameters:
  mail -



handleMarkSeenNotPermanent
protected void handleMarkSeenNotPermanent() throws MessagingException(Code)

Handler for when the folder does not support the SEEN flag. The default behaviour implemented here is to log a warning and set the flag anyway.

Subclasses may choose to override this and implement their own solutions.


throws:
  MessagingException -



handleParseException
protected void handleParseException(ParseException ex) throws MessagingException(Code)
Method handleParseException.
Parameters:
  ex -
throws:
  MessagingException -



handleUnknownHostException
protected void handleUnknownHostException(UnknownHostException ex) throws MessagingException(Code)
Method handleUnknownHostException.
Parameters:
  ex -
throws:
  MessagingException -



isBlacklistedRecipient
protected boolean isBlacklistedRecipient(MailAddress recipient)(Code)
Method isBlacklistedRecipient.
Parameters:
  recipient - boolean



isBlacklistedRecipient
protected boolean isBlacklistedRecipient()(Code)
Returns the Blacklisted. boolean



isBouncing
protected boolean isBouncing() throws MessagingException(Code)
Check if this mail has been bouncing by counting the X-fetched-from headers for this task boolean



isDefaultRemoteAddress
protected boolean isDefaultRemoteAddress()(Code)
Returns the defaultRemoteAddress. boolean



isDefaultSenderDomainPart
protected boolean isDefaultSenderDomainPart()(Code)
Returns the defaultSenderDomainPart. boolean



isDefaultSenderLocalPart
protected boolean isDefaultSenderLocalPart()(Code)
Returns the defaultSenderLocalPart. boolean



isLocalRecipient
protected boolean isLocalRecipient(MailAddress recipient)(Code)
Method isLocalRecipient.
Parameters:
  recipient - boolean



isLocalServer
protected boolean isLocalServer(MailAddress recipient)(Code)
Method isLocalServer.
Parameters:
  recipient - boolean



isLocalUser
protected boolean isLocalUser(MailAddress recipient)(Code)
Method isLocalUser.
Parameters:
  recipient - boolean



isMaxMessageSizeExceeded
protected Boolean isMaxMessageSizeExceeded() throws MessagingException(Code)
Returns the maxMessageSizeExceeded, lazily initialised as required. Boolean



isMessageDeleted
protected boolean isMessageDeleted() throws MessagingException(Code)
Is the DELETED flag set?
throws:
  MessagingException -



isMessageSeen
protected boolean isMessageSeen() throws MessagingException(Code)
Is the SEEN flag set?
throws:
  MessagingException -



isPreviouslyUnprocessed
protected boolean isPreviouslyUnprocessed()(Code)
Returns boolean indicating if the message to be delivered was unprocessed in a previous delivery attempt. boolean



isRecipientNotFound
protected boolean isRecipientNotFound()(Code)
Returns the recipientNotFound. boolean



isRemoteReceivedHeaderInvalid
protected Boolean isRemoteReceivedHeaderInvalid() throws MessagingException(Code)
Returns the remoteReceivedHeaderInvalid, lazily initialised. Boolean



isRemoteRecipient
protected boolean isRemoteRecipient()(Code)
Returns the localRecipient. boolean



isUserUndefined
protected boolean isUserUndefined()(Code)
Returns the userUndefined. boolean



logStatusError
protected void logStatusError(String detailMsg) throws MessagingException(Code)
Log the status the current message as ERROR.
Parameters:
  detailMsg -



logStatusInfo
protected void logStatusInfo(String detailMsg) throws MessagingException(Code)
Log the status of the current message as INFO.
Parameters:
  detailMsg -



logStatusWarn
protected void logStatusWarn(String detailMsg) throws MessagingException(Code)
Log the status the current message as WARN.
Parameters:
  detailMsg -



process
public void process() throws MessagingException(Code)
Method process attempts to deliver a fetched message.
See Also:   org.apache.james.fetchmail.ProcessorAbstract.process



rejectBlacklistedRecipient
protected void rejectBlacklistedRecipient(MailAddress recipient) throws MessagingException(Code)
Method rejectBlacklistedRecipient.
Parameters:
  recipient -
throws:
  MessagingException -



rejectMaxMessageSizeExceeded
protected void rejectMaxMessageSizeExceeded(int messageSize) throws MessagingException(Code)
Method rejectMaxMessageSizeExceeded.
Parameters:
  message - size
throws:
  MessagingException -



rejectRecipientNotFound
protected void rejectRecipientNotFound() throws MessagingException(Code)
Method rejectRecipientNotFound.
throws:
  MessagingException -



rejectRemoteReceivedHeaderInvalid
protected void rejectRemoteReceivedHeaderInvalid() throws MessagingException(Code)
Method rejectRemoteReceivedHeaderInvalid.
throws:
  MessagingException -



rejectRemoteRecipient
protected void rejectRemoteRecipient(MailAddress recipient) throws MessagingException(Code)
Method rejectRemoteRecipient.
Parameters:
  recipient -
throws:
  MessagingException -



rejectUserUndefined
protected void rejectUserUndefined(MailAddress recipient) throws MessagingException(Code)
Method rejectUserUndefined.
Parameters:
  recipient -
throws:
  MessagingException -



sendMail
protected void sendMail(Mail mail) throws MessagingException(Code)
Method sendMail.
Parameters:
  mail -
throws:
  MessagingException -



setBlacklistedRecipient
protected void setBlacklistedRecipient(boolean blacklisted)(Code)
Sets the Blacklisted.
Parameters:
  blacklisted - The blacklisted to set



setDefaultRemoteAddress
protected void setDefaultRemoteAddress(boolean defaultRemoteAddress)(Code)
Sets the defaultRemoteAddress.
Parameters:
  defaultRemoteAddress - The defaultRemoteAddress to set



setDefaultSenderDomainPart
protected void setDefaultSenderDomainPart(boolean defaultSenderDomainPart)(Code)
Sets the defaultSenderDomainPart.
Parameters:
  defaultSenderDomainPart - The defaultSenderDomainPart to set



setDefaultSenderLocalPart
protected void setDefaultSenderLocalPart(boolean defaultSenderLocalPart)(Code)
Sets the defaultSenderLocalPart.
Parameters:
  defaultSenderLocalPart - The defaultSenderLocalPart to set



setMaxMessageSizeExceeded
protected void setMaxMessageSizeExceeded(Boolean maxMessageSizeExceeded)(Code)
Sets the maxMessageSizeExceeded.
Parameters:
  maxMessageSizeExceeded - The maxMessageSizeExceeded to set



setMessageDeleted
protected void setMessageDeleted() throws MessagingException(Code)
Set the DELETED flag.
throws:
  MessagingException -



setMessageIn
protected void setMessageIn(MimeMessage messageIn)(Code)
Sets the messageIn.
Parameters:
  messageIn - The messageIn to set



setMessageSeen
protected void setMessageSeen() throws MessagingException(Code)



setRecipientNotFound
protected void setRecipientNotFound(boolean recipientNotFound)(Code)
Sets the recipientNotFound.
Parameters:
  recipientNotFound - The recipientNotFound to set



setRemoteAddress
protected void setRemoteAddress(String remoteAddress)(Code)
Sets the remoteAddress.
Parameters:
  remoteAddress - The remoteAddress to set



setRemoteDomain
protected void setRemoteDomain(String remoteDomain)(Code)
Sets the remoteDomain.
Parameters:
  remoteDomain - The remoteDomain to set



setRemoteHostName
protected void setRemoteHostName(String remoteHostName)(Code)
Sets the remoteHostName.
Parameters:
  remoteHostName - The remoteHostName to set



setRemoteReceivedHeaderInvalid
protected void setRemoteReceivedHeaderInvalid(Boolean remoteReceivedHeaderInvalid)(Code)
Sets the remoteReceivedHeaderInvalid.
Parameters:
  remoteReceivedHeaderInvalid - The remoteReceivedHeaderInvalid to set



setRemoteRecipient
protected void setRemoteRecipient(boolean localRecipient)(Code)
Sets the localRecipient.
Parameters:
  localRecipient - The localRecipient to set



setUserUndefined
protected void setUserUndefined(boolean userUndefined)(Code)
Sets the userUndefined.
Parameters:
  userUndefined - The userUndefined to set



updateMaxMessageSizeExceeded
protected void updateMaxMessageSizeExceeded() throws MessagingException(Code)
Refreshes the maxMessageSizeExceeded.



updateRemoteAddress
protected void updateRemoteAddress() throws MessagingException, UnknownHostException(Code)
Updates the remoteAddress.



updateRemoteDomain
protected void updateRemoteDomain() throws MessagingException(Code)
Updates the remoteDomain.



updateRemoteHostName
protected void updateRemoteHostName() throws MessagingException, UnknownHostException(Code)
Updates the remoteHostName.



updateRemoteReceivedHeaderInvalid
protected void updateRemoteReceivedHeaderInvalid() throws MessagingException(Code)
Updates the remoteReceivedHeaderInvalid.



Methods inherited from org.apache.james.fetchmail.ProcessorAbstract
protected String computeAttributePrefix()(Code)(Java Doc)
public Account getAccount()(Code)(Java Doc)
protected String getAttributePrefix()(Code)(Java Doc)
protected Set getBlacklist()(Code)(Java Doc)
protected ParsedConfiguration getConfiguration()(Code)(Java Doc)
protected String getCustomRecipientHeader()(Code)(Java Doc)
protected String getDefaultDomainName()(Code)(Java Doc)
protected String getDefaultLocalPart()(Code)(Java Doc)
protected List getDeferredRecipientNotFoundMessageIDs()(Code)(Java Doc)
protected String getFetchTaskName()(Code)(Java Doc)
protected String getHost()(Code)(Java Doc)
protected String getJavaMailFolderName()(Code)(Java Doc)
protected String getJavaMailProviderName()(Code)(Java Doc)
protected UsersRepository getLocalUsers()(Code)(Java Doc)
protected Logger getLogger()(Code)(Java Doc)
protected int getMaxMessageSizeLimit()(Code)(Java Doc)
protected String getPassword()(Code)(Java Doc)
protected MailAddress getRecipient()(Code)(Java Doc)
protected int getRemoteReceivedHeaderIndex()(Code)(Java Doc)
protected MailServer getServer()(Code)(Java Doc)
protected Session getSession()(Code)(Java Doc)
protected String getUser()(Code)(Java Doc)
protected boolean isDeferRecipientNotFound()(Code)(Java Doc)
protected boolean isFetchAll()(Code)(Java Doc)
protected boolean isIgnoreRecipientHeader()(Code)(Java Doc)
protected boolean isLeave()(Code)(Java Doc)
protected boolean isLeaveBlacklisted()(Code)(Java Doc)
protected boolean isLeaveMaxMessageSizeExceeded()(Code)(Java Doc)
protected boolean isLeaveRecipientNotFound()(Code)(Java Doc)
protected boolean isLeaveRemoteReceivedHeaderInvalid()(Code)(Java Doc)
protected boolean isLeaveRemoteRecipient()(Code)(Java Doc)
protected boolean isLeaveUndeliverable()(Code)(Java Doc)
protected boolean isLeaveUserUndefined()(Code)(Java Doc)
protected boolean isMarkBlacklistedSeen()(Code)(Java Doc)
protected boolean isMarkMaxMessageSizeExceededSeen()(Code)(Java Doc)
protected boolean isMarkRecipientNotFoundSeen()(Code)(Java Doc)
protected boolean isMarkRemoteReceivedHeaderInvalidSeen()(Code)(Java Doc)
protected boolean isMarkRemoteRecipientSeen()(Code)(Java Doc)
protected boolean isMarkSeen()(Code)(Java Doc)
protected boolean isMarkUndeliverableSeen()(Code)(Java Doc)
protected boolean isMarkUserUndefinedSeen()(Code)(Java Doc)
protected boolean isOpenReadOnly()(Code)(Java Doc)
protected boolean isRecurse()(Code)(Java Doc)
protected boolean isRejectBlacklisted()(Code)(Java Doc)
protected boolean isRejectMaxMessageSizeExceeded()(Code)(Java Doc)
protected boolean isRejectRecipientNotFound()(Code)(Java Doc)
protected boolean isRejectRemoteReceivedHeaderInvalid()(Code)(Java Doc)
protected boolean isRejectRemoteRecipient()(Code)(Java Doc)
protected boolean isRejectUserUndefined()(Code)(Java Doc)
abstract public void process() throws MessagingException(Code)(Java Doc)
protected void setAccount(Account account)(Code)(Java Doc)
protected void setAttributePrefix(String attributePrefix)(Code)(Java Doc)
protected void updateAttributePrefix()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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