Uses of Interface
org.apache.mailet.Mail

Packages that use Mail
org.apache.james   
org.apache.james.core Implementations of core James services and concepts. 
org.apache.james.fetchmail   
org.apache.james.mailrepository Implementations of mail repositories for use in James. 
org.apache.james.services A set of interfaces for commonly used, generic James concepts. 
org.apache.james.smtpserver Provides classes implementing SMTP functionality. 
org.apache.james.transport Classes that implement the matcher/mailet processing chain. 
org.apache.james.transport.mailets Core mailets for use with the Mailet API. 
org.apache.james.transport.mailets.debug Debugging mailets for use with the Mailet API. 
org.apache.james.transport.mailets.listservcommands   
org.apache.james.transport.mailets.smime   
org.apache.james.transport.matchers Core matchers for use with the Mailet API. 
org.apache.james.transport.matchers.smime   
org.apache.mailet The classes that constitute the Mailet API. 
 

Uses of Mail in org.apache.james
 

Methods in org.apache.james with parameters of type Mail
 void James.bounce(Mail mail, java.lang.String message)
          This generates a response to the Return-Path address, or the address of the message's sender if the Return-Path is not available.
 void James.bounce(Mail mail, java.lang.String message, MailAddress bouncer)
          This generates a response to the Return-Path address, or the address of the message's sender if the Return-Path is not available.
 void James.sendMail(Mail mail)
          Place a mail on the spool for processing
 

Uses of Mail in org.apache.james.core
 

Classes in org.apache.james.core that implement Mail
 class MailImpl
          Wraps a MimeMessage adding routing information (from SMTP) and some simple API enhancements.
 

Methods in org.apache.james.core that return Mail
 Mail MailImpl.duplicate()
          Duplicate the MailImpl.
 Mail MailImpl.duplicate(java.lang.String newName)
          Duplicate the MailImpl, replacing the mail name with the one passed in as an argument.
 

Constructors in org.apache.james.core with parameters of type Mail
MailImpl(Mail mail, java.lang.String newName)
           
 

Uses of Mail in org.apache.james.fetchmail
 

Methods in org.apache.james.fetchmail that return Mail
protected  Mail MessageProcessor.createMail(javax.mail.internet.MimeMessage message, MailAddress recipient)
          Method createMail creates a new Mail.
 

Methods in org.apache.james.fetchmail with parameters of type Mail
protected  void MessageProcessor.addErrorMessages(Mail mail)
          Adds any required error messages to a Mail.
protected  void MessageProcessor.addMailAttributes(Mail aMail)
          Adds the mail attributes to a Mail.
protected  void MessageProcessor.handleBouncing(Mail mail)
          Method handleBouncing sets the Mail state to ERROR and delete from the message store.
protected  void MessageProcessor.sendMail(Mail mail)
          Method sendMail.
 

Uses of Mail in org.apache.james.mailrepository
 

Methods in org.apache.james.mailrepository that return Mail
 Mail MailStoreSpoolRepository.accept()
           
 Mail JDBCSpoolRepository.accept()
          Return a message to process.
 Mail AvalonSpoolRepository.accept()
          Returns an arbitrarily selected mail deposited in this Repository.
 Mail MailStoreSpoolRepository.accept(long delay)
           
 Mail JDBCSpoolRepository.accept(long delay)
          Return a message that's ready to process.
 Mail AvalonSpoolRepository.accept(long delay)
          Returns an arbitrarily selected mail deposited in this Repository that is either ready immediately for delivery, or is younger than it's last_updated plus the number of failed attempts times the delay time.
 Mail MailStoreSpoolRepository.accept(SpoolRepository.AcceptFilter filter)
           
 Mail JDBCSpoolRepository.accept(SpoolRepository.AcceptFilter filter)
          Returns an arbitrarily selected mail deposited in this Repository for which the supplied filter's accept method returns true.
 Mail AvalonSpoolRepository.accept(SpoolRepository.AcceptFilter filter)
          Returns an arbitrarily select mail deposited in this Repository for which the supplied filter's accept method returns true.
 Mail MBoxMailRepository.retrieve(java.lang.String key)
          Get a message from the backing store (disk)
 Mail MailStoreSpoolRepository.retrieve(java.lang.String key)
           
 Mail JDBCMailRepository.retrieve(java.lang.String key)
          Retrieves a message given a key.
 Mail AvalonMailRepository.retrieve(java.lang.String key)
          Retrieves a message given a key.
 

