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
a0cad499
...
a0cad4991408f9b426a92d5ef3da2e1678f70315
authored
2005-02-23 16:01:34 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(parse_opt): Bugfix. Was using optarg instead of arg
1 parent
e087da3a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
20 deletions
frm/frm.c
mail.local/main.c
pop3d/popauth.c
readmsg/readmsg.c
frm/frm.c
View file @
a0cad49
/* 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
...
...
@@ -227,7 +227,7 @@ parse_opt (int key, char *arg, struct argp_state *state)
break
;
case
's'
:
select_attribute
=
decode_attr
(
opt
arg
);
select_attribute
=
decode_attr
(
arg
);
break
;
case
't'
:
...
...
mail.local/main.c
View file @
a0cad49
/* 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
...
...
@@ -166,20 +166,20 @@ parse_opt (int key, char *arg, struct argp_state *state)
#ifdef WITH_GUILE
case
's'
:
progfile_pattern
=
opt
arg
;
progfile_pattern
=
arg
;
break
;
#endif
case
'S'
:
sieve_pattern
=
opt
arg
;
sieve_pattern
=
arg
;
break
;
case
'x'
:
do
{
if
(
!
opt
arg
)
opt
arg
=
D_DEFAULT
;
switch
(
*
opt
arg
)
if
(
!
arg
)
arg
=
D_DEFAULT
;
switch
(
*
arg
)
{
case
'g'
:
#ifdef WITH_GUILE
...
...
@@ -208,14 +208,14 @@ parse_opt (int key, char *arg, struct argp_state *state)
break
;
default:
if
(
isdigit
(
*
opt
arg
))
debug_level
=
*
opt
arg
-
'0'
;
if
(
isdigit
(
*
arg
))
debug_level
=
*
arg
-
'0'
;
else
argp_error
(
state
,
_
(
"%c is not a valid debug flag"
),
*
arg
);
break
;
}
}
while
(
*++
opt
arg
);
while
(
*++
arg
);
break
;
default:
...
...
pop3d/popauth.c
View file @
a0cad49
/* 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
...
...
@@ -151,7 +151,7 @@ popauth_parse_opt (int key, char *arg, struct argp_state *astate)
break
;
case
'p'
:
ap
->
passwd
=
opt
arg
;
ap
->
passwd
=
arg
;
break
;
case
'm'
:
...
...
@@ -160,19 +160,19 @@ popauth_parse_opt (int key, char *arg, struct argp_state *astate)
break
;
case
'f'
:
ap
->
input_name
=
opt
arg
;
ap
->
input_name
=
arg
;
break
;
case
'o'
:
ap
->
output_name
=
opt
arg
;
ap
->
output_name
=
arg
;
break
;
case
'u'
:
ap
->
username
=
opt
arg
;
ap
->
username
=
arg
;
break
;
case
'P'
:
set_db_perms
(
astate
,
opt
arg
,
&
permissions
);
set_db_perms
(
astate
,
arg
,
&
permissions
);
break
;
case
ARGP_KEY_FINI
:
...
...
readmsg/readmsg.c
View file @
a0cad49
/* 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
...
...
@@ -88,11 +88,11 @@ readmsg_parse_opt (int key, char *arg, struct argp_state *astate)
break
;
case
'f'
:
mailbox_name
=
opt
arg
;
mailbox_name
=
arg
;
break
;
case
'w'
:
weedlist
=
opt
arg
;
weedlist
=
arg
;
break
;
case
'n'
:
...
...
Please
register
or
sign in
to post a comment