changeset 805:255d277b37db

Allow a space in $originalmail N$ substitution.
author Ben Schmidt
date Wed, 04 Jan 2012 04:10:31 +1100
parents 8d2b8248ac9f
children c9237f9a3465
files ChangeLog src/prepstdreply.c
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Jan 04 04:06:37 2012 +1100
+++ b/ChangeLog	Wed Jan 04 04:10:31 2012 +1100
@@ -1,3 +1,4 @@
+ o Allow a space in $originalmail N$ substitution
  o Add $text T$ substitution
  o Add $$ substitution
  o Allow list texts to include real UTF-8 characters, as documented
--- a/src/prepstdreply.c	Wed Jan 04 04:06:37 2012 +1100
+++ b/src/prepstdreply.c	Wed Jan 04 04:10:31 2012 +1100
@@ -484,6 +484,10 @@
 			*tmp = '\0';
 			tmp += 13;
 			str = tmp;
+			if (*tmp == ' ') {
+				tmp++;
+				str = tmp;
+			}
 			while (*tmp >= '0' && *tmp <= '9')
 				tmp++;
 			if (*tmp == '$') {
@@ -516,7 +520,7 @@
 				    log_error(LOG_ARGS, "Could not substitute $originalmail%d$ (mailname == %s)",len,mailname);
 				}
 			} else {
-				log_error(LOG_ARGS, "Bad $originalmailNNN$ substitution");
+				log_error(LOG_ARGS, "Bad $originalmail N$ substitution");
 			}
 			myfree(utfline);
 		} else {