maildrop.c
changeset 26 b20d78c55e91
parent 20 efd945b7f3d2
child 27 6a8a845df07c
equal deleted inserted replaced
25:ce31cbe9193a 26:b20d78c55e91
   320 		if (*uidl) {
   320 		if (*uidl) {
   321 			(void)strlcpy(res.u.hash, m.msgs_index[i]->hash,
   321 			(void)strlcpy(res.u.hash, m.msgs_index[i]->hash,
   322 			    sizeof(res.u.hash));
   322 			    sizeof(res.u.hash));
   323 		} else
   323 		} else
   324 			res.u.sz = m.msgs_index[i]->sz;
   324 			res.u.sz = m.msgs_index[i]->sz;
   325 		
   325 
   326 		imsgev_xcompose(iev, IMSG_MAILDROP_LISTALL,
   326 		imsgev_xcompose(iev, IMSG_MAILDROP_LISTALL,
   327 		    imsg->hdr.peerid, 0, -1, &res, sizeof(res),
   327 		    imsg->hdr.peerid, 0, -1, &res, sizeof(res),
   328 		    "maildrop_list");
   328 		    "maildrop_list");
   329 	}
   329 	}
   330 	
   330 
   331 	res.uidl = *uidl;
   331 	res.uidl = *uidl;
   332 	/* terminal sentinel: hash = "" and sz = 0 */
   332 	/* terminal sentinel: hash = "" and sz = 0 */
   333 	if (*uidl)
   333 	if (*uidl)
   334 		(void)strlcpy(res.u.hash, "", sizeof(res.u.hash));
   334 		(void)strlcpy(res.u.hash, "", sizeof(res.u.hash));
   335 	else
   335 	else