Outlook/Google Configuration

Not open for further replies.


Outlook version
Outlook 2010 64 bit
Email Account
Over the last few months, my email requirements have changed dramatically. I cannot seem to get things configured like I need, and I've tried all the combinations of settings I can come up with. In searching for a solution, I found this site, and you really seem to know your stuff, so hoping you can help out.

I have a gmail account and an ISP account. I used the ISP address as my email address, only exposing the gmail address when I have to. I POP the ISP account to gmail. All of this is fine and good, except....

I am running Outlook 2010 on Win8 (not necessarily important, as I couldn't get it to work on Win7, either). I have a Win8 tablet, an Android tablet, and an Android phone. I want Outlook to be the final resting place for my emails, and would rather not leave them on Google for any length of time. But, I also want to be able to read gmaol from the other devices (and I use the Win8 Mail app on my PC), and want to keep a few days worth of email on the server.

I have my ISP account set up as POP (only protocol supported), but only send when syncing (though I've noticed a couple receives sometime sneak through - not a deal killer).

I have my gmail account set up as POP. I have it set to leave 14 days on the server, and remove deleted mail when the Trash is emptied. When I sync, it does receive only, though that is probably a moot point.

On gmail, I've tried "keep on server", which keeps everything, and delete, which deletes everything. Nothing seems to cause gmail to do what the Outlook setting says, and keep the last 14 days on the server, and purge after that. I also seem to be getting messages that I have deleted on one of the other devices POPed down and have to delete them all over again.

I've also tried setting the gmail account as IMAP, then archiving to the main Inbox, but everything seems to ignore this archiving.

Anything that will work????

post on a week when I'm not away at meetings with Microsoft. :)

So you want gmail to honor the leave on settings in outlook? Gmail is not good at honoring the pop3 delete command outlook sends but gmail settings will let you delete imap when you purge in outlook, they are removed from online too. I would probably use the pop3 setting to delete from gmail - it should move the item to gmail's trash and removes it after 30 days.

post on a week when I'm not away at meetings with Microsoft. :)

So you want gmail to honor the leave on settings in outlook? Gmail is not good at honoring the pop3 delete command outlook sends but gmail settings will let you delete imap when you purge in outlook, they are removed from online too. I would probably use the pop3 setting to delete from gmail - it should move the item to gmail's trash and removes it after 30 days.


Thanks, Diane. Sorry, my first post, and I see answers all over the place, and no one had even looked at my question!

The information that Gmail doesn't honor the POP3 delete makes sense out of this. What you are stating is what I'm currently doing, and just running Outlook every now and then, instead of constantly. But, what I really want is to leave 7 days of email on Gmail, so that I have access to it on the go. Even a couple days would be nice.

So.....can I use my .pst as storage and to get to older emails (though that shoots all my rule sorting to pieces), then read the current Gmail via IMAP, and archive anything over 7 days old to the .pst? I can't seem to get that to work. Interesting that all the rules run correctly when I receive using IMAP, and the filtered emails are saved off to the .pst folders, but the archive doesn't want to move anything. I don't see a way to create a time related rule, though that's what archiving really is. This is not ideal, but I could live with it, though some of the emails I want to keep on Gmail are the ones that are also filtered by the rules settings.

Just looking for suggestions (other than trying something other than Outlook) to make my email life easier. (I'd try something else, but I'm not convinced it would behave any better with Gmail.)

Diane -

I now understand that Google has an incomplete implementation of POP3, and thus is ignoring everything that Outlook is telling it. Thus, any settings on the Outlook side for POP3 are getting ignored.

I thought I found a way to fix the aging message issue on the Gmail side. I set up a filter to mark old messages with a label as a test. When the filter is set up, it runs well, though I had to turn off conversation mode. However, it appears this is not going to be an automatic fix. The filter is triggered by new messages, but it "forgets" the setting to apply the filter to other messages.

So, now I'm back to what I thought would work originally. I had started trying this on Win7, before updating to Win8 and having to recreate all my Outlook setup after reinstalling it. My question to you is, does auto-archiving work for IMAP accounts? It seems not to.

What I would like to be able to do is set up the Gmail account as IMAP. I'd turn off all receiving on the .pst account, and just use it to send to my ISP account. All receiving would be via the IMAP account, as if I was reading it from one of my devices (and frankly, I can use the Win8 email to read my email, though it leaves a LOT to be desired). Then I can set up auto-archiving for the IMAP account to move messages older than X to the .pst. One side effect is that any filters I have set up would have to be modified to run from the IMAP account, since they are triggered when new email arrives. [Side note - I had this part working. Outlook forced me to make a new set of filters for the IMAP account, and I had to modify them to move the message to the .pst sub-folder, as it would try to find the folder on IMAP otherwise. I suppose I could filter then to an IMAP folder, then archive, except I don't think Gmail would support that, since it doesn't have sub-folders.] When the filters are applied, and the messages moved to the .pst, the messages disappear on the IMAP side, and Gmail, so something is working right. I was to the point of trying to get the auto-archive to work when I updated to Win8. I tried setting a rule to auto-archive the IMAP inbox daily, moving messages older than 14 days to the .pst file (which is then auto-archived, but with older aging). I don't recall getting that to work, so is it possible????

I leave it at that question for now, since if that will work, I can live with it as the solution.

I think I confused myself somewhere along the way.

I really don't need to archive the IMAP email to the .pst file. I can POP it down, instead, to do the archiving. Though, the disadvantage of doing that is, I'd have to double delete messages once they are POPed. The advantage to only archiving to the .pst after it has aged is that all the manual processing of reading/deleting would already be accomplished. I would assume, though could be wrong, that the archiving would also preserve the "read" status (currently I also have to re-read the messages after they are POPed). The real issue is to find an automated way to delete email older than x off of Gmail.
If you are going to archive it, I think archiving IMAP will be better as it will get the message state (reply, forward) but I do think you are overthinking it and making t more complicated than it needs to be. Or not... it could be my jet lag. <g
Goal: Remove all mail from gmail servers as the messages age.

Solution: Use IMAP on all computers to give you a unified view on all devices. Archive IMAP to a pst, configure Outlook / Gmail settings to move deleted items to trash, which is emptied by google as it ages. If it works, this will be the best, most automated method. (I'm waiting for autoarchive to run on my test machine to see if it works as it can be fussy with imap accounts.)

Not sure if this might fix the archiving problem -

AutoArchiving by Received Date in Outlook - Slipstick Systems
I agree this is the best solution.

Thanks for the link. Everything else I've read says that the modified date issue is why IMAP can't be archived, and that it can't be sync'ed. The info at this link says there is a fix so that the received date can be used instead, so it should then work.

I've run across another solution that uses a Google App script. However, I am not familiar with using that sort of solution, and it also sounds like the user proposing the solution doesn't use Outlook, or other accumulating solution. I'd rather stick with letting Outlook control the situation as much as possible. I'll give the info at the link a try, too, and see if it works.

I'm not familiar with a google app script so i can't say if that would be a better solution than outlook, but i think doing it in outlook gives you more control.
This is for the AutoArchiving link instructions.....I downloaded the hotfix, but when I went to apply it, it said I already had the patch, so it must have been added to an update at some point. I DID have to make the registry change.

I think I have everything set up. I'd like to see if it does everything automatically, and the shortest interval I could set up was 1 week, so I'll let it run it's course.

Question - will the autoarchived emails appear to be incoming messages to the default .pst, and thus the rules applied? (Otherwise I'll create rules for the Gmail IMAP .pst)
Question - will the autoarchived emails appear to be incoming messages to the default .pst, and thus the rules applied? (Otherwise I'll create rules for the Gmail IMAP .pst)

No. AutoArchive just moves messages that meet the condition from pst to the other. It will keep them in the same folder as they were in - just in the archive pst.

(I set my test profile to autoarchive I daily and it doesn't appear to be running at all.... and then it made me out to be a liar immediately after i said that. It works just fine on the imap folders. I will need to see what google does with the messages on its side. )
Today is the first day that there was email old enough on Gmail to archive. It looks like the archive works.

However, I appear to be saving some duplicate emails, but not all of the email was duplicated. Any ideas? Is the ALL mailbox getting filtered, too, even though I don't have archiving set for that folder?

And, I still have the rules question above. I didn't have enough email archived to tell if they were filtered. Some weren't, but they are also emails that the rules don't always catch (the rules need some work). I might be able to answer this tomorrow.
Autoarchiving applies to all folders unless you disable it per folder on the Properties > AutoArchive tab. Being the lazy sort with way too many folders, I've often set a really high (like 5 yrs) archive time, applied to all folders then set the ones I wanted to archive to have lower periods.
I have set the Do Not Archive setting for the folders I don't want archived. However, for Gmail, I've found a couple, including the Sent folder, that I had NOT turned the archive off. I am not subscribed to the All folder, so that can't be why I might be getting duplicates. I'll check in the morning to see what was archived, and if there are any duplicates.

I misstated above....you can archive based on Days. But, 1 Week seem to be about right for now.
Today archived relatively well. There were around 20 messages to age out. There were three duplicates. I don't see a pattern in the duplicates, so I'll just have to keep an eye on them. One thing that is a bit peculiar....the duplicate is slightly larger in size. I can open both messages, and see no differences, but they are in html, so difficult to tell what could have been added to the duplicate.

When the archived messages are saved to the main .pst folder, they are not seen as "new" messages, so no rules are run.

So, I think I've answered all of my own questions! The main thing to take away from this thread is the registry edit that causes Outlook to archive based on received time/date rather than modified. The modified date archiving is what was keeping an IMAP folder from being archived the way one would think/want it to be archived.

So, now is there a way to get the filters to be run after an archive?? I can run them manually every now and then, but to make this really useful, they really need to run automatically. I'd like to NOT use Outlook for accessing current emails, only for looking up older emails. Thus, the more automated, the better.
I've looked into a little bit of VBA programming for Outlook (trying to create a calendar event from Excel) but not anything directly. Outlook would be open, as autoarchive would be running. Where do I put this script to run it? Can the autoarchive trigger it?

I have NO duplicates today, so whatever was causing it has been taken care of.
The script would go in outlook. AutoArchive can't kick it off, but reminders or new mail could trigger it.
Ok, where do I start? How do I implement a VBA script in Outlook? Just get me going in the right direction!
File, Options, Trust Center - Set Macro Security to low / allow all macros to run.

Alt+F11 to open the macro editor. Expand project1 to locate ThisOutlookSession, paste the code into the macro window. Press the run button to test.
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
O Any 3rd party tool that sync (mirror) from Outlook Calendar to Google Calendar? Using Outlook 5
Victor_50 Problem - Google Workspace will stop "unsafe" access to Outlook end 2024 Using Outlook 3
icacream Outlook 2021 - Google calendar in the peek Using Outlook 0
D Wishlist How to use 'app password' in Outlook 2003 after Google pulled plug on "less secure apps" Using Outlook 2
Commodore Are newer versions of Outlook still "less secure" to Google? Using Outlook 22
A Any way to make Outlook Calendar invitations look right to Gmail/Google Calendar users? Using Outlook 3
R How to Sync *all* Google Workspace Mail Folders with Outlook 2019 (MS365) Using Outlook 3
GregS Outlook 365 blocked by Google popup Using Outlook 2
O Synchronising contacts Outlook 365 with Google v.v. Using Outlook 4
B How to sync Outlook, iphone and Google calendars and contacts? Using Outlook 4
G Outlook VBA and Google Calendar ("Events") Outlook VBA and Custom Forms 1
Horsepower Google says Outlook 2016 is not a secure app Using Outlook 4
M Google Apps Mail *SENT* from iPhone doesn't download to Outlook via POP3 Using Outlook 1
B synching outlook 2010 with google on android phone Using Outlook 6
A Outlook 2013 IMAP using Google Mail App not syching Sent Mail Using Outlook 3
C Setting up Outlook 10 on Widows 8 using Google Server Using Outlook 3
A Recommend add-on or utility enabling quick Google search within Outlook Using Outlook 7
M How do I change the default map from Bing to Google in Outlook 2003? Using Outlook 23
J Outlook Connector equivalent for Google Mail? Using Outlook.com accounts in Outlook 2
D Outlook 2010 registry hack - delete emails - Google Apps Using Outlook 0
R Outlook and google calendar stuck if I close outlook Using Outlook 1
C Sync Outlook Calendar and Google Calendar Using Outlook 1
F Google Desktop fails to index Outlook 2010 Using Outlook 3
G Error in Outlook Object Model with redemption and google apps prem Outlook VBA and Custom Forms 3
J Hotmail drafts started on desktop disappear, but show in web version of Outlook Using Outlook 0
Z Hotmail account deleted from outlook and issue with account not exist Using Outlook 0
J 'Name on the security certificate is invalid or...' - Outlook on desktop talking to hotmail.com account Using Outlook.com accounts in Outlook 5
J Outlook, Word, Access crash unless run in Admin mode - time dependent it seems Using Outlook 10
T Why do Outlook Desktop 2021 tasks from my wife's email show up in my task pane? Using Outlook 2
B Delete Read Receipts in Your Outlook Outlook VBA and Custom Forms 0
M Outlook changes the "Modified" field when moving/copying a Contact. Using Outlook 0
macdotcom Outlook 365 Outlook folder export to PST archival tool - close, but need a nudge Outlook VBA and Custom Forms 2
M Outlook 2016 still feature updating Using Outlook 0
e_a_g_l_e_p_i Question about Outlook 2021 and Gmail Using Outlook 9
J Outlook VBA to send from Non-default Account & Data Files Outlook VBA and Custom Forms 3
P Limited Support for 3rd Party Mail in new Outlook? Using Outlook 1
T Outlook is categorizing emails incorrectly Using Outlook 1
R Legacy Outlook on Mac Email Cache Using Outlook 0
A Outlook can't remember outlook.com, Exchange password. Using Outlook 6
S Related messages show in main Outlook window vice new Advanced Find windows Using Outlook 1
H Force Outlook 2019 with GMail 2-Step to Require Login? Using Outlook 0
G Retaining Tabs in outlook body Using Outlook 2
V Setting up Outlook 2021 on new computer Using Outlook 2
G Add Map It button to Custom Contacts Form in Outlook Outlook VBA and Custom Forms 1
X Custom icon (not from Office 365) for a macro in Outlook Outlook VBA and Custom Forms 1
C New pc, new outlook, is it possible to import auto-complete emailaddress Using Outlook 4
T Outlook 365 won't take new working password Using Outlook 0
S Create Outlook Task from Template and append Body with Email Body Outlook VBA and Custom Forms 4
P Can't add custom field to custom Outlook form, it always adds to the Folder instead Outlook VBA and Custom Forms 2

Similar threads