_ RU.LINUX (2:5077/15.22) ___________________________________________ RU.LINUX _
From : Vladimir Butenko 2:5020/400 24 Nov 98 05:48:58
Subj : Re: Попперы, говорите, кривые? Они как раз еще ничего...
________________________________________________________________________________
From: butenko@stalker.com (Vladimir Butenko)
Отакатавот... Кто-нибудь хочет проверить на своей системе?
#
# This session log illustrates how the Unix mail command destroys mailboxes
# Tested on Linux RedHat 5.1
#
#
#
# Step 1. Let's check that my mailbox is empty.
#
tandem1:~$ more /var/spool/mail/butenko
/var/spool/mail/butenko: No such file or directory
tandem1:~$ mail
No mail for butenko
#
# Put the first message into the mailbox
#
tandem1:~$ mail -s Message1 butenko
Test messge #1 - 1 line
.
EOT
#
# Put the second message into the mailbox
#
tandem1:~$ mail -s Message2 butenko
TEST MESSAGE #2 - 10 LInes
TEST MESSAGE #2 - 10 LInes
TEST MESSAGE #2 - 10 LInes
TEST MESSAGE #2 - 10 LInes
TEST MESSAGE #2 - 10 LInes
LAST LINE of the message #2
.
EOT
#
# Put the third message into the mailbox
#
tandem1:~$ mail -s Message3 butenko
Test Message #3 - 5 lines
Test Message #3 - 5 lines
Test Message #3 - 5 lines
Test Message #3 - 5 lines
Test Message #3 - 5 lines
.
EOT
You have new mail in /var/spool/mail/butenko
#
# Now let's start our game. Starting the mail command...
# Concurrent mailbox activities will be emulated using the "!"-prefixed commands
# at the mail prompt...
#
tandem1:~$ mail
Mail version 5.5-kw 5/30/95. Type ? for help.
"/var/spool/mail/butenko": 3 messages 3 new
>N 1 butenko@tandem1.srcc Tue Nov 24 06:05 13/417 "Message1"
N 2 butenko@tandem1.srcc Tue Nov 24 06:09 22/560 "Message2"
N 3 butenko@tandem1.srcc Tue Nov 24 06:11 17/523 "Message3"
#
# Starting a POP session right from the mailer
# We use this session to delete the message #2 while the mailer is running
#
& !telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK POP3 tandem1 v4.39 server ready
user butenko
+OK User name accepted, password please
pass ******
+OK Mailbox open, 3 messages
dele 2
+OK Message deleted
quit
+OK Sayonara
Connection closed by foreign host.
!
#
# Reading the first message in the mailer
#
& 1
Message 1:
From butenko@tandem1.srcc.msu.su Tue Nov 24 06:05:04 1998
Date: Tue, 24 Nov 1998 06:05:04 +0300
From: butenko@tandem1.srcc.msu.su
To: butenko@tandem1.srcc.msu.su
Subject: Message1
Status: R
Test messge #1 - 1 line
#
# This message looks fine, now we delete it (in the mailer)
#
& d
#
# Now, still being within the mailer session, add a new message to the mailbox
#
& !mail -s Message4 butenko
TEST Message 4
TEST message 4 - last line - 2 of 2
.
EOT
!
#
# Looks like we have done all we wanted.
# Now, let's have a look at the mailbox itself - have the POP server and
mail deliverer
# updated the mailbox correctly? We expect to see the messages #1, #3, and #4.
#
& !cat /var/spool/mail/butenko
From MAILER-DAEMON Tue Nov 24 06:13:29 1998
Date: Tue, 24 Nov 1998 06:13:29 +0300 (MSK)
From: Mail System Internal Data <MAILER-DAEMON@tandem1>
Subject: DON'T DELETE THIS MESSAGE -- FOLDER INTERNAL DATA
X-IMAP: 0911877191 0000000003
Status: RO
This text is part of the internal format of your mail folder, and is not
a real message. It is created automatically by the mail system software.
If deleted, important folder data will be lost, and it will be re-created
with the data reset to initial values.
From butenko@tandem1.srcc.msu.su Tue Nov 24 06:05:04 1998
Return-Path: <butenko>
Received: (from butenko@localhost)
by tandem1.srcc.msu.su (8.8.7/8.8.7) id GAA01230
for butenko; Tue, 24 Nov 1998 06:05:04 +0300
Date: Tue, 24 Nov 1998 06:05:04 +0300
From: butenko@tandem1.srcc.msu.su
Message-Id: <199811240305.GAA01230@tandem1.srcc.msu.su>
To: butenko@tandem1.srcc.msu.su
Subject: Message1
Status: O
X-Status:
X-Keywords:
X-UID: 1
Test messge #1 - 1 line
From butenko@tandem1.srcc.msu.su Tue Nov 24 06:11:15 1998
Return-Path: <butenko>
Received: (from butenko@localhost)
by tandem1.srcc.msu.su (8.8.7/8.8.7) id GAA01645
for butenko; Tue, 24 Nov 1998 06:11:15 +0300
Date: Tue, 24 Nov 1998 06:11:15 +0300
From: butenko@tandem1.srcc.msu.su
Message-Id: <199811240311.GAA01645@tandem1.srcc.msu.su>
To: butenko@tandem1.srcc.msu.su
Subject: Message3
Status: O
X-Status:
X-Keywords:
X-UID: 3
Test Message #3 - 5 lines
Test Message #3 - 5 lines
Test Message #3 - 5 lines
Test Message #3 - 5 lines
Test Message #3 - 5 lines
From butenko@tandem1.srcc.msu.su Tue Nov 24 06:15:27 1998
Return-Path: <butenko>
Received: (from butenko@localhost)
by tandem1.srcc.msu.su (8.8.7/8.8.7) id GAA01670
for butenko; Tue, 24 Nov 1998 06:15:27 +0300
Date: Tue, 24 Nov 1998 06:15:27 +0300
From: butenko@tandem1.srcc.msu.su
Message-Id: <199811240315.GAA01670@tandem1.srcc.msu.su>
To: butenko@tandem1.srcc.msu.su
Subject: Message4
TEST Message 4
TEST message 4 - last line - 2 of 2
!
#
# Looks like the system mailbox is OK, now quit the mailer.
# Let me remind you, folks, withing the mailer itself we just read the
# message #1 and marked it as deleted.
# So, we quit the mailer...
# We sincerely expect to see the messages #3 and #4 being left in the mailbox.
# We would understand if the message #2 will reappear in the mailbox
(though it's hard
# to "accept" this).
# So, we quit:
& q
New mail has arrived.
Held 2 messages in /var/spool/mail/butenko
You have mail in /var/spool/mail/butenko
#
# From what it has just said we guess that it did restore the message #2
in the system
# mailbox. Oh, well - we did not expect this to be a real mail system, did we?
# So, how is our mailbox doing?
# Message #2 looks OK, message #4 looks fine, too.
# BUT SEE WHAT HAS HAPPENED TO THE MESSAGE #3!
#
tandem1:~$ cat /var/spool/mail/butenko
From butenko@tandem1.srcc.msu.su Tue Nov 24 06:09:58 1998
Return-Path: <butenko>
Received: (from butenko@localhost)
by tandem1.srcc.msu.su (8.8.7/8.8.7) id GAA01458
for butenko; Tue, 24 Nov 1998 06:09:58 +0300
Date: Tue, 24 Nov 1998 06:09:58 +0300
From: butenko@tandem1.srcc.msu.su
Message-Id: <199811240309.GAA01458@tandem1.srcc.msu.su>
To: butenko@tandem1.srcc.msu.su
Subject: Message2
Status: O
TEST MESSAGE #2 - 10 LInes
TEST MESSAGE #2 - 10 LInes
TEST MESSAGE #2 - 10 LInes
TEST MESSAGE #2 - 10 LInes
TEST MESSAGE #2 - 10 LInes
LAST LINE of the message #2
From butenko@tandem1.srcc.msu.su Tue Nov 24 06:11:15 1998
Return-Path: <butenko>
Received: (from butenko@localhost)
by tandem1.srcc.msu.su (8.8.7/8.8.7) id GAA01645
for butenko; Tue, 24 Nov 1998 06:11:15 +0300
Date: Tue, 24 Nov 1998 06:11:15 +0300
From: butenko@tandem1.srcc.msu.su
Message-Id: <199811240311.GAA01645@tandem1.srcc.msu.su>
To: butenko@tandem1.srcc.msu.su
Subject: Message3
Status: O
Test Message #3 - 5 lines
Test Message #3 - 5 lines
Test Message #3 - 5 lines
Test Message #3 - 5 lines
Test Message #3 - 5 lines
es
Test Message #3 - 5 lines
From butenko@tandem1.srcc.msu.su Tue Nov 24 06:15:27 1998
Return-Path: <butenko>
Received: (from butenko@localhost)
by tandem1.srcc.msu.su (8.8.7/8.8.7) id GAA01670
for butenko; Tue, 24 Nov 1998 06:15:27 +0300
Date: Tue, 24 Nov 1998 06:15:27 +0300
From: butenko@tandem1.srcc.msu.su
Message-Id: <199811240315.GAA01670@tandem1.srcc.msu.su>
To: butenko@tandem1.srcc.msu.su
Subject: Message4
TEST Message 4
TEST message 4 - last line - 2 of 2
tandem1:~$ uname -a
Linux tandem1 2.0.34 #1 Fri Aug 14 19:13:25 PDT 1998 i686 unknown
--
Vladimir Butenko
Stalker Software, Inc.
--- ifmail v.2.14dev2 * Origin: Stalker Software, Inc. (2:5020/400@fidonet)