aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2013-03-29 04:15:57 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2013-03-29 04:15:57 +0000
commitb3b69ab5c0a2811c063c0a5cbc36ef630f495478 (patch)
tree5a6b722bbb762a672ad2290cc330f4d44e83974b
parent1e9977992d5ea25ee30b7ab155e3879d6cd86710 (diff)
src/quote_fmt_parse.y: insert current date with %d for a new message.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3241 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r--ChangeLog4
-rw-r--r--NEWS2
-rw-r--r--src/quote_fmt_parse.y8
3 files changed, 13 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d204a95f..6bf9d146 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2013-03-29
+ * src/quote_fmt_parse.y: insert current date with %d for a new message.
+
+2013-03-29
+
* src/summaryview.c: summary_junk(): select proper junk folder instead
of default one.
diff --git a/NEWS b/NEWS
index f77af2cc..54f03b99 100644
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,8 @@ Changes of Sylpheed
* Quotation of forwarded messages is enabled for template now.
* When marking a message as junk and moving it to a junk folder, proper
junk folder is selected instead of default one.
+ * When applying a template for a new message, current date is inserted
+ with '%d'.
* 3.4.0beta2 (development)
diff --git a/src/quote_fmt_parse.y b/src/quote_fmt_parse.y
index 15b2359a..336b481a 100644
--- a/src/quote_fmt_parse.y
+++ b/src/quote_fmt_parse.y
@@ -178,8 +178,14 @@ special:
}
| SHOW_DATE
{
- if (msginfo->date)
+ if (msginfo->date) {
INSERT(msginfo->date);
+ } else if (msginfo->size == 0) {
+ gchar buf[64];
+
+ get_rfc822_date(buf, sizeof(buf));
+ INSERT(buf);
+ }
}
| SHOW_FROM
{