Methods in org.apache.james.mailrepository with parameters of type Mail
 void MBoxMailRepository.remove(Mail mail)
          Remove an existing message
 void MailStoreSpoolRepository.remove(Mail mail)
           
 void JDBCMailRepository.remove(Mail mail)
          Removes a specified message
 void AvalonMailRepository.remove(Mail mail)
          Removes a specified message
 void MBoxMailRepository.store(Mail mc)
          Store the given email in the current mbox file
 void MailStoreSpoolRepository.store(Mail mc)
           
 void JDBCSpoolRepository.store(Mail mc)
          Needs to override this method and reset the time to load to zero.
 void JDBCMailRepository.store(Mail mc)
          Store this message to the database.
 void AvalonMailRepository.store(Mail mc)
          Stores a message in this repository.
 

Uses of Mail in org.apache.james.services
 

Methods in org.apache.james.services that return Mail
 Mail SpoolRepository.accept()
          Returns an arbitrarily selected mail deposited in this Repository.
 Mail SpoolRepository.accept(long delay)
          Returns an arbitrarily select mail deposited in this Repository that is either ready immediately for delivery, or is younger than it's last_updated plus the number of failed attempts times the delay time.
 Mail SpoolRepository.accept(SpoolRepository.AcceptFilter filter)
          Returns an arbitrarily select mail deposited in this Repository for which the supplied filter's accept method returns true.
 Mail MailRepository.retrieve(java.lang.String key)
          Retrieves a message given a key.
 

Methods in org.apache.james.services with parameters of type Mail
 void MailRepository.remove(Mail mail)
          Removes a specified message
 void MailServer.sendMail(Mail mail)
          Pass a Mail to this MailServer for processing
 void MailRepository.store(Mail mc)
          Stores a message in this repository.
 

Uses of Mail in org.apache.james.smtpserver
 

Methods in org.apache.james.smtpserver that return Mail
 Mail SMTPSession.getMail()
          Returns Mail object for message handlers to process
 Mail SMTPHandler.getMail()
           
 

Methods in org.apache.james.smtpserver with parameters of type Mail
 void SMTPSession.setMail(Mail mail)
          Sets the MailImpl object for further processing
 void SMTPHandler.setMail(Mail mail)
           
 

Uses of Mail in org.apache.james.transport
 

Methods in org.apache.james.transport with parameters of type Mail
protected  void JamesSpoolManager.process(Mail mail)
          Process this mail message by the appropriate processor as designated in the state of the Mail object.
 void LinearProcessor.service(Mail mail)
          Processes a single mail message through the chain of matchers and mailets.
 

Uses of Mail in org.apache.james.transport.mailets
 

Methods in org.apache.james.transport.mailets with parameters of type Mail
protected  void CommandListservProcessor.addFooter(Mail mail)
          Add the footer using CommandListservFooter
protected  boolean AbstractRedirect.attachError(Mail originalMail)
          Gets the attachError property, built dynamically using the original Mail object.
protected  void AbstractRedirect.buildAlteredMessage(Mail newMail, Mail originalMail)
          Builds the message of the newMail in case it has to be altered.
protected  boolean CommandListservProcessor.checkAllowedPoster(Mail mail, java.util.Collection members)
          Returns true if this user is ok to send to the list
protected  boolean CommandListservProcessor.checkAnnouncements(Mail mail)
          Returns true if this is ok to send to the list
protected  boolean CommandListservProcessor.checkBeenThere(MailAddress listservAddr, Mail mail)
          return true if this is ok, false otherwise Check if the X-been-there header is set to the listserv's name (the address).
protected  boolean CommandListservProcessor.checkMembers(java.util.Collection members, Mail mail)
          Returns true if this user is ok to send to the list
protected  javax.mail.internet.MimeBodyPart DSNBounce.createAttachedOriginal(Mail originalMail, int attachmentType)
          Create a MimeBodyPart with the original Mail as Attachment
