[tin 1.7.x] check address befor mailreply

Urs Janßen <[email protected]>
Newsgroups gmane.network.tin.devel
Message-ID <[email protected]>
quick hack, we might need something to turn this on/off and/or to
adjust the error level.

--- post.c	2005-06-28 10:31:22.000000000 +0200
+++ post.c	2005-07-05 12:07:13.139035432 +0200
@@ -3100,12 +3094,16 @@
 	char subject[HEADER_LEN];
 	char initials[64];
 	int ret_code = POSTED_NONE;
+	int g;
 	struct t_header note_h = pgart.hdr;
 
 	wait_message(0, _(txt_reply_to_author));
 	find_reply_to_addr(from_addr, FALSE, &pgart.hdr);
 
-	if (check_for_spamtrap(from_addr)) {
+	g = gnksa_check_from(from_addr);
+
+	/* TODO: make gnksa error level configurable */
+	if (check_for_spamtrap(from_addr) || (g > GNKSA_OK && g < GNKSA_ILLEGAL_UNQUOTED_CHAR)) {
 		char keyabort[MAXKEYLEN], keycont[MAXKEYLEN];
 		t_function func;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.