Page 2 of 4 FirstFirst 1234 LastLast
Results 21 to 40 of 75
  1. #21  
    Quote Originally Posted by jauderho View Post
    Here's the command to remove all email cache files older than 7 days. You need to run this at the shell prompt as root. YMMV. I am not responsible for any lost email. Running this saved me over 48MB.
    Looks like we're up at the same time clearing our /var drives, hehe.

    This is a major bug. I just cleared out all email accounts (Gmail and Hotmail) from my Pre, and all these bucket folders were intact. I checked out many of the directories and had many emails back from August, and it's mid November right now. Since the Pre is now not currently syncing with any email provider, I will now clear this folder and symbolically link it to an emails folder in /media/internal/ where the real space is.

    Then, I'll sync gmail again and see if the buckets return.

    I'll let people know how it goes.

    Glad this thread is around, although it was a bit hard to find.
  2. #22  
    Quote Originally Posted by tcurtin View Post
    If you can get access to the linux prompt on your Pre, use this command to find out the size of any directory:

    du -sm <directory>

    (This gives DiskUsage, Summed, in Megabytes. You can also swap in k for the m and see usage in kilobytes.)

    Enjoy!
    du -sh <directory>
    (from the command line)

    That reports in human readable format.
    My emails directory was 51 megs.
    Gmail keeps all my email on their server, so I'm not worried about the "copies" that are on my Pre.
  3. g0rey1's Avatar
    Posts
    71 Posts
    Global Posts
    81 Global Posts
    #23  
    Quote Originally Posted by jauderho View Post
    Here's the command to remove all email cache files older than 7 days. You need to run this at the shell prompt as root. YMMV. I am not responsible for any lost email.



    Running this saved me over 48MB.
    this doesn't appear to work on the attachment cache.

    should add though that this thread pointed me to the fact that webOS does this and where to find it. i ran the above code, which worked for email, then ran:
    rm -rf /var/luna/data/attachments/

    ended up accidentally deleting not only everything under the attachments dir, but also the attachments dir (duh) so i recreated it. man is everything much snappier now.

    will have to keep on this and do it periodically. thanks for find this.
    Last edited by g0rey1; 11/17/2009 at 11:38 AM.
  4. #24  
    Quote Originally Posted by rhong View Post
    Looks like we're up at the same time clearing our /var drives, hehe.

    This is a major bug. I just cleared out all email accounts (Gmail and Hotmail) from my Pre, and all these bucket folders were intact. I checked out many of the directories and had many emails back from August, and it's mid November right now. Since the Pre is now not currently syncing with any email provider, I will now clear this folder and symbolically link it to an emails folder in /media/internal/ where the real space is.

    Then, I'll sync gmail again and see if the buckets return.

    I'll let people know how it goes.

    Glad this thread is around, although it was a bit hard to find.
    Ok, I did the symbolic link last night so my email bucket folders are now out on my Pre USB partition rather than in /var. It's now 5 MB instead of 51 MB without all the stale email from months ago. The email app generated all the new bucket folders (which took quite some time for some reason) but I'm back to normal now.

    The snappiness, I believe, comes partially from getting rid of the emails (affecting the email app) and clearing up lots of room off of the /var partition. I've noticed that when /var is at 90% or more, the Pre is very sluggish.

    ------------
    [user]@palm-webos-device:~$ df -h /var
    Filesystem Size Used Available Use% Mounted on
    /dev/mapper/store-var 248.0M 171.8M 76.2M 69% /var
    ------------

    Have they written a tweak for this? I could put it in my app, but it has nothing to do with autocorrection.

    I'm rating this thread because it's so useful.
  5. #25  
    Quote Originally Posted by rhong View Post

    Have they written a tweak for this?

    I don't think anyone has... but it sounds like you'd be the man to write a patch for it, of course we would all appreciate it if you submitted it to the webos-internals team afterwords.
    Pre|central Peacekeepers
    Share your Mizzou pride:
    - wallpapers/boot themes - here
    - Black n' Gold theme - here
  6. #26  
    Quote Originally Posted by MLJones8 View Post
    I don't think anyone has... but it sounds like you'd be the man to write a patch for it, of course we would all appreciate it if you submitted it to the webos-internals team afterwords.
    I pointed rwhitby to this thread. Perhaps the WebOS Internals team can act on this faster than I'd be able to.
  7. #27  
    Note: I had to reboot my Pre to get things sorted out. Without the reboot, I was getting a blank interface when starting mail. No harm done, just need to make the app/service rescan everything.

    After this, I was able to install several more apps. Which made me happy.
    Mobile photoblog http://post.jauderho.com/
  8. #28  
    I have much space freed, but I can't install anything via the App Catalog. I can install via Preware though.
  9. tcurtin's Avatar
    Posts
    150 Posts
    Global Posts
    151 Global Posts
    #29  
    I've been lurking on this thread for a bit now (the promise of added speed and space is alluring to anyone, no?) but I have to say I always get nervous when changing a process no one actually understands the reason for. It would be great to hear someone from Palm weigh in on this topic, or at least someone who'd figured out exactly *why* these dirs are there in the first place...

    The other thing that would be nice to see confirmed - if you remove a file from this dir that *doesn't* correspond to a deleted email:
    a) does that email still show up in your email inbox on the pre?
    b) if you try to open the email, will it correctly grab it from the server again?

    My other concern - with all of these files, the Pre has to know how to get them when they're needed. This means either it maintains an index somewhere, or it goes looking for them every time you open an email. If it maintains an index, then deleting the files out from under it probably means there's an index in trouble somewhere. If it just goes looking (with a grep * for instance), then we're fine. That might explain why things speed up after files are removed (less files for the find command to run through), but seems like a not-so-scalable/efficient way to do things.

    For the record, rm -f and rm -fr are very powerful commands - don't use them unless you're *sure*! -r makes the command recursive, so any directories in its list will get deleted in full. There's no "undelete" or "restore" in linux...
  10. g0rey1's Avatar
    Posts
    71 Posts
    Global Posts
    81 Global Posts
    #30  
    yeah, understand your hesitance, but after poking around and seeing research of others it seems pretty clear that these are email cache buckets (for lack of a better term) that will be automatically recreated as needed. in fact, i have confirmed since my deletion of all under the "attachments" dir that some are being recreated.

    thinking of them as a sort of "pointer" and/or index as you stated to "speed up" the email app. just guessing.

    either way, i have performed these deletions under the /emails and /attachments and can confirm no residual issues and that they are being recreated as new mail comes in. ymmv, but i have had no other issues with doing so.

    and yes, of course rm -rf is dangerous. i assume that anyone that makes it that far in this thread knows this.

    btw, i would love for this thread to be a "sticky" as i think it's invaluable to note that it's not just "apps" that take up your available install space, it's webOS's non-purging of deleted emails (and/or not giving you the option of "purge deleted items") that can take up quite a bit of space too.

    thanks to all that have gone before in this thread, you've been a big help.
  11. #31  
    tcurtin,

    I understand your hesitation. I had the same, which is why I went through the steps I did. I first changed the email settings to only maintain a single day's worth of email. After waiting for that to take effect (btw, there was no effect), I removed both my Hotmail and Gmail accounts so that the Pre would ask me to set up an email account upon opening up the email app. At this point, I knew there should be no more email on my Pre device, yet all those files continued to exist, emails with dates between August and mid November. At that point, I felt very safe that I could delete all the buckets and link the email directory over to /var/media/[something], so I moved forward.

    Anyway, all is still well now, email works fine and i have a third of /var cleared out for apps (although the App store still won't let me download apps, claiming I have insufficient space). Oh well.
  12. #32  
    Too bad there is no cron functionality on the phone or this could easily be scripted to run every so often.
    Mobile photoblog http://post.jauderho.com/
  13. #33  
    If you delete one of the html files in one of the bucket directories that does not correspond to a deleted email, then when you go to the email app and try to open that email, it no longer displays anything after opening. It does not re-load the email. So unless you remove the accounts, then delete all the files and re-add the accounts, just deleting these files at will is not a good idea....

    This is pretty stupid, why isn't this something palm has fixed?
  14. #34  
    Quote Originally Posted by jauderho View Post
    Here's the command to remove all email cache files older than 7 days. You need to run this at the shell prompt as root. YMMV. I am not responsible for any lost email.



    Running this saved me over 48MB.

    I guess this is one more reason to take the time to get cron running on my pre.
  15. jdale's Avatar
    Posts
    554 Posts
    Global Posts
    564 Global Posts
    #35  
    I don't know how much it saved, but the app catalog wasn't letting me install anything. Cleaned out my mailbox and trash (wasn't much in there to begin with), and then manually deleted all the bucket folders in email and attachments, and then it gave me no problems installing three apps and two updates. So it is enough to make a difference.

    One thing that seemed interesting to me was that most of these folders existed both with and without the - in the name. E.g. bucket1 and bucket-1. I wonder if the name changed between versions of WebOS and some of those got orphaned? I can't see dates in Internalz but it might be obvious to someone looking around in there via linux.
  16. 02589's Avatar
    Posts
    242 Posts
    Global Posts
    248 Global Posts
    #36  
    Quote Originally Posted by supercluver View Post
    If you delete one of the html files in one of the bucket directories that does not correspond to a deleted email, then when you go to the email app and try to open that email, it no longer displays anything after opening. It does not re-load the email. So unless you remove the accounts, then delete all the files and re-add the accounts, just deleting these files at will is not a good idea....

    This is pretty stupid, why isn't this something palm has fixed?
    Palm will(should) fix it in 1.3.5 coming out soon. My thought process when I originally deleted all the buckets for mail and attachments was that I cleaned out my email first and emptied the trash.

    I can't imagine trying to figure out what to delete and what to save if you insist on having certain pieces of mail remain on your machine.
  17. 02589's Avatar
    Posts
    242 Posts
    Global Posts
    248 Global Posts
    #37  
    For those bucket deleters out there. You are deleting the emails buckets and the attachment buckets, aren't you? They're usually about the same size for me. They both re-spawn on their own, so you can delete them with confidence.
  18. #38  
    Quote Originally Posted by rhong View Post
    Anyway, all is still well now, email works fine and i have a third of /var cleared out for apps (although the App store still won't let me download apps, claiming I have insufficient space). Oh well.
    This happened to me as well, even though I too had plenty of space in var, until I went to preware preferences, and chose "yes" for "partial app limit fix." Restarted the phone (not positive that was necessary?) and I can install apps from the official catalog now.
  19. #39  
    Quote Originally Posted by tarirene View Post
    This happened to me as well, even though I too had plenty of space in var, until I went to preware preferences, and chose "yes" for "partial app limit fix." Restarted the phone (not positive that was necessary?) and I can install apps from the official catalog now.
    Thanks for your suggestion. I'm not in a hurry to get tons of App Catalog apps installed. I'll just work with the Preware ones for now. I'll be patient and wait on Palm. Thanks again.
  20. jbluther's Avatar
    Posts
    15 Posts
    Global Posts
    80 Global Posts
    #40  
    What directory holds the message headers? I would think deleting the emails, attachments, and headers would cause the Pre to re-sync the next time the email app is opened. I use Gmail and Exchange and I don't want to delete all on the mail server. It would be nice to have a tweak that does a "reset" as if you removed the email account(s), deleted the messages and attachments, then added the accounts again all with one button.
Page 2 of 4 FirstFirst 1234 LastLast

Posting Permissions