protected  javax.mail.internet.MimeBodyPart DSNBounce.createDSN(Mail originalMail)
          creates the DSN-bodypart for automated processing
protected  javax.mail.internet.MimeBodyPart DSNBounce.createTextMsg(Mail originalMail)
          Create a MimeBodyPart with a textual description for human readers.
protected  int AbstractRedirect.getAttachmentType(Mail originalMail)
          Gets the attachment property, built dynamically using the original Mail object.
protected  boolean AbstractRedirect.getFakeDomainCheck(Mail originalMail)
          Gets the fakeDomainCheck property, built dynamically using the original Mail object.
protected  int AbstractRedirect.getInLineType(Mail originalMail)
          Gets the inline property, built dynamically using the original Mail object.
protected  java.lang.String AbstractRedirect.getMessage(Mail originalMail)
          Gets the message property, built dynamically using the original Mail object.
protected  java.lang.String AbstractNotify.getMessage(Mail originalMail)
           
protected  boolean AbstractRedirect.getPassThrough(Mail originalMail)
          Gets the passThrough property, built dynamically using the original Mail object.
protected  java.util.Collection AbstractRedirect.getRecipients(Mail originalMail)
          Gets the recipients property, built dynamically using the original Mail object.
protected  MailAddress AbstractRedirect.getReplyTo(Mail originalMail)
          Gets the replyTo property, built dynamically using the original Mail object.
protected  MailAddress Redirect.getReversePath(Mail originalMail)
           
protected  MailAddress DSNBounce.getReversePath(Mail originalMail)
           
protected  MailAddress Bounce.getReversePath(Mail originalMail)
           
protected  MailAddress AbstractRedirect.getReversePath(Mail originalMail)
          Gets the reversePath property, built dynamically using the original Mail object.
protected  MailAddress AbstractNotify.getReversePath(Mail originalMail)
           
protected  MailAddress AbstractRedirect.getSender(Mail originalMail)
          Gets the sender property, built dynamically using the original Mail object.
protected  java.lang.String AbstractRedirect.getSubject(Mail originalMail)
          Gets the subject property, built dynamically using the original Mail object.
protected  java.lang.String AbstractRedirect.getSubjectPrefix(Mail originalMail)
          Gets the subjectPrefix property, built dynamically using the original Mail object.
protected  javax.mail.internet.InternetAddress[] AbstractRedirect.getTo(Mail originalMail)
          Gets the to property, built dynamically using the original Mail object.
protected  boolean AbstractRedirect.isReply(Mail originalMail)
          Gets the isReply property, built dynamically using the original Mail object.
protected  java.lang.String DSNBounce.newName(Mail mail)
          Create a unique new primary key name.
 void ICommandListservManager.onError(Mail mail, java.lang.String subject, java.lang.String errorMessage)
          An error occurred, send some sort of message to the sender
 void CommandListservManager.onError(Mail mail, java.lang.String subject, java.lang.String errorMessage)
          An error occurred, send some sort of message
protected  javax.mail.internet.MimeMessage CommandListservProcessor.prepareListMessage(Mail mail, MailAddress listservAddr)
          Create a new message with some set headers
protected  java.util.Collection AbstractRedirect.replaceInternetAddresses(Mail mail, java.util.Collection list)
          Returns a new Collection built over list replacing special addresses with real InternetAddress-es.
protected  java.util.Collection AbstractRedirect.replaceMailAddresses(Mail mail, java.util.Collection list)
          Returns a new Collection built over list replacing special addresses with real MailAddress-es.
