From 1585b933fb37a09b167e0f01a640513434dada51 Mon Sep 17 00:00:00 2001 From: Derek Schrock Date: Sat, 16 Nov 2019 22:53:28 -0500 Subject: [PATCH] lib: Allow hostname of newbase to match alnum Possible hostnames might have digits and - in them. Crude regex to allow hostnames that start with alnum followed by alnum or "-". Fixes #1399 --- lib/tests/test-mu-maildir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tests/test-mu-maildir.c b/lib/tests/test-mu-maildir.c index 31bd6a39..2e0a127d 100644 --- a/lib/tests/test-mu-maildir.c +++ b/lib/tests/test-mu-maildir.c @@ -484,7 +484,7 @@ test_mu_maildir_get_new_path_new (void) assert_matches_regexp (newbase, "\\d+\\." "[[:xdigit:]]{16}\\." - "[[:alpha:]]+(:2,.*)?"); + "[[:alnum:]][[:alnum:]-]+(:2,.*)?"); g_free (newbase); g_free(str); }