On Sat, Oct 3, 2015 at 3:44 AM, Steffen Nurpmeso <[email protected]> wrote:

> Hi,
>
> Michael Convey <[email protected]> wrote:
>  |In the mailx message below, what do the following mean?
>  |
>  |Status: RO
>  |
>  |X-Status: A
>  |
>  |Is there a list of all the "Status" and "X-Status" codes?
>
> If you can read source code, yes:
>
> ​
> statusput():

     if (mp->m_flag & MREAD)
>         *cp++ = 'R';
>      if (!(mp->m_flag & MNEW))
>         *cp++ = 'O';
>   x
> ​​
> tatusput():
>      if (mp->m_flag & MFLAGGED)
>         *xp++ = 'F';
>      if (mp->m_flag & MANSWERED)
>         *xp++ = 'A';
>      if (mp->m_flag & MDRAFTED)
>         *xp++ = 'T';
>
> --steffen
>


​Interesting, thank you. I went through the mailx (nail-11.25) source code
and and did some testing. I believe all of the status codes (that are
reported to users) are as follows:

In mailx’s interactive mode, after typing ‘h’ followed by [Enter] at the
‘&’ prompt; a list of email headers is displayed (one line per message). In
that list, the far-left field is used for status codes, which are as
follows:

   -
   - ‘N’ = New
   - ‘U’ = Old, but unread
   - ‘J’ = Junk
   - ‘A’ = Answered

While viewing an individual mailx message, an ‘X-Status’ header field will
appear if one of its codes is applicable. Possible ‘X-Status’ codes are as
follows?

   -
   - ‘A’ = Answered
   - ‘F’ = Flagged
   - ‘T’ = Drafted

While viewing an individual mailx message, the codes of the “Status” header
field?

   -
   - ​'
   O
   '

   =
    Old
   - '
   U
   '

   =
    Unread
   - '
   R
   '

   =
    Read

​Is the above correct? Did I miss anything? ​
------------------------------------------------------------------------------
_______________________________________________
nail-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nail-devel

Reply via email to