diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-08-26 14:23:32 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-08-26 14:23:32 +0000 |
commit | 6178304b1670d7288d8a37b9165bda5cbc44c180 (patch) | |
tree | e17d3bce1e0b2a537937bc331efa240ce382b81e /comsat/comsat.c | |
parent | ef22616eba2aaa4e05079852ac1fa67c4ceeff08 (diff) | |
download | mailutils-6178304b1670d7288d8a37b9165bda5cbc44c180.tar.gz mailutils-6178304b1670d7288d8a37b9165bda5cbc44c180.tar.bz2 |
Normalize global namespace. Part 1
Diffstat (limited to 'comsat/comsat.c')
-rw-r--r-- | comsat/comsat.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/comsat/comsat.c b/comsat/comsat.c index d70ef66e0..a73574a1d 100644 --- a/comsat/comsat.c +++ b/comsat/comsat.c @@ -450,15 +450,15 @@ notify_user (const char *user, const char *device, const char *path, off_t offse return; } - if ((status = mailbox_create (&mbox, path)) != 0 - || (status = mailbox_open (mbox, MU_STREAM_READ)) != 0) + if ((status = mu_mailbox_create (&mbox, path)) != 0 + || (status = mu_mailbox_open (mbox, MU_STREAM_READ)) != 0) { syslog (LOG_ERR, _("Cannot open mailbox %s: %s"), path, mu_strerror (status)); return; } - if ((status = mailbox_get_stream (mbox, &stream))) + if ((status = mu_mailbox_get_stream (mbox, &stream))) { syslog (LOG_ERR, _("Cannot get stream for mailbox %s: %s"), path, mu_strerror (status)); @@ -481,8 +481,8 @@ notify_user (const char *user, const char *device, const char *path, off_t offse stream_read (stream, blurb, size, offset, &n); blurb[size] = 0; - if ((status = mailbox_create (&tmp, "/dev/null")) != 0 - || (status = mailbox_open (tmp, MU_STREAM_READ)) != 0) + if ((status = mu_mailbox_create (&tmp, "/dev/null")) != 0 + || (status = mu_mailbox_open (tmp, MU_STREAM_READ)) != 0) { syslog (LOG_ERR, _("Cannot create temporary mailbox: %s"), mu_strerror (status)); @@ -497,9 +497,9 @@ notify_user (const char *user, const char *device, const char *path, off_t offse } stream_write (stream, blurb, size, 0, &count); - mailbox_set_stream (tmp, stream); - mailbox_messages_count (tmp, &count); - mailbox_get_message (tmp, 1, &msg); + mu_mailbox_set_stream (tmp, stream); + mu_mailbox_messages_count (tmp, &count); + mu_mailbox_get_message (tmp, 1, &msg); run_user_action (fp, cr, msg); fclose (fp); |