Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

What format is the file /var/mail/username mail utilities

I need a sample file where mail utility stored messages.

What I mean is:
Return-path: <[email protected]ain>
Received: from anton by nflogs.domain with local (Exim 4.80)
(envelope-from <[email protected]ain>)
id 1VuiP9-0006js-Fa; Tue, 9 Nov 2021 19:45:11 +0700
To: [email protected]ain
Subject: test
Cc: [email protected]ain
Message-Id: <[email protected]ain>
From: Anton <[email protected]ain>
Date: Tue, 9 Nov 2021 19:45:11 +0700


But I'm not sure that it's right.
by

1 Answer

vishaljlf39
excerpt of format
From MAILER-DAEMON Fri Jul  8 12:08:34 2011
From: Author <[email protected]>
To: Recipient <[email protected]>
Subject: Sample message 1

This is the body.
>From (should be escaped).
There are 3 lines.

From MAILER-DAEMON Fri Jul 8 12:08:34 2011
From: Author <[email protected]>
To: Recipient <[email protected]>
Subject: Sample message 2

This is the second body.

Login / Signup to Answer the Question.