Skip to content

Commit

Permalink
remove some lines I was using for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
ddpbsd committed Jan 3, 2018
1 parent 63954cf commit f5e839e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/os_maild/sendcustomemail.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@

int OS_SendCustomEmail(char **to, char *subject, char *smtpserver, char *from, char *replyto, char *idsname, char *fname, const struct tm *p)
{
merror("YYY OS_SendCustomEmail");
FILE *sendmail = NULL;
int socket = -1, i = 0;
char *msg;
Expand Down Expand Up @@ -270,17 +269,12 @@ int OS_SendCustomEmail(char **to, char *subject, char *smtpserver, char *from, c
sr = stat(fname, &sb);
if(sr < 0) {
merror("Cannot stat %s: %s", fname, strerror(errno));
} else {
merror("YYY size is: %ld", sb.st_size);
}
if(sb.st_size > 0) {
merror("YYY Size is: %ld", sb.st_size);
} else {
if(sb.st_size == 0) {
merror("Report is empty");
return(0);
}
while (fgets(buffer, 2048, fp) != NULL) {
merror("YYY Sending buffer: %s", buffer);
if (sendmail) {
fprintf(sendmail, "%s", buffer);
} else {
Expand Down

0 comments on commit f5e839e

Please sign in to comment.