summaryrefslogtreecommitdiff
path: root/guimb
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2005-08-26 14:23:32 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2005-08-26 14:23:32 +0000
commit6178304b1670d7288d8a37b9165bda5cbc44c180 (patch)
treee17d3bce1e0b2a537937bc331efa240ce382b81e /guimb
parentef22616eba2aaa4e05079852ac1fa67c4ceeff08 (diff)
downloadmailutils-6178304b1670d7288d8a37b9165bda5cbc44c180.tar.gz
mailutils-6178304b1670d7288d8a37b9165bda5cbc44c180.tar.bz2
Normalize global namespace. Part 1
Diffstat (limited to 'guimb')
-rw-r--r--guimb/collect.c40
-rw-r--r--guimb/main.c4
-rw-r--r--guimb/util.c18
3 files changed, 31 insertions, 31 deletions
diff --git a/guimb/collect.c b/guimb/collect.c
index 146d6c38c..0fd3d6163 100644
--- a/guimb/collect.c
+++ b/guimb/collect.c
@@ -1,5 +1,5 @@
/* GNU Mailutils -- a suite of utilities for electronic mail
- Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000, 2001, 2002, 2005 Free Software Foundation, Inc.
GNU Mailutils is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -37,8 +37,8 @@ collect_open_default ()
exit (1);
}
}
- if (mailbox_create (&mbox, default_mailbox) != 0
- || mailbox_open (mbox, MU_STREAM_RDWR) != 0)
+ if (mu_mailbox_create (&mbox, default_mailbox) != 0
+ || mu_mailbox_open (mbox, MU_STREAM_RDWR) != 0)
{
util_error (_("Cannot open default mailbox %s: %s"),
default_mailbox, mu_strerror (errno));
@@ -46,7 +46,7 @@ collect_open_default ()
}
/* Suck in the messages */
- mailbox_messages_count (mbox, &nmesg);
+ mu_mailbox_messages_count (mbox, &nmesg);
}
/* Open temporary file for collecting incoming messages */
@@ -109,8 +109,8 @@ collect_create_mailbox ()
fclose (temp_file);
- if (mailbox_create (&mbox, temp_filename) != 0
- || mailbox_open (mbox, MU_STREAM_READ) != 0)
+ if (mu_mailbox_create (&mbox, temp_filename) != 0
+ || mu_mailbox_open (mbox, MU_STREAM_READ) != 0)
{
util_error (_("Cannot create temp mailbox %s: %s"),
temp_filename, strerror (errno));
@@ -119,7 +119,7 @@ collect_create_mailbox ()
}
/* Suck in the messages */
- mailbox_messages_count (mbox, &nmesg);
+ mu_mailbox_messages_count (mbox, &nmesg);
if (nmesg == 0)
{
@@ -137,39 +137,39 @@ collect_output ()
if (!temp_filename)
{
- mailbox_expunge (mbox);
+ mu_mailbox_expunge (mbox);
return 0;
}
if (user_name)
saved_umask = umask (077);
- if (mailbox_create_default (&outbox, default_mailbox) != 0
- || mailbox_open (outbox, MU_STREAM_RDWR|MU_STREAM_CREAT) != 0)
+ if (mu_mailbox_create_default (&outbox, default_mailbox) != 0
+ || mu_mailbox_open (outbox, MU_STREAM_RDWR|MU_STREAM_CREAT) != 0)
{
- mailbox_destroy (&outbox);
+ mu_mailbox_destroy (&outbox);
fprintf (stderr, _("Cannot open output mailbox %s: %s\n"),
default_mailbox, strerror (errno));
return 1;
}
- mailbox_messages_count (mbox, &count);
+ mu_mailbox_messages_count (mbox, &count);
for (i = 1; i <= count; i++)
{
message_t msg = NULL;
attribute_t attr = NULL;
- mailbox_get_message (mbox, i, &msg);
+ mu_mailbox_get_message (mbox, i, &msg);
message_get_attribute (msg, &attr);
- if (!attribute_is_deleted (attr))
+ if (!mu_attribute_is_deleted (attr))
{
- attribute_set_recent (attr);
- mailbox_append_message (outbox, msg);
+ mu_attribute_set_recent (attr);
+ mu_mailbox_append_message (outbox, msg);
}
}
- mailbox_close (outbox);
- mailbox_destroy (&outbox);
+ mu_mailbox_close (outbox);
+ mu_mailbox_destroy (&outbox);
if (user_name)
umask (saved_umask);
@@ -181,8 +181,8 @@ collect_output ()
void
collect_drop_mailbox ()
{
- mailbox_close (mbox);
- mailbox_destroy (&mbox);
+ mu_mailbox_close (mbox);
+ mu_mailbox_destroy (&mbox);
if (temp_filename)
{
unlink (temp_filename);
diff --git a/guimb/main.c b/guimb/main.c
index 2be9ee279..f4596fdf5 100644
--- a/guimb/main.c
+++ b/guimb/main.c
@@ -1,6 +1,6 @@
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2000, 2001, 2002, 2003,
- 2004 Free Software Foundation, Inc.
+ 2004, 2005 Free Software Foundation, Inc.
GNU Mailutils is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -147,7 +147,7 @@ int
main (int argc, char *argv[])
{
int c = argc;
- guimb_param_t param;
+ mu_guimb_param_t param;
struct guimb_data gd;
/* Native Language Support */
diff --git a/guimb/util.c b/guimb/util.c
index 246e593d9..56afb73fb 100644
--- a/guimb/util.c
+++ b/guimb/util.c
@@ -1,5 +1,5 @@
/* GNU Mailutils -- a suite of utilities for electronic mail
- Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000, 2001, 2002, 2005 Free Software Foundation, Inc.
GNU Mailutils is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -38,29 +38,29 @@ util_get_sender (int msgno)
message_t msg = NULL;
char buffer[512];
- mailbox_get_message (mbox, msgno, &msg);
+ mu_mailbox_get_message (mbox, msgno, &msg);
message_get_header (msg, &header);
- if (header_get_value (header, MU_HEADER_FROM, buffer, sizeof (buffer), NULL)
- || address_create (&addr, buffer))
+ if (mu_header_get_value (header, MU_HEADER_FROM, buffer, sizeof (buffer), NULL)
+ || mu_address_create (&addr, buffer))
{
envelope_t env = NULL;
message_get_envelope (msg, &env);
- if (envelope_sender (env, buffer, sizeof (buffer), NULL)
- || address_create (&addr, buffer))
+ if (mu_envelope_sender (env, buffer, sizeof (buffer), NULL)
+ || mu_address_create (&addr, buffer))
{
util_error (_("Cannot determine sender name (msg %d)"), msgno);
return NULL;
}
}
- if (address_get_email (addr, 1, buffer, sizeof (buffer), NULL))
+ if (mu_address_get_email (addr, 1, buffer, sizeof (buffer), NULL))
{
util_error (_("Cannot determine sender name (msg %d)"), msgno);
- address_destroy (&addr);
+ mu_address_destroy (&addr);
return NULL;
}
- address_destroy (&addr);
+ mu_address_destroy (&addr);
return strdup (buffer);
}

Return to:

Send suggestions and report system problems to the System administrator.