Commit 5c35e9be authored by rswindell's avatar rswindell
Browse files

show_msgattr() now includes the netattr "Sent" and "InTransit" flags, when set

as well as the auxattr "Attach" when either FILEATTACH or MIMEATTACH is set
(requires an updated MsgAttr line in text.dat).
parent f8f9a0ed
......@@ -4,7 +4,7 @@
"\1n\1c\xc4\xc4\xc4\xc4\xc4"\
"\xfa\xfa\xfa\xfa"\
"\r\n\1h\xb3 \1bSubj\1n\1b: \1h\1c%.70s"
"\r\n\xb3 \1bAttr\1n\1b: \1h\1c%s%s%s%s%s%s%s%s%s%s%s%s%s%s" 002 MsgAttr
"\r\n\xb3 \1bAttr\1n\1b: \1h\1c%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s" 002 MsgAttr
"\r\n\xb3 \1bTo \1n\1b: \1h\1c%.70s" 003 MsgTo
" #%s" 004 MsgToExt
" (%.40s)" 005 MsgToNet
......
......@@ -94,6 +94,7 @@ void sbbs_t::show_msgattr(smbmsg_t* msg)
uint16_t attr = msg->hdr.attr;
uint16_t poll = attr&MSG_POLL_VOTE_MASK;
uint32_t auxattr = msg->hdr.auxattr;
uint32_t netattr = msg->hdr.netattr;
bprintf(text[MsgAttr]
,attr&MSG_PRIVATE ? "Private " :nulstr
......@@ -110,9 +111,9 @@ void sbbs_t::show_msgattr(smbmsg_t* msg)
,attr&MSG_NOREPLY ? "NoReply " :nulstr
,poll == MSG_POLL ? "Poll " :nulstr
,poll == MSG_POLL && auxattr&POLL_CLOSED ? "(Closed) " :nulstr
,nulstr
,nulstr
,nulstr
,auxattr&(MSG_FILEATTACH|MSG_MIMEATTACH) ? "Attach " :nulstr
,netattr&MSG_SENT ? "Sent " :nulstr
,netattr&MSG_INTRANSIT ? "InTransit ":nulstr
);
}
......@@ -154,7 +155,7 @@ void sbbs_t::show_msghdr(smb_t* smb, smbmsg_t* msg, const char* subject, const c
bprintf(text[MsgSubj], current_msg_subj);
if(msg->tags && *msg->tags)
bprintf(text[MsgTags], msg->tags);
if(msg->hdr.attr)
if(msg->hdr.attr || msg->hdr.netattr || msg->hdr.auxattr)
show_msgattr(msg);
if(current_msg_to != NULL && *current_msg_to != 0) {
bprintf(text[MsgTo], current_msg_to);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment