Microsoft KB Archive/119642

= PC Ext: Version Differences Locking External P1 File for Async =

Article ID: 119642

Article Last Modified on 10/30/2006

-

APPLIES TO


 * Microsoft Mail for PC Networks 2.1
 * Microsoft Mail for PC Networks 3.0
 * Microsoft Mail for PC Networks 3.2
 * Microsoft Mail for PC Networks 3.5

-



This article was previously published under Q119642



SUMMARY
Versions 2.1 and later of Microsoft Mail for PC Networks all use slightly different methods of dispatching mail when multiple instances of the External Mail program (EXTERNAL.EXE) access the same source postoffice to send mail asynchronously.

Versions 2.1x
Microsoft Mail 2.1x uses a command-line parameter to ensure proper transmission of mail. As explained on page 204 of the version 2.1c "Administrator's Guide," the -P0xx option is required whenever multiple Externals send mail from a single postoffice. For example:

external -dmn -p005

For a postoffice reached via modem, External processes mail in the following manner:  External locks the mailbag by creating a file in the local P1 subdirectory that has the .MBG file's 8-digit prefix and a .0XX suffix. For example:

- 00000009.MBG gets locked in the local P1 subdirectory as 00000009.005.

 For all outgoing mail, External creates a file in the P1 subdirectory that has the .MAI file's 8-digit prefix and a .PXX suffix. For example:

 For 0000000AB.MAI, 0000000AB.P05 is created. For 0000000AC.MAI, 0000000AC.P05 is created.  External dials the remote postoffice. External sends the first .MAI file, then sends any associated attachments.</li> For each message, the receiving External Mail program creates the .MAI file, the P1 file, and the .ATT file (if there are any attachments), in that order, and then updates the INQUEUE.MBG and INQUEUE.KEY files.</li> If there are more messages to be delivered, step 4 is repeated.</li> The sending External Mail program updates the local mailbag, and deletes the .MAI and .ATT files if appropriate.</li> External deletes the .MAI locking files created in step 2.</li> External deletes the .MBG locking file created in Step 1.</li></ol>

Versions 3.0x
Microsoft Mail 3.0 through 3.0.4 no longer require the use of the -P0xx command-line parameter. External now creates a file with a .0LK suffix to lock the outgoing postoffice queue or .MBG file. Because of bug fixes related to External delivering mail asynchronously, all Microsoft Mail version 3.0 customers should use version 3.0.4 of the External Mail program. For a postoffice reached via modem, External processes mail in the following manner: <ol> External locks the mailbag by creating a file in the local P1 subdirectory that has the .MBG file's 8-digit prefix and a .0LK suffix. This file locks the mailbag for the postoffice for which External is delivering mail, thus preventing other External Mail programs from processing that mailbag. For example:

- 00000009.MBG gets locked in the local P1 subdirectory as 00000009.0LK.

</li> For all outgoing mail, External creates a file in the P1 subdirectory that has the .MAI file's 8-digit prefix and a .P00 suffix. For example:

 For 0000000AB.MAI, 0000000AB.P00 is created.</li> For 0000000AC.MAI, 0000000AC.P00 is created.</li></ul>

NOTE: If the .P00 extension is in use, version 3.0.4 of the External Mail program will try P01, then PO2, and so forth. Versions 3.0 through 3.0.3 accidentally overwrite the existing P1 file.</li> External dials the remote postoffice.</li> External sends the first .MAI file, then sends any associated attachments.</li> For each message, the receiving External Mail program creates the .MAI file, the P1 file, and the .ATT file (if there are any attachments), in that order, and then updates the INQUEUE3.MBG and INQUEUE3.KEY files.</li> If there are more messages to be delivered, steps 4 and 5 are repeated.</li> The sending External Mail program updates the local mailbag, and deletes the .MAI and .ATT files if appropriate.</li> External deletes the .MAI locking files created in step 2.</li> <li>External deletes the .MBG locking file created in Step 1.</li></ol>

Versions 3.2 and 3.5
Microsoft Mail 3.2 and 3.5 modified the process used by External version 3.0.4. External now reserves a unique suffix for all mail in the queue with a new file called LOCKP1ID.PXX. If there are other LOCKP1ID.PXX files in the local P1 subdirectory, the .PXX suffix increments alphabetically: the range is PBB through PZZ. PAA is not used because of the way Mail constructs filenames for .MAI and .ATT files. For a postoffice reached via modem, External processes mail in the following manner: <ol> <li>External locks the mailbag by creating a file in the local P1 subdirectory that has the .MBG file's 8-digit prefix and a .0LK suffix. This file locks the mailbag for the postoffice for which External is delivering mail, thus preventing other External Mail programs from processing that mailbag. For example:

- 00000009.MBG gets locked in the local P1 subdirectory as 00000009.0LK.

</li> <li>External creates the LOCKP1ID.PBB in the P1 subdirectory. If this fails, External tries to create LOCKP1ID.PBC, then LOCKP1ID.PBD, and so forth.</li> <li>For all outgoing mail, External creates a file in the P1 subdirectory that has the .MAI file's 8-digit prefix and a .PXX suffix. For example:

<ul> <li>For 0000000AB.MAI, 0000000AB.PBB is created.</li> <li>For 0000000AC.MAI, 0000000AC.PBB is created.</li></ul> </li> <li>External dials the remote postoffice.</li> <li>Send the first .MAI file, then send any associated attachments.</li> <li>For each message, the receiving External Mail program creates the .MAI file, the P1 file, and the .ATT file (if there are any attachments), and then updates the INQUEUE3.MBG and INQUEUE3.KEY files.</li> <li>If there are more messages to be delivered, steps 5 and 6 are repeated.</li> <li>The sending External Mail program updates the local mailbag and deletes the .MAI and .ATT files if appropriate.</li> <li>External deletes the .MAI locking files created in step 3.</li> <li>External deletes the ID locking file created in Step 2.</li> <li>External deletes the MBG locking file created in Step 1.</li></ol>

Additional query words: 2.10 3.00 3.20 3.50

Keywords: KB119642

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.