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
8b5b25a6
...
8b5b25a60cbb5aa6931e798000f2c2f985097155
authored
2007-07-09 17:35:35 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(util_escape_percent): Delete
1 parent
1815987a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
34 deletions
mail/mail.h
mail/util.c
mail/mail.h
View file @
8b5b25a
...
...
@@ -350,7 +350,6 @@ extern void util_slist_destroy (mu_list_t *list);
extern
char
*
util_slist_to_string
(
mu_list_t
list
,
const
char
*
delim
);
extern
void
util_strcat
(
char
**
dest
,
const
char
*
str
);
extern
void
util_strupper
(
char
*
str
);
extern
void
util_escape_percent
(
char
**
str
);
extern
char
*
util_outfolder_name
(
char
*
str
);
extern
void
util_save_outgoing
(
mu_message_t
msg
,
char
*
savefile
);
extern
void
util_error
(
const
char
*
format
,
...)
MU_PRINTFLIKE
(
1
,
2
);
...
...
mail/util.c
View file @
8b5b25a
...
...
@@ -821,9 +821,9 @@ util_get_sender (int msgno, int strip)
if
(
!
addr
)
{
mu_envelope_t
env
=
NULL
;
c
har
buffer
[
512
]
;
c
onst
char
*
buffer
;
mu_message_get_envelope
(
msg
,
&
env
);
if
(
mu_envelope_s
ender
(
env
,
buffer
,
sizeof
(
buffer
),
NULL
)
if
(
mu_envelope_s
get_sender
(
env
,
&
buffer
)
||
mu_address_create
(
&
addr
,
buffer
))
{
util_error
(
_
(
"Cannot determine sender name (msg %d)"
),
msgno
);
...
...
@@ -996,37 +996,6 @@ util_strupper (char *s)
}
void
util_escape_percent
(
char
**
str
)
{
int
count
;
char
*
p
,
*
q
;
char
*
newstr
;
/* Count ocurrences of % in the string */
count
=
0
;
for
(
p
=
*
str
;
*
p
;
p
++
)
if
(
*
p
==
'%'
)
count
++
;
if
(
!
count
)
return
;
/* nothing to do */
/* expand the string */
newstr
=
xmalloc
(
strlen
(
*
str
)
+
1
+
count
);
/* and escape percent signs */
p
=
newstr
;
q
=
*
str
;
while
((
*
p
=
*
q
++
))
{
if
(
*
p
==
'%'
)
*++
p
=
'%'
;
p
++
;
}
*
str
=
newstr
;
}
char
*
util_outfolder_name
(
char
*
str
)
{
...
...
Please
register
or
sign in
to post a comment