Friday, 17 October 2014

Why was iOS Mail app archiving GMail messages even though was set to delete?

iOS 8 and Gmail was behaving oddly with regard to a delete action  and was still only archiving them. The preferences in account setup was set to to the delete option  not archive and the delete folder target was set as Bin on Server.

What happened in iOS 8 Mail app

In iOS8 Mail app in GMail account, a long swipe left (=delete) or short swipe left then choose Trash all had the same effect on message. The message disappeared from inbox and if you looked in the trash folder for the gmail account you may momentarily see message as it syncs with server then the message disappears from Trash folder. Checking directly on server via browser confirmed the message was not in Trash (Bin), however looking at the "All mail" GMail folder (the GMail archive folder) showed message STILL present there.

Compared to how it should have worked as in iOS GMail app

In the iOS Gmail app Deleting a message from Inbox and it appeared in Trash (Bin) folder and remained there; at this time it was also still present in the All Mail folder. However choose then to delete forever option (from within Trash (Bin)) and disappears from both Trash AND the All Mail folder.


Summary of problem

iOS Mail app with Gmail accounts appeared with the TRASH option only to move emails to trash locally but then as soon as sync with server it disappeared from the Trash folder with no further action but remained in the All Folder. This is in effect an Archive.  It should work as as the Gmail iOS app - messages deleted or trashed are moved to Trash (from where they can be restored ) and remain there till deleted permanently manually or the Trash can is automatically purged after set time on server.


Solution

Others did not seem to have this problem but took some time to realise the issue was with the type of account configured to connect to the Gmail account, not the settings of that account.

The account was originally setup  on iOS 6, upgraded to iOS 7 and then iOS 8. Due to syncing problems with previous versions of iOS and Google many had recommended using the Exchange interface to Google and this is what  had done. When the connection was originally established the type of account chosen was "Exchange". 

For the GMail account in settings I deleted the Exchange type connection and made new account setup using the Gmail type account option in iOS8. It now all seems to work correctly , so solution was to use correct type account. I cannot remember whether I tested the Exchange version thoroughly in previous iOS versions so cannot say if this is a new problem or also existed in iOS 7. Since identifying the problem and looking at the contents of my All Mail folder it looks as though this was occurring in iOS 7.


Tidying up GMail "All Mail"

Having fixed the issue for future deletes the issue was then how to delete messages in the All Mail folder that I thought I had deleted. It is important to state that I have my own set of user defined folders (labels) where I place messages to be kept and hence do not use the Archive facility of Gmail. The following will delete all messages that exist only in the All Mail folder
  • To identify messages in All Mail that do NOT have any user applied labels (i.e. in my folders) and are not in the system folders (labels) Inbox, Drafts or Sent then use the advanced search facility while logged into GMail via a browser. In the Search box type:
           has:nouserlabels -in:sent -in:chat -in:draft -in:inbox
  • This will present the large number of messages as multiple pages. Select the tick box in header area that will select all the messages on that page and this will also then give you option (if you have selected all on that page) to select all conversations that meet this search criteria - select Yes. With all conversations selected then choose delete.
  • At this point they will still show as are in the Trash Bin. Go to Trash bin and scan the messages just to ensure that you have not accidentally deleted a large number of messages you do wish to keep - if there are then undo the delete function. If all is OK and you are happy to get rid of the messages then Empty Trash Bin.



GMail Contacts sync - Fields display in wrong order in Addresses on iPad

I use Gmail for email and contacts syncing them to iPad, iMac and MacBook. For some time some I have been confused by how some addresses display on iPad with data above the first line of address.

Address should show as [ Fields where data is entered on Google Contacts]

32 Hunter Street     [Street]
Nether Green         [Local Area]
Sheffield                [City]
S11 1AA                [Zip/Post Code]
United Kingdom    [Country]

on iPad reads as

Nether Green
2 Hunter Street
Sheffield [City]
S11 1AA
United Kingdom

Confusingly choose to edit record on iPad and the [Local Area] entry appears above the street entry. If  you change the order to correct  this on iPad in Edit screen (delete the area entry and enter the street area, delete the original street entry and enter the area entry) an odd thing happens. On Gmail contacts the updated entry are BOTH put in the street entry (as I suggest doing below).  The problem seems related to the [Local Area] field. If you want it to display correctly then do not use the [Local Area] field when entering on Google Contacts and enter a second line in the street field with the local area information and this will then display correctly.

If using Contacts on OSX and syncing with Google then also enter the Local Field as a second line in the street field as suggested above for the Gmail web interface.

The iPad sync I use takes place with the Google type internet account and hoped iOS8 would solve it but this is not the case. I have tested this on iPad with a separate CardDav account (disabling the contacts in the main Google account) and makes no difference. As such it seems like a bug in the iPad contacts display - I am surprised it has not been picked up by Apple and corrected. As I use Android phone switching to iCloud is not really an option.




Thursday, 19 June 2014

OSX DiskUtility fails due to inability to unmount USB drive

On OSX 10.9.3 trying to format some USB drives but the Mac Disk Utility failed when trying to reformat or repartition with " error unable to dismount " and consequently fails. This seemed a bit hit and miss which USB drives it effected but the fix was to temporarily disable Spotlight indexing - why it was indexing these particular drives it was not clear. Note after re-enabling indexing OSX will reindex all disks which will take some time.

