Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
6b4db5de
...
6b4db5de2ba41425ad52ed6f17f59d7e6253760c
authored
2004-01-08 16:30:29 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(main): Use mu_register_all_formats
1 parent
45a2791f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
29 deletions
mail/mail.c
sieve/sieve.c
mail/mail.c
View file @
6b4db5d
...
...
@@ -230,18 +230,7 @@ main (int argc, char **argv)
mu_init_nls
();
/* Register the desired formats. */
{
list_t
bookie
;
registrar_get_list
(
&
bookie
);
list_append
(
bookie
,
mbox_record
);
list_append
(
bookie
,
path_record
);
list_append
(
bookie
,
pop_record
);
list_append
(
bookie
,
imap_record
);
list_append
(
bookie
,
mh_record
);
/* Possible supported mailers. */
list_append
(
bookie
,
sendmail_record
);
list_append
(
bookie
,
smtp_record
);
}
mu_register_all_formats
();
interactive
=
isatty
(
fileno
(
stdin
));
#ifdef HAVE_SIGACTION
...
...
sieve/sieve.c
View file @
6b4db5d
...
...
@@ -44,8 +44,6 @@
#include <mailutils/nls.h>
#include <mailutils/tls.h>
void
mutil_register_all_mbox_formats
(
void
);
const
char
*
program_version
=
"sieve ("
PACKAGE_STRING
")"
;
static
char
doc
[]
=
...
...
@@ -367,7 +365,7 @@ main (int argc, char *argv[])
if
(
rc
)
return
1
;
mu
til_register_all_mbox
_formats
();
mu
_register_all
_formats
();
/* Sieve interpreter setup. */
rc
=
sieve_machine_init
(
&
mach
,
NULL
);
...
...
@@ -535,17 +533,3 @@ cleanup:
return
rc
?
1
:
0
;
}
void
mutil_register_all_mbox_formats
(
void
)
{
list_t
bookie
=
0
;
registrar_get_list
(
&
bookie
);
list_append
(
bookie
,
path_record
);
list_append
(
bookie
,
file_record
);
list_append
(
bookie
,
mbox_record
);
list_append
(
bookie
,
pop_record
);
list_append
(
bookie
,
imap_record
);
list_append
(
bookie
,
mh_record
);
list_append
(
bookie
,
sendmail_record
);
list_append
(
bookie
,
smtp_record
);
}
...
...
Please
register
or
sign in
to post a comment