"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libs/sqwebmail/msg2html.c" between
sqwebmail-5.9.3.tar.bz2 and sqwebmail-6.0.0.tar.bz2

About: SqWebMail is a CGI Webmail client for Maildir mailboxes (module of the Courier mail server).

msg2html.c  (sqwebmail-5.9.3.tar.bz2):msg2html.c  (sqwebmail-6.0.0.tar.bz2)
skipping to change at line 1271 skipping to change at line 1271
continue; continue;
} }
ungetc(c, fp); ungetc(c, fp);
if ((header=get_next_header(fp, &value, 1, if ((header=get_next_header(fp, &value, 1,
&start_body, &end_pos)) == 0) &start_body, &end_pos)) == 0)
break; break;
print_header_uc(info, header); print_header_uc(info, header);
printf("<td><span class=\"message-rfc822-header-contents\">"); printf("<td><span class=\"message-rfc822-header-contents\">");
/* showmsgrfc822_addressheader(value); */ /* showmsgrfc822_addressheader(value); */
html_escape(value, strlen(value)); html_escape(value, strlen(value));
printf("</span></td></tr>\n"); printf("</span></td></tr>\n");
free(header); free(header);
} }
printf("</table>\n"); printf("</table>\n");
} }
static const char validurlchars[]= static const char validurlchars[]=
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
skipping to change at line 2976 skipping to change at line 2977
if (strcmp(content_type, "application/pgp-keys") == 0 if (strcmp(content_type, "application/pgp-keys") == 0
&& info->gpgdir && libmail_gpg_has_gpg(info->gpgdir) == 0) && info->gpgdir && libmail_gpg_has_gpg(info->gpgdir) == 0)
return ( &showkey ); return ( &showkey );
if (mime->content_disposition if (mime->content_disposition
&& strcmp(mime->content_disposition, "attachment") == 0) && strcmp(mime->content_disposition, "attachment") == 0)
return (0); return (0);
if (strcmp(content_type, "text/plain") == 0 || if (strcmp(content_type, "text/plain") == 0 ||
strcmp(content_type, "text/rfc822-headers") == 0 || rfc2045_message_headers_content_type(content_type) ||
strcmp(content_type, "text/x-gpg-output") == 0) strcmp(content_type, "text/x-gpg-output") == 0)
return ( &showtextplain ); return ( &showtextplain );
if (strcmp(content_type, "message/delivery-status") == 0) if (rfc2045_delivery_status_content_type(content_type))
return ( &showdsn); return ( &showdsn);
if (info->showhtml && strcmp(content_type, "text/html") == 0) if (info->showhtml && strcmp(content_type, "text/html") == 0)
return ( &showtexthtml ); return ( &showtexthtml );
if (strcmp(content_type, "message/rfc822") == 0) if (rfc2045_message_content_type(content_type))
return ( &showmsgrfc822); return ( &showmsgrfc822);
return (0); return (0);
} }
static void (*get_handler(struct rfc2045 *mime, static void (*get_handler(struct rfc2045 *mime,
struct msg2html_info *info)) struct msg2html_info *info))
(FILE *, struct rfc2045 *, (FILE *, struct rfc2045 *,
struct rfc2045id *, struct rfc2045id *,
struct msg2html_info *) struct msg2html_info *)
 End of changes. 4 change blocks. 
3 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)