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
40f73369
...
40f7336964a293291b0ed2082cd7ab7a78e093fc
authored
2007-11-12 12:39:08 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Use mu_error for diagnostics where possible.
1 parent
ad08b9e5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
comsat/comsat.c
comsat/comsat.c
View file @
40f7336
...
...
@@ -158,7 +158,7 @@ main (int argc, char **argv)
if
(
test_mode
)
{
char
*
user
,
*
url
,
*
qid
;
char
*
user
;
comsat_init
();
if
(
config_file
)
...
...
@@ -471,7 +471,7 @@ notify_user (const char *user, const char *device, const char *path,
change_user
(
user
);
if
((
fp
=
fopen
(
device
,
"w"
))
==
NULL
)
{
syslog
(
LOG_ERR
,
_
(
"Cannot open device %s: %m"
),
device
);
mu_error
(
_
(
"Cannot open device %s: %m"
),
device
);
exit
(
0
);
}
...
...
@@ -487,7 +487,7 @@ notify_user (const char *user, const char *device, const char *path,
if
((
status
=
mu_mailbox_create
(
&
mbox
,
path
))
!=
0
||
(
status
=
mu_mailbox_open
(
mbox
,
MU_STREAM_READ
|
MU_STREAM_QACCESS
))
!=
0
)
{
syslog
(
LOG_ERR
,
_
(
"Cannot open mailbox %s: %s"
),
mu_error
(
_
(
"Cannot open mailbox %s: %s"
),
path
,
mu_strerror
(
status
));
return
;
}
...
...
@@ -495,7 +495,7 @@ notify_user (const char *user, const char *device, const char *path,
status
=
mu_mailbox_quick_get_message
(
mbox
,
qid
,
&
msg
);
if
(
status
)
{
syslog
(
LOG_ERR
,
_
(
"Cannot get message (mailbox %s, qid %s): %s"
),
mu_error
(
_
(
"Cannot get message (mailbox %s, qid %s): %s"
),
path
,
qid
,
mu_strerror
(
status
));
return
;
/* FIXME: Notify the user, anyway */
}
...
...
Please
register
or
sign in
to post a comment