Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Many people have been sending mail with attachments that are too large to be transmitted over the mail system. One way to handle this problem

image text in transcribed
Many people have been sending mail with attachments that are too large to be transmitted over the mail system. One way to handle this problem is to remove the attachments from an email and store them on a server on the network from which they can downloaded by the recipient by following a link embedded in the email message that will download the attachment from the server. Attachments should be removed if the total size of all attachments exceeds 500 KBytes. If the total size of all attachments is less than or equal 500 Kbytes then any individual attachments which exceed 100 Kbytes in size should be removed and replaced by links in the email. Attachments less than or equal 100 Kbytes can remain in the email as long as the total size of all attachments does not exceed 500 Kbytes. When an attachment is removed, it will be stored on the server as a regular file. Each attachment will have a file name included in the email which can be extracted when the attachment is removed. This will be used to create a universally unique file name which can be stored on the server without fear that it will be the same as an existing file name on the server. The new file name will be constructed as follows: $ Where: 3_digits is the number of characters in the original file name originalFileName is the original name of the file timestamp is the current time expressed as the number of milliseconds since January 1, 1970. . . $ is a "S" sign CPUTime is the number of CPU ticks since the CPU was started. A tick is based on the clock of the CUP and depends on the speed of the CPU. Normally there are billions of ticks per second. For example, a file called "abc.txt" at the time 9284769251 with a CPU tick count of 37482918 would be renamed to "007abc.txt9284769251$37482918". Your program will act as a filter on the mail stream which means: All mail programs will send mail messages to your program, Your program will check the size of the attachments on each mail message and remove any that are too large, rename them, upload them to the server, and replace the attachment with a link to the file on the server. Send the resulting email message over the internet like any mail program would. Your program will run continuously until it receives a specially formatted email that will cause it to shutdown. The shutdown mail message can occur at any time. Draw a flowchart illustrating all the steps that this program needs to perform. You should use non- technical language yet provide sufficient detail so that a programmer could create a working program from your flowchart. You can use a drawing program like LucidChart or Draw.io to create your flowchart

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions