outlook macro inbox full

QuietRiot

Well-known Member
Joined
May 18, 2007
Messages
1,079
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
  2. MacOS
at my current job there is a limit to the amount you can have in your inbox. Im not sure what it is, in fact I've never even had it happen yet. Im fairly new there and my position doesn't require me to get a ton of mail like everyone else.

anyway I wanted to create a macro that if the inbox was full it would 1.) send an email to yourself stating: your inbox is full all messages are being sent to inbox2 and 2.) all new mail gets sent into the new inbox2 folder. This would prevent people from not receiving critical mail because an inbox is full.

can anyone help me get on the right track
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Two problems:
1) I do not think it is possible to determine programmatically, what the max size is.
2) If the mailbox was full it would not be able to forward any email.

You can use something like: http://groups.google.com/group/micr...ba+mailbox+size&rnum=1&hl=en#648f2c3a14cb9f90
to determine the current mailbox size.
You can then have the code forward the message and delete it from the sent items if the current size is near a limit that you set.
If the message pushes the mailbox over the limit, you are stuck.
In any case, the code would have to be on a machine where Outlook never closed.

As an alternative, you could just use AutoArchive so that all messages older than x days (as long as they are not marked to "Not AutoArchive") would move to a pst so that they do not take up room in your mailbox.
 
Upvote 0
Wouldn't this sort of thing be dealt with automatically?

Most of the places I've worked notified you when you were getting close to your Inbox limit.

Some of them even had systems set up to delete old mail.
 
Upvote 0

Forum statistics

Threads
1,225,346
Messages
6,184,398
Members
453,229
Latest member
Piip

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top