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
45ec96c8
...
45ec96c88fa37178cb1485930bd10524733c24ad
authored
2002-08-15 12:55:42 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Bugfix: display messages without Subject: or From: headers.
1 parent
467bb959
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
mail/from.c
mail/from.c
View file @
45ec96c
...
...
@@ -32,7 +32,7 @@ mail_from (int argc, char **argv)
header_t
hdr
=
NULL
;
envelope_t
env
;
attribute_t
attr
;
char
*
from
=
NULL
,
*
subj
=
NULL
;
char
*
from
=
NULL
,
*
subj
=
NULL
,
*
fromp
,
*
subjp
;
int
froml
,
subjl
;
char
date
[
80
],
st
[
10
];
int
cols
=
util_getcols
()
-
6
;
...
...
@@ -70,13 +70,6 @@ mail_from (int argc, char **argv)
}
header_aget_value
(
hdr
,
MU_HEADER_SUBJECT
,
&
subj
);
if
(
from
==
NULL
||
subj
==
NULL
)
{
free
(
from
);
free
(
subj
);
return
1
;
}
message_get_attribute
(
msg
,
&
attr
);
if
(
attribute_is_userflag
(
attr
,
MAIL_ATTRIBUTE_MBOXED
))
...
...
@@ -113,9 +106,11 @@ mail_from (int argc, char **argv)
froml
=
cols
/
3
;
subjl
=
cols
-
froml
-
strlen
(
st
)
-
strlen
(
date
);
fromp
=
from
?
from
:
""
;
subjp
=
subj
?
subj
:
fromp
;
fprintf
(
ofile
,
"%c%c%4d %-18.18s %-16.16s %s %.*s
\n
"
,
cursor
==
realcursor
?
'>'
:
' '
,
cflag
,
cursor
,
from
,
date
,
st
,
(
subjl
<
0
)
?
0
:
subjl
,
subj
);
from
p
,
date
,
st
,
(
subjl
<
0
)
?
0
:
subjl
,
subjp
);
free
(
from
);
free
(
subj
);
...
...
Please
register
or
sign in
to post a comment