aboutsummaryrefslogtreecommitdiffstats
path: root/g10/armor.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/armor.c')
-rw-r--r--g10/armor.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/g10/armor.c b/g10/armor.c
index 1729217a5..da08acf85 100644
--- a/g10/armor.c
+++ b/g10/armor.c
@@ -287,6 +287,14 @@ is_armor_header( byte *line, unsigned len )
return -1;
save_p = p;
p += 5;
+
+ /* Some mail programs on Windows seem to add spaces to the end of
+ the line. This becomes strict if --openpgp is set. */
+
+ if(!opt.rfc2440)
+ while(*p==' ')
+ p++;
+
if( *p == '\r' )
p++;
if( *p == '\n' )