protected  boolean AbstractRedirect.senderDomainIsValid(Mail mail)
          Checks if a sender domain of mail is valid.
 void WhiteListManager.service(Mail mail)
          Services the mailet.
 void UsersRepositoryAliasingForwarding.service(Mail mail)
          Delivers a mail to a local mailbox.
 void UseHeaderRecipients.service(Mail mail)
          Process an incoming email, removing the currently identified recipients and replacing them with the recipients indicated in the Mail-For, To and Cc headers of the actual email.
 void ToRepository.service(Mail mail)
          Store a mail in a particular repository.
 void ToProcessor.service(Mail mail)
          Deliver a mail to the processor.
 void ToMultiRepository.service(Mail mail)
          Delivers a mail to a local mailbox.
 void SetMimeHeader.service(Mail mail)
          Takes the message and adds a header to it.
 void SetMailAttribute.service(Mail mail)
          Sets the configured attributes
 void ServerTime.service(Mail mail)
          Sends a message back to the sender indicating what time the server thinks it is.
 void RemoveMailAttribute.service(Mail mail)
          Remove the configured attributes
 void RemoveAllMailAttributes.service(Mail mail)
          Removes all attributes on the Mail
 void RemoteDelivery.service(Mail mail)
          For this message, we take the list of recipients, organize these into distinct servers, and duplicate the message for each of these servers, and then call the deliver (messagecontainer) method for each server-specific messagecontainer ... that will handle storing it in the outgoing queue if needed.
 void PostmasterAlias.service(Mail mail)
          Make sure that a message that is addressed to a postmaster alias is always sent to the postmaster address, regardless of delivery to other recipients.
 void Null.service(Mail mail)
          Set this mail to GHOST state, indicating that no further processing should take place.
 void LogMessage.service(Mail genericmail)
          Log a particular message
 void LocalDelivery.service(Mail mail)
          Delivers a mail to a local mailbox.
 void JDBCAlias.service(Mail mail)
           
 void GenericListservManager.service(Mail mail)
          Processes the message.
 void GenericListserv.service(Mail mail)
          Processes the message.
 void FromRepository.service(Mail trigger)
          Spool mail from a particular repository.
 void DSNBounce.service(Mail originalMail)
          Service does the hard work and bounces the originalMail in the format specified by RFC3464.
 void CommandListservProcessor.service(Mail mail)
          A message was sent to the list serv.
 void CommandListservManager.service(Mail mail)
          Called by the mailet container to allow the mailet to process a message.
 void ClamAVScan.service(Mail mail)
          Scans the mail.
 void Bounce.service(Mail originalMail)
          Service does the hard work,and redirects the originalMail in the form specified.
 void BayesianAnalysisFeeder.service(Mail mail)
          Scans the mail and updates the token frequencies in the database.
 void BayesianAnalysis.service(Mail mail)
          Scans the mail and determines the spam probability.
 void AddHabeasWarrantMark.service(Mail mail)
          Called by the mailet container to allow the mailet to process to a message message.
 void AbstractVirtualUserTable.service(Mail mail)
          Checks the recipient list of the email for user mappings.
 void AbstractRedirect.service(Mail originalMail)
          Service does the hard work,and redirects the originalMail in the form specified.
 void AbstractAddFooter.service(Mail mail)
          Takes the message and attaches a footer message to it.
protected  void AbstractRedirect.setIsReply(Mail newMail, boolean isReply, Mail originalMail)
          Sets the "In-Reply-To:" header of newMail to the "Message-Id:" of originalMail, if isReply is true.
protected  void AbstractRedirect.setRecipients(Mail newMail, java.util.Collection recipients, Mail originalMail)
          Sets the recipients of newMail to recipients.
protected  void AbstractRedirect.setReplyTo(Mail newMail, MailAddress replyTo, Mail originalMail)
          Sets the "Reply-To:" header of newMail to replyTo.
protected  void AbstractRedirect.setReversePath(MailImpl newMail, MailAddress reversePath, Mail originalMail)
          Sets the "reverse-path" of newMail to reversePath.
protected  void AbstractRedirect.setSender(Mail newMail, MailAddress sender, Mail originalMail)
          Sets the "From:" header of newMail to sender.
protected  void AbstractRedirect.setSubjectPrefix(Mail newMail, java.lang.String subjectPrefix, Mail originalMail)
          Builds the subject of newMail appending the subject of originalMail to subjectPrefix.
protected  void AbstractNotify.setSubjectPrefix(Mail newMail, java.lang.String subjectPrefix, Mail originalMail)
          Builds the subject of newMail appending the subject of originalMail to subjectPrefix, but avoiding a duplicate.
protected  void AbstractRedirect.setTo(Mail newMail, javax.mail.internet.InternetAddress[] to, Mail originalMail)
          Sets the "To:" header of newMail to to.
 

Uses of Mail in org.apache.james.transport.mailets.debug
 

