[PATCH 3/5] dump: Disallow \n in message IDs

David Bremner david at tethera.net
Tue Dec 25 06:21:48 PST 2012


Austin Clements <amdragon at MIT.EDU> writes:
>  
>  	randomchar = random_unichar ();
> +	if (randomchar == '\n')
> +	    randomchar = 'x';
>  

what about something like 

do {
   randomchar = random_unichar ();
}  while (randomchar == '\n');


More information about the notmuch mailing list