james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r619109 - /james/server/trunk/core-library/src/main/java/org/apache/james/mailboxmanager/tracking/UidToMsnConverter.java
Date Wed, 06 Feb 2008 19:11:39 GMT
Author: rdonkin
Date: Wed Feb  6 11:11:36 2008
New Revision: 619109

URL: http://svn.apache.org/viewvc?rev=619109&view=rev
Log:
No longer needed

Modified:
    james/server/trunk/core-library/src/main/java/org/apache/james/mailboxmanager/tracking/UidToMsnConverter.java

Modified: james/server/trunk/core-library/src/main/java/org/apache/james/mailboxmanager/tracking/UidToMsnConverter.java
URL: http://svn.apache.org/viewvc/james/server/trunk/core-library/src/main/java/org/apache/james/mailboxmanager/tracking/UidToMsnConverter.java?rev=619109&r1=619108&r2=619109&view=diff
==============================================================================
--- james/server/trunk/core-library/src/main/java/org/apache/james/mailboxmanager/tracking/UidToMsnConverter.java
(original)
+++ james/server/trunk/core-library/src/main/java/org/apache/james/mailboxmanager/tracking/UidToMsnConverter.java
Wed Feb  6 11:11:36 2008
@@ -183,32 +183,14 @@
                 add(uid);
             } else if (event instanceof Expunged) {
                 expunged(uid);
-            } else if (event instanceof FlagsUpdated) {
-                final FlagsUpdated flagsUpdated = (FlagsUpdated) event;
-                flagsUpdated(flagsUpdated.getSubjectUid(), flagsUpdated.getNewFlags(), 
-                        sessionId);
             }
         }
     }
-    
 
     public void expunged(final long uid) {
         final int msn = getMsn(uid);
         if (msn >= 0) {
             expungedEventList.add(new Integer(msn));
-        }
-    }
-
-    public synchronized void flagsUpdated(final long uid, final Flags flags, long sessionId)
{
-        final Long uidObject = new Long(uid);
-        if (sessionId != this.sessionId && !flagEventMap.containsKey(uidObject))
{
-            // if there has been an external update in the past we should inform
-            // about the newest value, even if in silent mode
-            
-            // only store flags
-            final MessageResultImpl lightweightResult = new MessageResultImpl(uid);
-            lightweightResult.setFlags(flags);
-            flagEventMap.put(uidObject, lightweightResult);
         }
     }
     



---------------------------------------------------------------------
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