diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1998-06-08 09:17:25 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1998-06-08 09:17:25 +0000 |
commit | 57c930bf79e06c485142efeb62ffb1e9d8fe3d3b (patch) | |
tree | c3c1e876454aead42f16023f45b23a73961a03d6 /mh.c | |
parent | 1a5381e07e97fe482c2b3a7c75f99938f0b105d4 (diff) |
Mutt 0.92.9i.mutt-0-92-9i
Diffstat (limited to 'mh.c')
-rw-r--r-- | mh.c | 29 |
1 files changed, 16 insertions, 13 deletions
@@ -643,20 +643,23 @@ int mh_sync_mailbox (CONTEXT * ctx) } } - snprintf (path, sizeof (path), "%s/%s", ctx->path, ".mh_sequences"); - mh_sequences = fopen (path, "w"); - if (mh_sequences == NULL) + if(ctx->magic == M_MH) { - mutt_message ("fopen %s failed", path); - } - else - { - fprintf (mh_sequences, "unseen: "); - for (i = 0; i < ctx->msgcount; i++) - if ((ctx->hdrs[i]->read == 0) && !(ctx->hdrs[i]->deleted)) - fprintf (mh_sequences, "%s ", ctx->hdrs[i]->path); - fprintf (mh_sequences, "\n"); - fclose (mh_sequences); + snprintf (path, sizeof (path), "%s/%s", ctx->path, ".mh_sequences"); + mh_sequences = fopen (path, "w"); + if (mh_sequences == NULL) + { + mutt_message ("fopen %s failed", path); + } + else + { + fprintf (mh_sequences, "unseen: "); + for (i = 0; i < ctx->msgcount; i++) + if ((ctx->hdrs[i]->read == 0) && !(ctx->hdrs[i]->deleted)) + fprintf (mh_sequences, "%s ", ctx->hdrs[i]->path); + fprintf (mh_sequences, "\n"); + fclose (mh_sequences); + } } return (rc); |