james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joachim Draeger (JIRA)" <server-...@james.apache.org>
Subject [jira] Created: (JAMES-721) MBoxMailRepository.remove(String key) does not work
Date Sat, 02 Dec 2006 19:35:21 GMT
MBoxMailRepository.remove(String key) does not work
---------------------------------------------------

                 Key: JAMES-721
                 URL: http://issues.apache.org/jira/browse/JAMES-721
             Project: James
          Issue Type: Bug
          Components: MailStore & MailRepository
    Affects Versions: Trunk
            Reporter: Joachim Draeger
             Fix For: Next Major


It calls
        ArrayList keys = new ArrayList();
        keys.add(key);
        this.remove(keys);
although remove(Collection) expects Mail objects

02/12/06 20:25:14 ERROR pop3server: Some deleted messages were not removed: java.lang.String
java.lang.ClassCastException: java.lang.String
	at org.apache.james.mailrepository.MBoxMailRepository$3.messageAction(MBoxMailRepository.java:702)
	at org.apache.james.mailrepository.MBoxMailRepository.parseMboxFile(MBoxMailRepository.java:277)
	at org.apache.james.mailrepository.MBoxMailRepository.remove(MBoxMailRepository.java:691)
	at org.apache.james.mailrepository.MBoxMailRepository.remove(MBoxMailRepository.java:767)

    public void remove(Mail mail) {
        // Convert the message into a key
        Vector delVec = new Vector();
        delVec.addElement(mail);
        remove(delVec);
    }

Works, but the comment is wrong. 



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message