_ RU.LINUX (2:5077/15.22) ___________________________________________ RU.LINUX _
From : Vladimir Butenko 2:5020/400 24 Nov 98 06:22:12
Subj : Re: Попперы, говорите, кривые? Они как раз еще ничего...
________________________________________________________________________________
From: [email protected] (Vladimir Butenko)
# OK,
# Our first sample was not so obvious, since:
# 1. We did see some "Service Message" added to the mailbox by some
# software (was it POP server? Who knows... These games are not in
# our league, so we do not care)
# 2. POP server was involved, so someone could blame it. We did use the
# "cut" command to show that after a POP session everything was OK, but -
# some people do not like to hear, they prefer to see.
#
# So, this test has been performed on FreeBSD, and ONLY the mail command was
# used to simulate (btw, why simulate - illustrate!) concurrent activities.
#
# See what we got.
#
Welcome to FreeBSD!
#
# As in ususual, check that the mailbox is clean and empty and add 3
# messages of various sizes.
#
> more /var/mail/butenko
> mail -s Message1 butenko
Test Message #1 - 3 lines
Test Message #1 - 3 lines
Test Message #1 - 3 lines
.
EOT
> 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
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
.
EOT
> mail -s Message3 butenko
Test Message #3 - 2 lines
Test Message #3 - 2 lines
.
EOT
#
# OK, now, start the mailer.
#
> mail
Mail version 8.1 6/6/93. Type ? for help.
"/var/mail/butenko": 3 messages 3 new
>N 1 butenko Tue Nov 24 05:54 15/435 "Message1"
N 2 butenko Tue Nov 24 05:54 22/627 "Message2"
N 3 butenko Tue Nov 24 05:55 14/409 "Message3"
#
# Everything is looking Oll Korrect - 3 messages.
#
# Now, start a parallel session
# In that session, we'll read the first message and delete it
#
& !mail
Mail version 8.1 6/6/93. Type ? for help.
"/var/mail/butenko": 3 messages 3 new
>N 1 butenko Tue Nov 24 05:54 15/435 "Message1"
N 2 butenko Tue Nov 24 05:54 22/627 "Message2"
N 3 butenko Tue Nov 24 05:55 14/409 "Message3"
& 1
Message 1:
From butenko Tue Nov 24 05:54:28 1998
Date: Tue, 24 Nov 1998 05:54:28 +0300 (MSK)
From: Vladimir Butenko <butenko>
To: butenko
Subject: Message1
Test Message #1 - 3 lines
Test Message #1 - 3 lines
Test Message #1 - 3 lines
& d
& q
Held 2 messages in /var/mail/butenko
!
#
# So, the system mailbox now contains only the 2nd and 3rd messages
# (we'll check this later).
# Now, add a new message to the system mailbox. Let me remind you - we
# are still within the original "mail" session.
#
& !mail -s Message4 butenko
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
.
EOT
!
#
# Good. So, from within the mailer (or concurrently with its session)
# we have removed the message #1 from the mailbox and we have added the
# message #4 to that mailbox.
#
# Now, let us read the message #3 from within the original session and
# then - let us delete it.
#
& 3
Message 3:
From butenko Tue Nov 24 05:55:27 1998
Date: Tue, 24 Nov 1998 05:55:27 +0300 (MSK)
From: Vladimir Butenko <butenko>
To: butenko
Subject: Message3
Test Message #3 - 2 lines
Test Message #3 - 2 lines
& d
#
# Now we verify that the system mailbox is not destroyed. We expect to see
# the messages #2,#3, and #4 there.
#
# We do see them there - alive and well.
#
& !cat /var/mail/butenko
From butenko Tue Nov 24 05:54:59 1998
Date: Tue, 24 Nov 1998 05:54:59 +0300 (MSK)
From: Vladimir Butenko <butenko>
To: butenko
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
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
From butenko Tue Nov 24 05:55:27 1998
Received: (from butenko@localhost)
by gw-msu.gamma.ru (8.9.1/8.9.1) id FAA01524
for butenko; Tue, 24 Nov 1998 05:55:27 +0300 (MSK)
(envelope-from butenko)
Date: Tue, 24 Nov 1998 05:55:27 +0300 (MSK)
From: Vladimir Butenko <butenko>
Message-Id: <[email protected]>
To: butenko
Subject: Message3
Status: O
Test Message #3 - 2 lines
Test Message #3 - 2 lines
From butenko Tue Nov 24 05:57:31 1998
Received: (from butenko@localhost)
by gw-msu.gamma.ru (8.9.1/8.9.1) id FAA01533
for butenko; Tue, 24 Nov 1998 05:57:31 +0300 (MSK)
(envelope-from butenko)
Date: Tue, 24 Nov 1998 05:57:31 +0300 (MSK)
From: Vladimir Butenko <butenko>
Message-Id: <[email protected]>
To: butenko
Subject: Message4
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
!
#
# So, now we quit the original session. We expect it to delete the
# message #2 and (unfortunately) restore the message #1.
#
& q
New mail has arrived.
Held 2 messages in /var/mail/butenko
#
# Now, let's have a look at the results.
# Message 1 and 2 are OK, but see what happened after that -
# MAILBOX IS DAMAGED
#
> cat /var/mail/butenko
From butenko Tue Nov 24 05:54:28 1998
Received: (from butenko@localhost)
by gw-msu.gamma.ru (8.9.1/8.9.1) id FAA01508
for butenko; Tue, 24 Nov 1998 05:54:28 +0300 (MSK)
(envelope-from butenko)
Date: Tue, 24 Nov 1998 05:54:28 +0300 (MSK)
From: Vladimir Butenko <butenko>
Message-Id: <[email protected]>
To: butenko
Subject: Message1
Status: O
Test Message #1 - 3 lines
Test Message #1 - 3 lines
Test Message #1 - 3 lines
From butenko Tue Nov 24 05:54:59 1998
Received: (from butenko@localhost)
by gw-msu.gamma.ru (8.9.1/8.9.1) id FAA01513
for butenko; Tue, 24 Nov 1998 05:54:59 +0300 (MSK)
(envelope-from butenko)
Date: Tue, 24 Nov 1998 05:54:59 +0300 (MSK)
From: Vladimir Butenko <butenko>
Message-Id: <[email protected]>
To: butenko
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
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
ymbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
Test Message #4 - 20 long lines (very very long) (aprx 60 symbols :-)
>
# Oh, well - so, "Where do you want to go today?"
# I'm heading to the pub - right now...
--
Vladimir Butenko
Stalker Software, Inc.
--- ifmail v.2.14dev2 * Origin: Stalker Software, Inc. (2:5020/400@fidonet)