To disable Spotlight in Terminal use command
       sudo mdutil -a -i off
After using DiskUtility re-enable indexing in Terminal with
       sudo mdutil -a -i on

Wednesday, 26 March 2014

Spotlight not working on Mac (OSX)

On a hackintosh with OSX 10.8.2 Spotlight suddenly stopped working with these symptoms:

  • It was possible to enter search term but did not show anything other than Web or Wikipedia.
  • In preferences it was set to show all and the privacy pane was empty.
  • In terminal (terminal commands in blue, terminal response in red)
    "sudo mdutil -i off /" (to turn off service),
    "sudo mdutil -i on /", (to turn on service)
    "sudo mdutil -E /" (to delete meta data)
    all produced the result 'Spotlight Server is disabled' i.e. the usual command seem to have no effect.
The following terminal command seemed to produce some results, time will tell if it is temporary
  • "sudo rm -rf /.Spotlight-V100" removed the index but had no effect on above commands
  • "sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist " produced 'com.apple.metadata.mds Already loaded'
  • "sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist" seemed to work.
  • "sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist" then seemed to work also [using the reverse has also been required i.e unload load unload and then reload]
  • Restarting Spotlight then with "sudo mdutil -i on /" produced \
    /:  Indexing enabled.
    /Volumes/MacDell435TMBU: Indexing enabled

There are multiple descriptions of problems with Spotlight and it is unlikely there is one common cause but a number do describe the issue of the Server disabled command when usual terminal commands are used trying to reset it. This may help in some circumstances.








Monday, 27 January 2014

Android Fix: App could not be downloaded due to an error 492

Full article 
http://appslova.com/android-fix-app-could-not-be-downloaded-due-to-an-error-492/

Running Cynaogenmod Android 2.3 on original HTC - this allows me to use the SD as app storage and get over memory limits. It has extended life of phone from 15 months (when ran out of space) to now almost 4 years and phone is still fine.

Recently unable to update a 5 Apps. The above link was very helpful and and simply wiping the disk cache and the Dalvik cache by rebooting into recovery mode and choosing the appropriate options solved the problem.

Tuesday, 7 January 2014

OS X Mac asking for password when moving files to Trash

Credit for this solution to:
http://www.fixkb.com/2012/09/mac-asking-for-password-when-moving-files-to-trash.html#comment-72799
This started after Mavericks upgrade. When dragging files to the trash you are prompted for a password this is result of sometimes when moving files or folder the permission are not carried over or permissions on trash can have become corrupted. Ownership corruption of trash can can also manifest itself as Trash always shows empty but Terminal can identify files present. You will need to re-take ownership of the trash folder or reapply permissions to folders. 

Method 1

  1. Click on the Spotlight (magnifying glass in top right), type “Terminal” and press enter.
  2. Type the following command replacing “your_user_name” with your user name.
    sudo chown your_user_name ~/.Trash
  3. You will need to enter your password and press Enter.
    • It won’t show any characters when you type.
    • If you do not have a password then set one first.
If you are presented with the following error:  “No such file or folder” then do the following:
  1. Type the following command:
    mkdir ~/.Trash

Method 2

Check your permisions are correct on your user files.
  1. Navigate to your main hard drive (usually Macintosh HD) and select your /Users folder.
  2. Press  “Cmd+I” to bring up the Get Info window.
  3. Expand the “Sharing and Permissions” arrow.
  4. Next to your username you should see “Read & Write”.
  5. Click the small Gear icon  and then click “Apply to enclosed items…”

Friday, 21 December 2012

Uninstall printer drivers in Windows7, non responding Excel and Word

In a recent odd problem on Windows 7 Home Premium 64 bit machine Word, Excel started to hand/crash when trying to format bold, alter page layout etc. Eventually realised this was not within Word or Excel but seemed to be crashing of the Print Spooler Service [e.g. open another app e.g.  Firefox and choose to print but it then says cannot find any printers ].

Repeated crashing of Print Spooler Service seems to have multiple causes and hence multiple solutions but one of the more consistent is that relates to a bad printer driver and indeed the HP Universal Driver had been installed recently which seems to have a chequered reputation. . The genera advice is to uninstall the Driver and to ensure complete uninstall manually by stopping spooler service,  going to Print Server settings under File  in Print Folder and uninstalling the driver. This is not shown in Windows' 7 Home Premium which seems not to have Print management installed and the alternative of typing Print Management in Search also does not work.

However … if you type printui /s /t2  in a run command box the magically you get a window that lists all the installed print drivers and allows you  select the relevant one and uninstall it. Even if you choose to uninstall package certain services seem left behind e.g. Net Driver HPZ12 but at least these are set to manual.

Monday, 12 November 2012

Tweetcaster and network time

Running Android 2.3 CM7 for some time and suddenly after many months Tweetcaster app stopped working. Initially said time scale out of bounds (this was really a clue) , re-installed app, cleared cache all to no effect. It still said "cannot connect to Twitter. " The official Twitter app worked fine. Eventually the problem was solved by adjusting the android system time to use the network automatic time. Somehow this had become unticked and Tweetcaster then worked. It was the only app that seemed affected by by not using an auto network time.