diff options
Diffstat (limited to 'pith/stream.c')
-rw-r--r-- | pith/stream.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pith/stream.c b/pith/stream.c index 92322d38..cae8dc62 100644 --- a/pith/stream.c +++ b/pith/stream.c @@ -2285,6 +2285,8 @@ pine_imap_cmd_happened(MAILSTREAM *stream, char *cmd, long int flags) if(cmd && !strucmp(cmd, "CHECK")) reset_check_point(stream); + ps_global->can_interrupt = 0; /* never interrupt anything */ + if(is_imap_stream(stream)){ time_t now; @@ -2293,6 +2295,9 @@ pine_imap_cmd_happened(MAILSTREAM *stream, char *cmd, long int flags) sp_set_last_activity(stream, now); if(!(flags & SC_EXPUNGEDEFERRED)) sp_set_last_expunged_reaper(stream, now); + + if(cmd && !strucmp(cmd, "NOOP")) /* but can interrupt this one */ + ps_global->can_interrupt = 1; } } |