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

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

Date: Tue, 25 Dec 2012 10:21:48 -0400

To: Austin Clements, notmuch@notmuchmail.org

Cc:

From: David Bremner


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

what about something like 

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

Thread: