mirror of
				https://github.com/stalwartlabs/mail-server.git
				synced 2025-10-31 14:56:16 +08:00 
			
		
		
		
	Add isActive property to defaults on Sieve/get JMAP method (closes #624)
This commit is contained in:
		
							parent
							
								
									7826eb3ea1
								
							
						
					
					
						commit
						a27ac74ad5
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		|  | @ -28,8 +28,12 @@ impl JMAP { | ||||||
|         mut request: GetRequest<RequestArguments>, |         mut request: GetRequest<RequestArguments>, | ||||||
|     ) -> trc::Result<GetResponse> { |     ) -> trc::Result<GetResponse> { | ||||||
|         let ids = request.unwrap_ids(self.core.jmap.get_max_objects)?; |         let ids = request.unwrap_ids(self.core.jmap.get_max_objects)?; | ||||||
|         let properties = |         let properties = request.unwrap_properties(&[ | ||||||
|             request.unwrap_properties(&[Property::Id, Property::Name, Property::BlobId]); |             Property::Id, | ||||||
|  |             Property::Name, | ||||||
|  |             Property::BlobId, | ||||||
|  |             Property::IsActive, | ||||||
|  |         ]); | ||||||
|         let account_id = request.account_id.document_id(); |         let account_id = request.account_id.document_id(); | ||||||
|         let push_ids = self |         let push_ids = self | ||||||
|             .get_document_ids(account_id, Collection::SieveScript) |             .get_document_ids(account_id, Collection::SieveScript) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue