about summary refs log tree commit diff
path: root/mshow.c
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-12-06 14:00:38 +0100
committerLeah Neukirchen <leah@vuxu.org>2017-12-06 14:00:38 +0100
commit6310898b10665e161b1f4594a17ad23ac7fc6535 (patch)
tree87b6770254736a3db06993f4b7d09c41452d55bc /mshow.c
parent4fef01ab6d24145cb9ecd5d779b90a15764f02cc (diff)
downloadmblaze-6310898b10665e161b1f4594a17ad23ac7fc6535.tar.gz
mblaze-6310898b10665e161b1f4594a17ad23ac7fc6535.tar.xz
mblaze-6310898b10665e161b1f4594a17ad23ac7fc6535.zip
mshow: list, reply: skip leading spaces for file names
Diffstat (limited to 'mshow.c')
-rw-r--r--mshow.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mshow.c b/mshow.c
index f50ef52..98c309e 100644
--- a/mshow.c
+++ b/mshow.c
@@ -386,6 +386,8 @@ list_mime(int depth, struct message *msg, char *body, size_t bodylen)
 void
 list(char *file)
 {
+	while (*file == ' ' || *file == '\t')
+		file++;
 	struct message *msg = blaze822_file(file);
 	if (!msg)
 		return;
@@ -397,6 +399,8 @@ list(char *file)
 void
 reply(char *file)
 {
+	while (*file == ' ' || *file == '\t')
+		file++;
 	struct message *msg = blaze822_file(file);
 	if (!msg)
 		return;