From: Sunil S. <sun...@ro...> - 2011-05-05 11:21:49
|
Hi, ----- Original Message ----- > I think the real issue is not related to IMAP at all. What Yunfan Jiang may be > trying to say is that when fetchmail -v runs without syslog, there are too many > skipping messages without any real protocol level activity. Note that this is > true for both IMAP and POP3. This is also true for fetchmail -v -v. > > Say, there are 20,000 mails with just one new mail. When a user runs > "fetchmail -v --nosyslog" or "fetchmail -v -v", the user > sees some protocol level activity at the start. This could be "SEARCH > UNSEEN" for IMAP or "UIDL" for POP3. From that activity, it > becomes clear that there is just one new mail. > > What follows this activity is a series of "skipping message n" lines > from 1 to 19,999. These lines do not make any sense if all the user is trying to > do is to look at the protocol level logs for the 20,000th mail. In fact, if the > output is to the terminal, these 19,999 lines without any real IMAP/POP3 > activity can lead to a slow scrolling. There is also the risk of hitting the > timeout at the mailserver since no real activity has occurred on the mailserver > end while those 19,999 lines are getting printed. > > For IMAP, the logs could look like: > > IMAP> A0010 SEARCH UNSEEN > IMAP< * SEARCH 20000 > IMAP< A0010 OK SEARCH completed > skipping message ...@...:1 (not flushed) > skipping message ...@...:2 (not flushed) > skipping message ...@...:3 (not flushed) > ... > skipping message ...@...:19997 (not flushed) > skipping message ...@...:19998 (not flushed) > skipping message ...@...:19999 (not flushed) > IMAP> A0011 FETCH 20000 RFC822.SIZE > > The real solution would be to remove all the "skipping message n (not > flushed)" messages if they are not related to any protocol activity as they > do not add any real value. The patch attached should do the trick. Please check > and evaluate. Note that I have not tested for POP3 with UIDL as yet. I am sending the patch to the devel list to check if the patch is getting removed here. Sorry for the unnecessary traffic. -- Sunil Shetye. |