don't attempt to filter LIST response if there is no Path
we won't filter anything in that case anyway.
This commit is contained in:
		
							parent
							
								
									608834c6f1
								
							
						
					
					
						commit
						f385355bdb
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
					@ -1090,8 +1090,7 @@ parse_list_rsp_p2( imap_store_t *ctx, list_t *list, char *cmd ATTR_UNUSED )
 | 
				
			||||||
		return LIST_BAD;
 | 
							return LIST_BAD;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	arg = list->val;
 | 
						arg = list->val;
 | 
				
			||||||
	if (!is_inbox( ctx, arg )) {
 | 
						if (!is_inbox( ctx, arg ) && (l = strlen( ctx->prefix ))) {
 | 
				
			||||||
		l = strlen( ctx->prefix );
 | 
					 | 
				
			||||||
		if (memcmp( arg, ctx->prefix, l ))
 | 
							if (memcmp( arg, ctx->prefix, l ))
 | 
				
			||||||
			goto skip;
 | 
								goto skip;
 | 
				
			||||||
		arg += l;
 | 
							arg += l;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue