+ if string.find(greetline, "TEMS POP3") > 0:
+ warnings = warnings + """
+Your POP3 server has "TEMS" in its header line. At least one such
+server does not process the "TOP" command correctly; the symptom is
+that fetchmail hangs when trying to retrieve mail. To work around
+this bug, turn on `fetchall' on all user entries associated with this
+server.
+
+"""
+ if string.find(greetline, " spray.se") > 0:
+ warnings = warnings + """
+Your POP3 server has "spray.se" in its header line. In May 2000 at
+least one such server did not process the "TOP" command correctly; the
+symptom is that messages are treated as headerless. To work around
+this bug, turn on `fetchall' on all user entries associated with this
+server.
+
+"""
+ if string.find(greetline, " usa.net") > 0:
+ warnings = warnings + """
+You appear to be using USA.NET's free mail service. Their POP3 servers
+(at least as of the 2.2 version in use mid-1998) are quite flaky, but
+fetchmail can compensate. They seem to require that fetchall be switched on
+(otherwise you won't necessarily see all your mail, not even new mail).
+They also botch the TOP command the fetchmail normally uses for retrieval
+(it only retrieves about 10 lines rather than the number specified).
+Turning on fetchall will disable the use of TOP.
+
+Therefore, it is strongly recommended that you turn on `fetchall' on all
+user entries associated with this server.
+
+"""
+ if string.find(greetline, " Novonyx POP3") > 0:
+ warnings = warnings + """
+Your mailserver is running Novonyx POP3. This server, at least as of
+version 2.17, seems to have problems handling and reporting seen bits.
+You may have to use the fetchall option.
+
+"""
+
+### IMAP servers start here
+
+ if string.find(greetline, "GroupWise") > 0:
+ warnings = warnings + """
+The Novell GroupWise IMAP server would be better named GroupFoolish;
+it is (according to the designer of IMAP) unusably broken. Among
+other things, it doesn't include a required content length in its
+BODY[TEXT] response.<p>
+
+Fetchmail works around this problem, but we strongly recommend voting
+with your dollars for a server that isn't brain-dead. If you stick
+with code as shoddy as GroupWise seems to be, you will probably pay
+for it with other problems.<p>
+
+"""
+ if string.find(greetline, "Netscape IMAP4rev1 Service 3.6") > 0:
+ warnings = warnings + """
+This server violates the RFC2060 requirement that a BODY[TEXT] fetch should
+set the messages's Seen flag. As a result, if you use the keep option the
+same messages will be downloaded over and over.
+
+"""
+ if string.find(greetline, "InterChange") > 0:
+ warnings = warnings + """
+The InterChange IMAP server screws up on mail with attachments. It
+doesn't fetch them if you give it a BODY[TEXT] request, though it
+does if you request RFC822.TEXT. According to the IMAP RFCs and their
+maintainer these should be equivalent -- and we can't drop the
+BODY[TEXT] form because M$ Exchange (quite legally under RFC2062)
+rejects it.
+
+"""
+ if string.find(greetline, "Imail") > 0:
+ warnings = warnings + """
+We've seen a bug report indicating that this IMAP server (at least as of
+version 5.0.7) returns an invalid body size for messages with MIME
+attachments; the effect is to drop the attachments on the floor. We
+recommend you upgrade to a non-broken IMAP server.
+
+"""
+ if string.find(greetline, "Domino IMAP4") > 0:
+ warnings = warnings + """
+Your IMAP server appears to be Lotus Domino. This server, at least up
+to version 4.6.2a, has a bug in its generation of MIME boundaries (see
+the details in the fetchmail FAQ). As a result, even MIME aware MUAs
+will see attachments as part of the message text. If your Domino server's
+POP3 facility is enabled, we recommend you fall back on it.
+
+"""
+
+### Checks for protocol variants start here
+