Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-1222

mail-ra.rar doesn't support pop3s

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: 1.2.0.GA
    • Fix Version/s: None
    • Component/s: Mail
    • Labels:
      None
    • Environment:

      JBoss 4.0.5.GA, JBoss Seam 1.2.0.GA.Patch1

    • Estimated Difficulty:
      Low

      Description

      When I use pop3s as the store protocol, it throws NullPointerException.

      The following is the getInstance method of MailFolder class:

      public static MailFolder getInstance(MailActivationSpec mailActivationSpec)

      { if("pop3".equals(mailActivationSpec.getStoreProtocol())) return new POP3MailFolder(mailActivationSpec); if("imap".equals(mailActivationSpec.getStoreProtocol())) return new IMAPMailFolder(mailActivationSpec); else return null; }

      Obviously, if store protocol is pop3s, this method returns null back. The fix I made locally is just to change above method to:

      public static MailFolder getInstance(MailActivationSpec mailActivationSpec)

      { if(mailActivationSpec.getStoreProtocol().startsWith("pop3")) return new POP3MailFolder(mailActivationSpec); if("imap".equals(mailActivationSpec.getStoreProtocol())) return new IMAPMailFolder(mailActivationSpec); else return null; }

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  pmuir Pete Muir
                  Reporter:
                  czhao07 Chunyun Zhao
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: