mbx_unixscan.c
send a notif for the last message.
Showing
1 changed file
with
1 additions
and
4 deletions
... | @@ -357,9 +357,6 @@ mailbox_unix_scan (mailbox_t mbox, size_t msgno, size_t *pcount) | ... | @@ -357,9 +357,6 @@ mailbox_unix_scan (mailbox_t mbox, size_t msgno, size_t *pcount) |
357 | mailbox_unix_ilock (mbox, MU_LOCKER_WRLOCK); | 357 | mailbox_unix_ilock (mbox, MU_LOCKER_WRLOCK); |
358 | mailbox_unix_lock (mbox, MU_LOCKER_RDLOCK); | 358 | mailbox_unix_lock (mbox, MU_LOCKER_RDLOCK); |
359 | 359 | ||
360 | /*start at the beginning */ | ||
361 | rewind (file); | ||
362 | |||
363 | /* save the timestamp and size */ | 360 | /* save the timestamp and size */ |
364 | { | 361 | { |
365 | struct stat st; | 362 | struct stat st; |
... | @@ -474,9 +471,9 @@ mailbox_unix_scan (mailbox_t mbox, size_t msgno, size_t *pcount) | ... | @@ -474,9 +471,9 @@ mailbox_unix_scan (mailbox_t mbox, size_t msgno, size_t *pcount) |
474 | 471 | ||
475 | if (mum) | 472 | if (mum) |
476 | { | 473 | { |
477 | //mailbox_notification (mbox, MU_EVT_MBX_MSG_ADD); | ||
478 | mum->body_end = total - newline; | 474 | mum->body_end = total - newline; |
479 | mum->body_lines = lines - newline; | 475 | mum->body_lines = lines - newline; |
476 | DISPATCH_ADD_MSG(mbox, mud, file); | ||
480 | } | 477 | } |
481 | fclose (file); | 478 | fclose (file); |
482 | mailbox_unix_iunlock (mbox); | 479 | mailbox_unix_iunlock (mbox); | ... | ... |
-
Please register or sign in to post a comment