Hi,

I'm using anubis 4.2 (running from the git repository)  and for as long
as I can remember Anubis reads the file $HOME/.signatur instead of
$HOME/.signature.

The following patch resolves that behaviour, but I haven't dived in to
check if this is actually the right fix.

diff --git a/src/mime.c b/src/mime.c
index 3fc1e3c..625d272 100644
--- a/src/mime.c
+++ b/src/mime.c
@@ -96,7 +96,7 @@ message_append_signature_file (MESSAGE msg)

   n = strlen (homedir) + strlen (signature_file) + 2;
   signature_path = xmalloc (n);
-  snprintf (signature_path, n - 1, "%s/%s", homedir, signature_file);
+  snprintf (signature_path, n, "%s/%s", homedir, signature_file);

   message_append_text_file (msg, signature_path, "-- \n");
   free (signature_path);


Best regards,
Marcel van der Boom

PS
I noticed Anubis is not yet unicode/utf-8 capable (my normal .signature
contains some unicode characters) Are there plans to include support
for that?
-- 

Attachment: pgp6sogyGD2LH.pgp
Description: PGP signature

_______________________________________________
Bug-anubis mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-anubis

Reply via email to