Methods in org.apache.james.transport.mailets.debug with parameters of type Mail
 void Identity.service(Mail mail)
          Do nothing.
 void ExceptionThrowingMailet.service(Mail mail)
          Throw an exception if any mail is processed.
 void DumpSystemErr.service(Mail mail)
          Writes the message to System.err .
 void Counter.service(Mail mail)
          Count processed mails, marking each mail as completed after counting.
 

Uses of Mail in org.apache.james.transport.mailets.listservcommands
 

Methods in org.apache.james.transport.mailets.listservcommands with parameters of type Mail
protected  boolean UnSubscribeConfirm.checkSubscriptionStatus(Mail mail)
          Checks to see that this user is already subscribed, if not return false and send a message
protected  boolean UnSubscribe.checkSubscriptionStatus(Mail mail)
          Checks to see that this user is already subscribed, if not return false and send a message
protected  boolean SubscribeConfirm.checkSubscriptionStatus(Mail mail)
          Checks to see if this user is already subscribed, if so return false and send a message
protected  boolean Subscribe.checkSubscriptionStatus(Mail mail)
          Checks to see if this user is already subscribed, if so return false and send a message
 void UnSubscribeConfirm.onCommand(Mail mail)
          After ensuring that the user is currently subscribed, remove the user to the mailing list, and send a goodbye message.
 void UnSubscribe.onCommand(Mail mail)
          After ensuring that the user is currently subscribed, confirmation mail will be sent to be processed by UnSubscribeConfirm.
 void SubscribeConfirm.onCommand(Mail mail)
          After ensuring that the user isn't already subscribed, add the user to the mailing list, and send a welcome message.
 void Subscribe.onCommand(Mail mail)
          After ensuring that the user isn't already subscribed, confirmation mail will be sent to be processed by SubscribeConfirm.
 void Owner.onCommand(Mail mail)
          Process this command to your hearts content
 void Info.onCommand(Mail mail)
          Process the info command using the following text resources: Info.HEADER Info.INFO Info.ADMIN_COMMANDS
 void IListServCommand.onCommand(Mail mail)
          Process this command to your hearts content
 void ErrorCommand.onCommand(Mail mail)
          Delegate to ErrorCommand.onError(org.apache.mailet.Mail, java.lang.String, java.lang.String)
 void ErrorCommand.onError(Mail mail, java.lang.String subject, java.lang.String errorMessage)
          An error occurred, send a message with the following text resources: ErrorCommand.HEADER ErrorCommand.ERROR ErrorCommand.ADMIN_COMMANDS
protected  void BaseCommand.sendStandardReply(Mail origMail, java.lang.String subject, java.lang.String message, java.lang.String replyAddress)
          Produces a standard response replyAddress to the sender
 

Uses of Mail in org.apache.james.transport.mailets.smime
 

Methods in org.apache.james.transport.mailets.smime with parameters of type Mail
protected  boolean SMIMEAbstractSign.fromAddressSameAsReverse(Mail mail)
          Utility method that checks if there is at least one address in the "From:" header same as the reverse-path.
protected  javax.mail.internet.MimeBodyPart SMIMESign.getWrapperBodyPart(Mail mail)
          A text file with the massaged contents of SMIMESign.getExplanationText() is attached to the original message.
protected abstract  javax.mail.internet.MimeBodyPart SMIMEAbstractSign.getWrapperBodyPart(Mail mail)
          Creates the MimeBodyPart that will be signed.
protected  boolean SMIMEAbstractSign.isOkToSign(Mail mail)
          Checks if the mail can be signed.
 void SMIMEDecrypt.service(Mail mail)
           
 void SMIMECheckSignature.service(Mail mail)
           
 void SMIMEAbstractSign.service(Mail mail)
          Service does the hard work, and signs
 

Uses of Mail in org.apache.james.transport.matchers
 

Methods in org.apache.james.transport.matchers with parameters of type Mail
protected  long RecipientIsOverFixedQuota.getQuota(MailAddress recipient, Mail _)
           
protected abstract  long AbstractQuotaMatcher.getQuota(MailAddress address, Mail mail)
          Gets the quota to check against.
protected  long AbstractStorageQuota.getUsed(MailAddress recipient, Mail _)
          Gets the storage used in the recipient's inbox.
