ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/mail/courier/files/extra-patch-webmail__msg2html.c
Revision: 16349
Committed: Sun Apr 20 18:32:36 2014 UTC (10 years ago) by laffer1
Content type: text/plain
File size: 1254 byte(s)
Log Message:
remove cvs2svn:cvs-rev prop

File Contents

# Content
1 --- webmail/msg2html.c.orig 2007-07-11 03:36:04.000000000 +0200
2 +++ webmail/msg2html.c 2007-12-21 08:42:02.000000000 +0100
3 @@ -451,6 +451,7 @@
4 char *header, *value;
5 char *save_subject=0;
6 char *save_date=0;
7 +char *save_xface=0;
8 off_t start_pos, end_pos, start_body;
9 struct rfc2045id *p, newpart;
10 off_t dummy;
11 @@ -523,6 +524,13 @@
12 free(header);
13 continue;
14 }
15 + if (strcmp(header, "x-face") == 0)
16 + {
17 + if (save_xface) free(save_xface);
18 + save_xface=strdup(value);
19 + free(header);
20 + continue;
21 + }
22 if (isaddressheader(header))
23 {
24 print_header_uc(info, header);
25 @@ -575,7 +583,18 @@
26 if (flag && info->message_rfc822_action)
27 (*info->message_rfc822_action)(idptr);
28
29 - printf("</table>\n<hr width=\"100%%\" />\n");
30 + if (save_xface)
31 + {
32 + char *q=cgiurlencode(save_xface);
33 + printf("</table>\n</td><td align=\"right\"><img width=\"48\" heigth=\"48\" src=\"http://www.dairiki.org/xface/xface.php?xface=");
34 + printf("%s", q);
35 + printf("&amp;preview=1\"></td></tr><tr><td colspan=\"2\"><hr width=\"100%%\">\n");
36 + free(q);
37 + }
38 + else
39 + {
40 + printf("</table>\n<hr width=\"100%%\" />\n");
41 + }
42
43 if (!flag && info->gpgdir && libmail_gpg_has_gpg(info->gpgdir) == 0
44 && libmail_gpgmime_has_mimegpg(rfc)