[bug] "Your message is not acceptable for the following reason(s):"

Peter J Ross <[email protected]>
Newsgroups gmane.network.slrn.user
Message-ID <[email protected]>
"Your message is not acceptable for the following reason(s):" sometimes 
appears while posting when no warning is appropriate. It briefly flashes on 
screen, and then the article is accepted. The unwanted warning appears after 
a genuine warning has appeared when posting a previous article.

The relevant code is in src/post.c.

My impression is that a "goto free_and_return;" line is missing somewhere. 
Here's my newbie-esque attempt to solve the problem:

#v+
Index: src/post.c
===================================================================
--- src/post.c  (revision 298)
+++ src/post.c  (working copy)
@@ -1052,6 +1060,9 @@
             break;
           case MIME_ERROR_WARN:
             has_warn = 1;
+            break;
+          default:
+            goto free_and_return;
          }
        tmp = tmp->next;
      }
#v-

This may be crap, but at least my involvement with slrn is encouraging me to 
start learning C.

-- 
PJR :-)

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
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.