completed: * fixes behaviour when changing flags, without corresp. rights (s,d,w)
This commit is contained in:
		@@ -382,9 +382,13 @@ class IMAPFolder(BaseFolder):
 | 
				
			|||||||
            try:
 | 
					            try:
 | 
				
			||||||
                imapobj.select(self.getfullname())
 | 
					                imapobj.select(self.getfullname())
 | 
				
			||||||
            except imapobj.readonly:
 | 
					            except imapobj.readonly:
 | 
				
			||||||
		# unsure, whether this can be reached
 | 
					                # Above we made sure, we have the necessary rights.
 | 
				
			||||||
                UIBase.getglobalui().flagstoreadonly(self, uidlist, flags)
 | 
					                # Ugly hack, to prevent an unnecessary exception:
 | 
				
			||||||
                return
 | 
					                #  readonly: mailbox status changed to READ-ONLY
 | 
				
			||||||
 | 
					                # imaplib should take care of that itself.
 | 
				
			||||||
 | 
					                # The connection is anyway released below, so we dont need to
 | 
				
			||||||
 | 
					                # undo the hack.
 | 
				
			||||||
 | 
					                imapobj.is_readonly = True
 | 
				
			||||||
            r = imapobj.uid('store',
 | 
					            r = imapobj.uid('store',
 | 
				
			||||||
                            imaputil.listjoin(uidlist),
 | 
					                            imaputil.listjoin(uidlist),
 | 
				
			||||||
                            operation + 'FLAGS',
 | 
					                            operation + 'FLAGS',
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user