diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-07-26 06:27:12 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-07-26 06:27:12 +0000 |
commit | 324975fdec9f928a1a5ba60347fa72e341021b41 (patch) | |
tree | eb972110a1c2c52d6f95bc093f1e9497b2cad9a5 /examples/mimetest.c | |
parent | 08f4f14c3109239d771392ddac23e60f8a47b61b (diff) | |
download | mailutils-324975fdec9f928a1a5ba60347fa72e341021b41.tar.gz mailutils-324975fdec9f928a1a5ba60347fa72e341021b41.tar.bz2 |
Use registrar_record instead of directly accessing registrar list.
Diffstat (limited to 'examples/mimetest.c')
-rw-r--r-- | examples/mimetest.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/examples/mimetest.c b/examples/mimetest.c index 385e217e6..dab6edb2d 100644 --- a/examples/mimetest.c +++ b/examples/mimetest.c @@ -1,5 +1,5 @@ /* GNU Mailutils -- a suite of utilities for electronic mail - Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. + Copyright (C) 1999, 2000, 2001, 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 @@ -81,14 +81,10 @@ main (int argc, char **argv) mailbox_name = argv[i]; /* Registration. */ - { - list_t bookie; - registrar_get_list (&bookie); - list_append (bookie, imap_record); - list_append (bookie, mbox_record); - list_append (bookie, path_record); - list_append (bookie, pop_record); - } + registrar_record (imap_record); + registrar_record (mbox_record); + registrar_record (path_record); + registrar_record (pop_record); if ((ret = mailbox_create_default (&mbox, mailbox_name)) != 0) { |