protected abstract  long AbstractQuotaMatcher.getUsed(MailAddress address, Mail mail)
          Gets the used amount to check against the quota.
protected  boolean AbstractQuotaMatcher.isOverQuota(MailAddress address, Mail mail)
          Does the quota check.
 java.util.Collection SubjectStartsWith.match(Mail mail)
           
 java.util.Collection SubjectIs.match(Mail mail)
           
 java.util.Collection SMTPAuthUserIs.match(Mail mail)
           
 java.util.Collection SMTPAuthSuccessful.match(Mail mail)
           
 java.util.Collection SizeGreaterThan.match(Mail mail)
           
 java.util.Collection SenderIsRegex.match(Mail mail)
           
 java.util.Collection SenderIsNull.match(Mail mail)
           
 java.util.Collection SenderIs.match(Mail mail)
           
 java.util.Collection SenderInFakeDomain.match(Mail mail)
           
 java.util.Collection SenderHostIs.match(Mail mail)
          Takes the message and checks the sender (if there is one) against the vector of host names.
 java.util.Collection RemoteAddrNotInNetwork.match(Mail mail)
           
 java.util.Collection RemoteAddrInNetwork.match(Mail mail)
           
 java.util.Collection RelayLimit.match(Mail mail)
           
 java.util.Collection IsSingleRecipient.match(Mail mail)
           
 java.util.Collection IsInWhiteList.match(Mail mail)
           
 java.util.Collection InSpammerBlacklist.match(Mail mail)
           
 java.util.Collection HasMailAttributeWithValueRegex.match(Mail mail)
           
 java.util.Collection HasMailAttributeWithValue.match(Mail mail)
          Answers the recipients of the mail if the attribute is present, and has a toString() value equal to the configured value.
 java.util.Collection HasMailAttribute.match(Mail mail)
           
 java.util.Collection HasHeader.match(Mail mail)
           
 java.util.Collection HasHabeasWarrantMark.match(Mail mail)
           
 java.util.Collection HasAttachment.match(Mail mail)
          Either every recipient is matching or neither of them.
 java.util.Collection GenericRegexMatcher.match(Mail mail)
           
 java.util.Collection FetchedFrom.match(Mail mail)
           
 java.util.Collection CompareNumericHeaderValue.match(Mail mail)
           
 java.util.Collection AttachmentFileNameIs.match(Mail mail)
          Either every recipient is matching or neither of them.
 java.util.Collection All.match(Mail mail)
           
 java.util.Collection AbstractQuotaMatcher.match(Mail mail)
          Standard matcher entrypoint.
 

Uses of Mail in org.apache.james.transport.matchers.smime
 

Methods in org.apache.james.transport.matchers.smime with parameters of type Mail
 java.util.Collection IsX509CertificateSubject.match(Mail mail)
           
 java.util.Collection IsSMIMESigned.match(Mail mail)
           
 java.util.Collection IsSMIMEEncrypted.match(Mail mail)
           
 

Uses of Mail in org.apache.mailet
 

Methods in org.apache.mailet with parameters of type Mail
 void MailetContext.bounce(Mail mail, java.lang.String message)
          Bounces the message using a standard format with the given message.
 void MailetContext.bounce(Mail mail, java.lang.String message, MailAddress bouncer)
          Bounces the email message using the provided email address as the sender of the bounce.
 java.util.Collection Matcher.match(Mail mail)
          Takes a Mail message, looks at any pertinent information, and then returns a subset of recipients that meet the "match" conditions.
 java.util.Collection GenericRecipientMatcher.match(Mail mail)
          Matches each recipient one by one through matchRecipient(MailAddress recipient) method.
abstract  java.util.Collection GenericMatcher.match(Mail mail)
          Called by the matcher container to allow the matcher to process a message.
 void MailetContext.sendMail(Mail mail)
          Send an outgoing message to the top of this mailet container's root queue.
 void Mailet.service(Mail mail)
          Called by the mailet container to allow the mailet to process to a message.
abstract  void GenericMailet.service(Mail mail)
          Called by the mailet container to allow the mailet to process a message.
 



Copyright © 2002-2007 The Apache Software Foundation. All Rights Reserved.