diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-11-25 15:18:00 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-11-25 15:18:00 +0000 |
commit | e4391cf30fdc1c2190ac22640fb09654a86bf66f (patch) | |
tree | 4819df8c4868559c07ef79ab5401b5117047a836 /imap | |
parent | e3c3035ca3d198f48846bd3d966a7860f0a61067 (diff) |
Undo the IMAP keepalive patch. It has just bitten me while mutt was
trying to dotlock a folder. Seems that there needs some more work
to be done.
Diffstat (limited to 'imap')
-rw-r--r-- | imap/imap.h | 1 | ||||
-rw-r--r-- | imap/util.c | 29 |
2 files changed, 0 insertions, 30 deletions
diff --git a/imap/imap.h b/imap/imap.h index 7fdb30d8..fd41112d 100644 --- a/imap/imap.h +++ b/imap/imap.h @@ -51,6 +51,5 @@ int imap_parse_path (char* path, char* host, size_t hlen, int* port, int *socktype, char** mbox); void imap_qualify_path (char* dest, size_t len, const char* host, int port, const char* path, const char* name); -void imap_keepalive (void); #endif diff --git a/imap/util.c b/imap/util.c index fae9defe..6bc5d423 100644 --- a/imap/util.c +++ b/imap/util.c @@ -26,8 +26,6 @@ #include <stdlib.h> #include <ctype.h> -#include <signal.h> - /* imap_continue: display a message and ask the user if she wants to * go on. */ int imap_continue (const char* msg, const char* resp) @@ -301,30 +299,3 @@ int imap_wordcasecmp(const char *a, const char *b) return mutt_strcasecmp(a, tmp); } - -/* imap_keepalive: use buffy to poll a remote imap folder - * while waiting for an external process - */ - -void imap_keepalive (void) -{ - sigset_t sigset; - sigset_t osigset; - - if (option (OPTMSGERR)) - return; - - sigemptyset (&sigset); - sigaddset (&sigset, SIGCHLD); - sigprocmask (SIG_UNBLOCK, &sigset, &osigset); - - set_option (OPTKEEPQUIET); - - mutt_buffy_check (0); - sleep (ImapCheckTimeout > 0 ? ImapCheckTimeout : 60); - - unset_option (OPTKEEPQUIET); - sigprocmask (SIG_BLOCK, &osigset, NULL); -} - - |