How does Outlook determine item numbers in a folder?

Status
Not open for further replies.

Martin Petret

New Member
Outlook version
Outlook 2010 64 bit
Email Account
Exchange Server
I have a macro that loops through the emails in my inbox, checks their age and moves them to an archive folder if they older than the specified number of days. I'm a bit confused by the way Outlook determines the item (email) number though. The item number of the newest email is the highest (Item.Count), but item "1" is not the oldest email in the inbox folder. When I check the attributes of Item(1), I get the attributes of an email that's about 7 from the bottom.

Can someone please enlighten me as to why this occurs?

Thanks.
 
I think I've answered my own question.

The number of "total items" and the number of "MailItems" is not the same.

Thanks.
 
I thought the last modified date might affect it, but apparently not. The numbers are all over the board for an exchange account but a pop account does it in this order (sorted by received, all were downloaded in the same mail pass and have the same received time, with #40 having the newest modified time due to how outlook downloads message from pop - newest to oldest on the server):
41
1
2
3
4
....
 
I think I've answered my own question.

The number of "total items" and the number of "MailItems" is not the same.

Thanks.
Correct, and that would be the cause if the first 6 are not mail. If you are adding the item's index # to the subject, #7 should be #7 - and mostly is with pop3.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
M "Attachment Detacher for Outlook" add in, does it update the server copy of the email? Using Outlook 1
J Event/Meeting in Outlook Does Not Align with SharePoint Calendar Using Outlook 5
C Why does Outlook (desktop) 365 for Windows keep making me input my passwords? Using Outlook 12
V Outlook 2016 Does Outlook-2016 (64 bit) work with iCloud for Windows ? Using Outlook 5
T Why does outlook 2010 convert only some forum notifications to plain text? Using Outlook 0
M Outlook .com group does not show up in Outlook for office 365 home Using Outlook 3
W Outlook Calendar does not save view any longer! Using Outlook 3
B Outlook 2016 Does not Shutdown Correctly Using Outlook 3
P Desktop doesn't index Outlook IMAP files, laptop Outlook does index those same IMAP files Using Outlook 2
J Outlook 2016 message content does not display - outlook.com; exchange Using Outlook.com accounts in Outlook 9
D Outlook 2016 IMAP Connection Returns All Email but outlook.com does NOT Using Outlook.com accounts in Outlook 2
D Outlook 2016: /altvba startup switch does not work Using Outlook 2
S Outlook does not open the .pst file created by the Outlook Using Outlook 5
O Windows 10 x64 Outlook 2013 - URL does not open (anymore) Using Outlook 3
C Unchecking "Send immediately when connected" does not work on apps that call Outlook Using Outlook 1
J Outlook 2010 VBScript editor does not run code at all Outlook VBA and Custom Forms 0
G Outlook does not show new appointments in To-Do-Bar Using Outlook 0
C bcm 2010 download does not recognize outlook Using Outlook 3
A Does Outlook import Gmail Archive? Using Outlook 1
1Firefly Outlook 2013 Converstation preview does not show my last reply Exchange Server Administration 1
T outlook 2013 does not mark multiple forward messages as forward Using Outlook 2
C Outlook 2013 - Email Gets Sent - But Does Not Move From Outbox to Sent Box Using Outlook 4
M does outlook 2013/365 on mac support custom forms? Outlook VBA and Custom Forms 1
H Outlook.com calendar does not update from Outlook 2013 Home Premium Using Outlook 1
M Incoming invites to my imap account does not sync to outlook.com Using Outlook.com accounts in Outlook 29
L Outlook 2007 does not start with Apple iCloud-Add-In activated Using Outlook 2
S Outlook 2013 To Do Task does not minimize. Using Outlook 0
D Outlook 2013 deletes emails, does not send them to Deleted Items or Trash Using Outlook 2
O Outlook 2010 does not open MS Word attachments Using Outlook 1
A File - Save Attachments does nothing in Outlook 2003 with Exchange 2010 ... Using Outlook 3
K Outlook 2007 Calendar - Time spinner does not function correctly Using Outlook 1
M Outlook Appointment item does not show the item outside the date range Using Outlook 2
H Reocurring outlook appointment (office 2010) does not update Outlook.com Using Outlook 3
F Outlook 2010 contact e-mail Display as: does not show contact name Using Outlook 2
P Reply All does not work in Outlook 2010 Cached mode Using Outlook 4
R Outlook 2013 does not show in default programs - how do I search Using Outlook 1
U How does outlook desktop work with outlook.com Using Outlook 5
V Outlook Calendar No Reminders Show up but does on iPhone Using Outlook 0
V Outlook Calendar No Reminders Show up but does on iPhone Using Outlook 2
Fozzie Bear How does Outlook 2003 deals with IMAP configuration Using Outlook 8
J Does Outlook 2003 run on Windows 8 Professional? Using Outlook 2
E Does Outlook indexing work across multiple servers? Using Outlook 0
E Does Outlook 2010 support searching multiple .pst files simultaneously? Using Outlook 0
J Outlook 2003 does not send or receive imap mail from server Using Outlook 0
E Double clicking on from email address does no longer open corresponding contact in Outlook 2007 Using Outlook 7
S Compiler Error: Does not like Outlook.CommandBarControls.CommandBarControlPtr.Add Outlook VBA and Custom Forms 1
T Outlook's button 'Attach File' does not work Outlook VBA and Custom Forms 7
N why does vb not recognise outlook code? Outlook VBA and Custom Forms 1
D Why does BCM not always load when I restart Outlook? BCM (Business Contact Manager) 1
D Win7 x64 - Outlook 2010Beta x64 - BCM 2010 x64 does not install BCM (Business Contact Manager) 1

Similar threads

Back
Top