alexlai@h2Jammy:~$ mail -s "Test mail command" alexlai@h2jammy.yushei.net
Cc: rai.sousuke@mac.com
Bcc: rai.sousuke@gmail.com
Subject: Testing mail command and mbox, /var/mail/alexlai
Time is 2024-04-26 10:54
Try to find out ~/mbox and /var/mail/alexlai is used.
.
alexlai@h2Jammy:~$ mail
"/var/mail/alexlai": 1 message 1 new
>N 1 AlexLai 五 四 26 10: 29/1221 Test mail command
? q
Held 1 message in /var/mail/alexlai
alexlai@h2Jammy:~$ mail -f mbox
"/home/alexlai/mbox": 0 messages
alexlai@h2Jammy:~$ ls mbox
mbox
alexlai@h2Jammy:~$ cat mbox
alexlai@h2Jammy:~$ mail
"/var/mail/alexlai": 1 message 1 unread
>U 1 AlexLai 五 四 26 10: 32/1284 Test mail command
? 1
Return-Path: <alexlai@h2Jammy.yushei.net>
X-Original-To: alexlai@h2jammy.yushei.net
Delivered-To: alexlai@h2jammy.yushei.net
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=h2jammy.yushei.net;
s=mail; t=1714100115;
bh=5qumCYDYqRdtIzKSRYUSEOy0KZ5eV1kkMPrDpxa/4lA=;
h=Subject:To:Cc:Date:From:From;
b=nnWKUyqDx6I3LQywjNU+x5eJ08V5GlHBLmp+JzZ8zwOXW4IqrR1zU3t0z5K8X4Qdt
UDRdTkR3KcjmxwgnRhPz+KkcAaL/Kzg+2q3kmK7beYr36MiNjSTKsuoc9edGJybi5z
sALlok/1n9RLWnVx4tSHShNeyghkp45ByktrAyHXt0YCh+JJPCH0rIrzkg+MdfZ7oX
TJdT5fWeSjhxMzvw+uQP4RgfHObEZyu63EAgiUZzL396qOiLq8jGuAPquZh6JAX6lC
7yorBcPXSawOJWpCurPbAzlw0w/6yW9pRXpI+J0CjvAfKUDIalf5/XOeS6hftVy36p
EG90z39ehqlsQ==
Received: by h2Jammy.yushei.net (Postfix, from userid 1026)
id EDC0C2964925B; Fri, 26 Apr 2024 10:55:15 +0800 (CST)
Subject: Test mail command
To: <alexlai@h2jammy.yushei.net>
Cc: <rai.sousuke@mac.com>
User-Agent: mail (GNU Mailutils 3.14)
Date: Fri, 26 Apr 2024 10:55:15 +0800
Message-Id: <20240426025515.EDC0C2964925B@h2Jammy.yushei.net>
From: AlexLai <alexlai@h2Jammy.yushei.net>
X-IMAPbase: 1714100175 2
X-UID: 1
Status: O
Bcc: rai.sousuke@gmail.com
Subject: Testing mail command and mbox, /var/mail/alexlai
Time is 2024-04-26 10:54
Try to find out ~/mbox and /var/mail/alexlai is used.
.
? d
? q
Held 0 messages in /var/mail/alexlai
alexlai@h2Jammy:~$ cat mbox
alexlai@h2Jammy:~$ cat /var/mail/alexlai