From 0cc41dfffdfd1b74cc2004aec6bf11c4573203f7 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Sun, 31 Oct 1999 17:10:01 +0000 Subject: [PATCH] From Brendan Cully: IMAP updates should work properly again. --- charmaps/.cvsignore | 2 ++ contrib/.cvsignore | 1 + imap/BUGS | 7 +------ imap/message.c | 11 +++++++---- intl/.cvsignore | 2 ++ m4/.cvsignore | 3 +++ 6 files changed, 16 insertions(+), 10 deletions(-) create mode 100644 charmaps/.cvsignore create mode 100644 contrib/.cvsignore create mode 100644 intl/.cvsignore create mode 100644 m4/.cvsignore diff --git a/charmaps/.cvsignore b/charmaps/.cvsignore new file mode 100644 index 00000000..282522db --- /dev/null +++ b/charmaps/.cvsignore @@ -0,0 +1,2 @@ +Makefile +Makefile.in diff --git a/contrib/.cvsignore b/contrib/.cvsignore new file mode 100644 index 00000000..f3c7a7c5 --- /dev/null +++ b/contrib/.cvsignore @@ -0,0 +1 @@ +Makefile diff --git a/imap/BUGS b/imap/BUGS index 40595b3b..2403df52 100644 --- a/imap/BUGS +++ b/imap/BUGS @@ -1,10 +1,5 @@ In no particular order: -19991028: The code to refetch message flags while fetching messages so they - don't have to be stored on close seems to have been broken. I am suspicious - of the changes to use mutt_flag_set globally instead of tuning them - manually... - * Mutt doesn't handle timeouts or dropped connections gracefully. You may see occasional segfaults. Solving this cleanly requires some major architectural updates. Until that happens, I recommend you keep @@ -48,4 +43,4 @@ In no particular order: * The mutt_pretty routines don't work well when the delimiter isn't '/'. Brendan Cully -Updated 19991028 +Updated 19991030 diff --git a/imap/message.c b/imap/message.c index 870df194..e37bfb4a 100644 --- a/imap/message.c +++ b/imap/message.c @@ -345,6 +345,10 @@ int imap_fetch_message (MESSAGE *msg, CONTEXT *ctx, int msgno) mutt_set_flag (ctx, h, M_FLAG, h->flagged || newh->flagged); mutt_set_flag (ctx, h, M_REPLIED, h->replied || newh->replied); + /* this message is now definitively *not* changed (mutt_set_flag + * marks things changed as a side-effect) */ + h->changed = 0; + mutt_free_list (&(HEADER_DATA(h)->keywords)); HEADER_DATA(h)->keywords = newh->data->keywords; safe_free ((void**) &newh); @@ -352,14 +356,13 @@ int imap_fetch_message (MESSAGE *msg, CONTEXT *ctx, int msgno) } } else if (imap_handle_untagged (CTX_DATA, buf) != 0) - return (-1); + return -1; } } - while (mutt_strncmp (buf, seq, SEQLEN) != 0) - ; + while (mutt_strncmp (buf, seq, SEQLEN) != 0); if (!imap_code (buf)) - return (-1); + return -1; /* Update the header information. Previously, we only downloaded a * portion of the headers, those required for the main display. diff --git a/intl/.cvsignore b/intl/.cvsignore new file mode 100644 index 00000000..3b6496f8 --- /dev/null +++ b/intl/.cvsignore @@ -0,0 +1,2 @@ +Makefile +po2tbl.sed diff --git a/m4/.cvsignore b/m4/.cvsignore new file mode 100644 index 00000000..86155093 --- /dev/null +++ b/m4/.cvsignore @@ -0,0 +1,3 @@ +Makefile +Makefile.am +Makefile.in -- 2.40.0