Gmail Account stopped syncing

After having my Milestone for only 2 weeks, my Gmail account today stopped automatically syncing with my phone.  I could go into the mail application and do a manual sync, this worked fine, but the push feature wasn’t working.  After much trawling around the web I found I’m not the only person to suffer this problem.  For others who may experience this problem here is a list of things I found that may make things start to work for you.  I’m still not convinced that these are permanent fixes merely workarounds which may need to be repeated in order to get the functionality back.

Go into the phone settings from the home screen
Goto applications then manage applications
Press the phones menu button and select the filters option
Change it to display all
You should be able to see gmail and gmail storage in the manage list
In each application clear the cache and data
This should clear the temporary data from the gmail app allowing it to get a fresh clean sync

This has so far worked for me, from my reading this is only temporary and may need to be repeated if it stops working again.

You could if you wanted perform a full factory rest of the phone and see if this makes a difference with the sync issue.

HOME > SETTINGS > PRIVACY > FACTORY DATA RESET
Follow the prompts
Place your shortcuts and widgets back on your desktops
Open market application and select downloads tab this will enable you to reinstall all of your downloaded applications

Let me know what you think and if you find any better solutions to fix the problem

UPDATE (NOW WORKING)

So the above didn’t work for me, I decided to wipe my phone and start again as detailed above.  Not as painful as it sounds. Google has all my contacts and all your downloads from the market place are in your download tab, took me about 20 mins in total to set the phone back up. So far so good…
Disappointingly the Gmail sync issue was still there, so I decided to have a further look at the problem, I seem to have fixed the issue by

GMAIL > SETTINGS > LABELS
For each label set the number of days to sync to the required amount, this should now sync all mail.

Seems the Inbox sync isn’t working for some reason but if i set all of my labels I’m now having my Gmail synced without having to go into the application and do it manually.

Let me know if it works for you!