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
cc72de56
...
cc72de5624595044fe97caebcd15648ef26b7797
authored
2005-09-22 09:49:27 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
New command line argument "sieve"
1 parent
e0a6ed03
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
config/mailutils-config.c
config/mailutils-config.c
View file @
cc72de5
...
...
@@ -32,8 +32,8 @@ static struct argp_option options[] = {
{
"compile"
,
'c'
,
NULL
,
0
,
N_
(
"Print C compiler flags to compile with"
),
0
},
{
"link"
,
'l'
,
NULL
,
0
,
N_
(
"Print libraries to link with. Possible arguments are: auth, guile,
all,
"
"mbox, mh, maildir, imap, pop"
),
0
},
N_
(
"Print libraries to link with. Possible arguments are: auth, guile, "
"mbox, mh, maildir, imap, pop
, sieve and all
"
),
0
},
{
"info"
,
'i'
,
NULL
,
0
,
N_
(
"Print a list of configuration options used to build mailutils. If arguments "
"are given, they are interpreted as a list of configuration options to check "
...
...
@@ -91,29 +91,31 @@ static const char *argp_capa[] = {
};
#ifdef WITH_TLS
# define
TLS
AUTH 1
# define
NEED
AUTH 1
#else
# define
TLS
AUTH 0
# define
NEED
AUTH 0
#endif
#define NOTALL 2
struct
lib_descr
{
char
*
name
;
char
*
libname
;
int
needauth
;
int
flags
;
}
lib_descr
[]
=
{
{
"mbox"
,
"mu_mbox"
,
0
},
{
"mh"
,
"mu_mh"
,
0
},
{
"maildir"
,
"mu_maildir"
,
0
},
{
"imap"
,
"mu_imap"
,
TLS
AUTH
},
{
"pop"
,
"mu_pop"
,
TLS
AUTH
},
{
"imap"
,
"mu_imap"
,
NEED
AUTH
},
{
"pop"
,
"mu_pop"
,
NEED
AUTH
},
{
"nntp"
,
"mu_nntp"
,
0
},
{
"sieve"
,
"sieve"
,
NOTALL
},
{
NULL
}
};
struct
lib_entry
{
int
level
;
char
*
ptr
;
}
lib_entry
[
1
0
];
}
lib_entry
[
1
6
];
int
nentry
;
...
...
@@ -208,9 +210,11 @@ main (int argc, char **argv)
for
(
p
=
lib_descr
;
p
->
name
;
p
++
)
{
if
(
p
->
flags
&
NOTALL
)
continue
;
asprintf
(
&
ptr
,
"-l%s"
,
p
->
libname
);
add_entry
(
0
,
ptr
);
if
(
p
->
needauth
)
if
(
p
->
flags
&
NEEDAUTH
)
add_entry
(
2
,
"-lmuauth "
AUTHLIBS
);
}
}
...
...
@@ -226,7 +230,7 @@ main (int argc, char **argv)
{
asprintf
(
&
ptr
,
"-l%s"
,
p
->
libname
);
add_entry
(
0
,
ptr
);
if
(
p
->
needauth
)
if
(
p
->
flags
&
NEEDAUTH
)
add_entry
(
2
,
"-lmuauth "
AUTHLIBS
);
}
else
...
...
Please
register
or
sign in
to post a comment