Skip to main content

MailboxInBoxTimeout

Sets the number of hours that undownloaded inbound parcels are retained in a mailbox inbox before expiring.

:::caution Established API The SOAP API is in maintenance mode. For new integrations use the REST equivalent. :::

Method Signature

MailboxIDInfo MailboxInBoxTimeout(string SessionID, int MailboxID, short InBoxTimeout)

Parameters

ParameterTypeRequiredDescription
SessionIDstringYesActive session token from Login() with MailboxAdmin or higher authority
MailboxIDintYesNumeric identifier of the mailbox to configure
InBoxTimeoutshortYesRetention period in hours (0 = use network default; max typically 240)

Response Object — MailboxIDInfo

Returns the updated MailboxIDInfo record with the new timeout setting applied.

FieldTypeDescription
MailboxIDintNumeric identifier of the mailbox
NetworkIDintNumeric identifier of the parent network
UniqueIDstringUnique string identifier of the mailbox
CompanyNamestringDisplay name of the mailbox
StatusStatusCurrent status of the mailbox
CreateddateTimeOriginal creation timestamp
ModifieddateTimeUTC timestamp of the configuration change
<!-- Example response XML -->
<MailboxIDInfo>
<MailboxID>100</MailboxID>
<NetworkID>1</NetworkID>
<UniqueID>MYMAILBOX</UniqueID>
<CompanyName>My Mailbox Company</CompanyName>
<Status>Active</Status>
<Created>2021-03-20T00:00:00</Created>
<Modified>2026-05-07T14:00:00</Modified>
</MailboxIDInfo>

:::note Timeout Behavior When InBoxTimeout is 0, the network-level default applies. Parcels that exceed the timeout are moved to an expired state and may no longer be downloadable. Contact ECGrid support to recover expired parcels. :::

Code Examples

// .NET 10 — dotnet-svcutil generated proxy
// Set inbox retention to 72 hours (3 days) for mailbox 100
var updated = await client.MailboxInBoxTimeoutAsync(
sessionID,
mailboxId: 100,
inBoxTimeout: 72);

Console.WriteLine($"Timeout updated for: {updated.CompanyName}");
Console.WriteLine($"Modified: {updated.Modified:yyyy-MM-dd HH:mm}");

// Restore network default — pass 0
// var reset = await client.MailboxInBoxTimeoutAsync(sessionID, 100, 0);

See Also

REST Equivalent

See Update Mailbox ConfigPOST /v2/mailboxes/update-config.