- handle bogus search responses more gracefully
This commit is contained in:
		
							parent
							
								
									39446bbef9
								
							
						
					
					
						commit
						3327572fd2
					
				
					 1 changed files with 2 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -1329,10 +1329,8 @@ imap_append_message (imap_t * imap, int fd, message_t * msg)
 | 
			
		|||
      {
 | 
			
		||||
	arg = next_arg (&s);
 | 
			
		||||
	if (!arg)
 | 
			
		||||
	{
 | 
			
		||||
	  fprintf (stderr, "IMAP error: incomplete SEARCH response\n");
 | 
			
		||||
	  return -1;
 | 
			
		||||
	}
 | 
			
		||||
	else
 | 
			
		||||
	  uid = atoi (arg);
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue