1   package com.atlassian.mail;
2   
3   /**
4    * Used for maintaining thread information in sent emails.
5    */
6   public interface MailThreader
7   {
8       /** Set the In-Reply-To header for an email, so it will appear threaded.
9        * @param email The unsent mail to alter
10       */
11      void threadEmail(Email email);
12  
13      /** Store the (MTA-allocated) Message-Id of a <em>sent</em> email, so later
14       * emails 'in reply to' this can be threaded.
15       * @param email The sent mail whose Message-Id we should record
16       */
17      void storeSentEmail(Email email);
18  }