summaryrefslogtreecommitdiff
path: root/libproto/mbox/mbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'libproto/mbox/mbox.c')
-rw-r--r--libproto/mbox/mbox.c30
1 files changed, 1 insertions, 29 deletions
diff --git a/libproto/mbox/mbox.c b/libproto/mbox/mbox.c
index 33431cbad..9e49d342d 100644
--- a/libproto/mbox/mbox.c
+++ b/libproto/mbox/mbox.c
@@ -63,8 +63,6 @@ static int mbox_readstream (mbox_message_t, char *, size_t,
mu_off_t, size_t *, int, mu_off_t, mu_off_t);
static int mbox_stream_size (mu_stream_t stream, mu_off_t *psize);
-static int mbox_header_size (mu_header_t, size_t *);
-static int mbox_header_lines (mu_header_t, size_t *);
static int mbox_body_size (mu_body_t, size_t *);
static int mbox_body_lines (mu_body_t, size_t *);
static int mbox_envelope_sender (mu_envelope_t, char *, size_t, size_t *);
@@ -894,7 +892,7 @@ mbox_readstream (mbox_message_t mum, char *buffer, size_t buflen,
start + off, &nread);
else
status = mu_stream_read (mum->mud->mailbox->stream, buffer, nread,
- start + off, &nread);
+ start + off, &nread);
}
}
mu_monitor_unlock (mum->mud->mailbox->monitor);
@@ -918,30 +916,6 @@ mbox_header_fill (mu_header_t header, char *buffer, size_t len,
}
static int
-mbox_header_size (mu_header_t header, size_t *psize)
-{
- mu_message_t msg = mu_header_get_owner (header);
- mbox_message_t mum = mu_message_get_owner (msg);
- if (mum == NULL)
- return EINVAL;
- if (psize)
- *psize = mum->body - mum->header_from_end;
- return 0;
-}
-
-static int
-mbox_header_lines (mu_header_t header, size_t *plines)
-{
- mu_message_t msg = mu_header_get_owner (header);
- mbox_message_t mum = mu_message_get_owner (msg);
- if (mum == NULL)
- return EINVAL;
- if (plines)
- *plines = mum->header_lines;
- return 0;
-}
-
-static int
mbox_body_size (mu_body_t body, size_t *psize)
{
mu_message_t msg = mu_body_get_owner (body);
@@ -1120,8 +1094,6 @@ mbox_get_message (mu_mailbox_t mailbox, size_t msgno, mu_message_t *pmsg)
return status;
}
mu_header_set_fill (header, mbox_header_fill, msg);
- mu_header_set_size (header, mbox_header_size, msg);
- mu_header_set_lines (header, mbox_header_lines, msg);
mu_message_set_header (msg, header, mum);
}

Return to:

Send suggestions and report system problems to the System administrator.