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
5cc65400
...
5cc65400cb88bb4554d1f7b7ca66bd49a90fa5bd
authored
2002-11-05 13:38:20 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mail_from0): New function shared between from.c and headers.c
1 parent
e7336cfd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
mail/from.c
mail/from.c
View file @
5cc6540
...
...
@@ -27,7 +27,13 @@ mail_from (int argc, char **argv)
if
(
argc
>
1
)
return
util_msglist_command
(
mail_from
,
argc
,
argv
,
0
);
else
{
return
mail_from0
(
cursor
,
1
);
return
1
;
}
int
mail_from0
(
int
msgno
,
int
verbose
)
{
message_t
msg
;
header_t
hdr
=
NULL
;
envelope_t
env
;
...
...
@@ -42,7 +48,8 @@ mail_from (int argc, char **argv)
struct
tm
tm
;
mu_timezone
tz
;
if
(
util_get_message
(
mbox
,
cursor
,
&
msg
,
1
))
if
(
util_get_message
(
mbox
,
msgno
,
&
msg
,
MSG_NODELETED
|
(
verbose
?
0
:
MSG_SILENT
)))
return
1
;
message_get_header
(
msg
,
&
hdr
);
...
...
@@ -106,13 +113,11 @@ mail_from (int argc, char **argv)
fromp
=
from
?
from
:
""
;
subjp
=
subj
?
subj
:
fromp
;
fprintf
(
ofile
,
"%c%c%4d %-18.18s %-16.16s %s %.*s
\n
"
,
cursor
==
realcursor
?
'>'
:
' '
,
cflag
,
cursor
,
msgno
==
realcursor
?
'>'
:
' '
,
cflag
,
msgno
,
fromp
,
date
,
st
,
(
subjl
<
0
)
?
0
:
subjl
,
subjp
);
free
(
from
);
free
(
subj
);
return
0
;
}
return
1
;
}
...
...
Please
register
or
sign in
to post a comment