ipad iphone開發_如何釋放iPhone或iPad的郵件應用程序使用的空間

ipad iphone開發

ipad iphone開發

Apple’s Mail app doesn’t provide a lot of control over how much storage it uses. it wants to download and store a lot of emails so they can be indexed and searchable with Spotlight. But the Mail app may sometimes use a large amount of space, which is particularly onerous on storage-limited 16GB iPhones.

Apple的Mail應用程序並未對其使用多少存儲量提供太多控制。 它希望下載和存儲大量電子郵件,以便可以使用Spotlight對其進行索引和搜索。 但是Mail應用有時可能會佔用大量空間,這在存儲受限的16GB iPhone上尤其繁重。

This is similar to the problem with the Mail app on a Mac. On both iOS and OS X, the Mail app may take up gigabytes of storage space because it wants to store a complete offline copy of your email.

這類似於Mac上Mail應用程序的問題 。 在iOS和OS X上,「郵件」應用都可能需要GB的存儲空間,因爲它希望存儲電子郵件的完整脫機副本。

查看正在使用多少空間郵件 (See How Much Space Mail is Using)

You can see how much space your iPhone or iPad’s Mail app is using in the same way you’d see how much space any other app is using. Open the Settings app on your device, and head to General > Storage & iCloud Usage > Manage Storage. Scroll down in the list and look for the Mail app. This displays how much space is used by 「Mail and Attachments.」

您可以通過查看其他應用程序正在使用的空間的相同方式,來查看iPhone或iPad的Mail應用程序正在使用的空間 。 打開設備上的「設置」應用,然後轉到常規>存儲和iCloud使用情況>管理存儲。 在列表中向下滾動,然後查找「郵件」應用程序。 這將顯示「郵件和附件」使用了多少空間。

The only option here is 「Open Mail,」 which just opens the Mail app. There’s no helpful way to reduce the amount of space used by the Mail app. You have to do it through other means.

此處的唯一選項是「打開郵件」,它將僅打開郵件應用程序。 沒有減少郵件應用程序使用的空間量的有用方法。 您必須通過其他方式進行。

糟糕的解決方案:手動刪除電子郵件 (The Bad Solution: Manually Delete Emails)

If you’re feeling particularly masochistic, you can do this the old-fashioned way. Just open the Mail app and start deleting emails–especially emails with attachments. Select the emails, tap 「Move,」 and move them to the Trash. Be sure to empty the trash afterwards.

如果您感覺特別受虐,可以使用老式的方法。 只需打開「郵件」應用程序,然後開始刪除電子郵件,尤其是帶有附件的電子郵件即可。 選擇電子郵件,點擊「移動」,然後將其移動到垃圾箱。 確保隨後清空垃圾箱。

To find Mail with attachments, you can tap 「Mailboxes」 to open the list of mailboxes, tap 「Edit,」 enable the 「Attachments」 mailbox, and find emails with attachments. These will likely be larger and take up more space.

要查找帶有附件的郵件,您可以點擊「郵箱」以打開郵箱列表,點擊「編輯」,啓用「附件」郵箱,然後查找帶有附件的電子郵件。 這些可能更大,並佔用更多空間。

You probably don’t want to do this! Any emails you delete from your phone will be deleted from the server if you use IMAP for your email, which you probably do. Even if this wasn’t a problem, this would take a long time. There’s also no way to delete an attachment from an email–you just have to delete the entire email.

您可能不想這樣做! 如果您將IMAP用作電子郵件 ,那麼您從手機中刪除的所有電子郵件都將從服務器中刪除,您可能會這樣做。 即使這不是問題,也將花費很長時間。 也沒有辦法從電子郵件中刪除附件-您只需要刪除整個電子郵件。

更好的解決方案:刪除並重新添加帳戶 (A Better Solution: Remove and Re-Add the Account)

There’s a better solution. You can force your iPhone or iPad’s Mail app to start over from scratch and discard all those offline copies of emails by removing your current email accounts and re-adding them.

有更好的解決方案。 您可以通過刪除當前的電子郵件帳戶並重新添加,來強制iPhone或iPad的Mail應用從頭開始,並丟棄所有這些電子郵件的脫機副本。

Assuming you’re using IMAP or Exchange for your emails, you won’t actually lose any emails if you do this. They’ll still be stored on your email provider’s server, and you can access them by logging on from the web. If you’re using the older POP3 protocol, however, those emails may only be stored on your device. Unless you know otherwise, you’re probably using IMAP or Exchange, though.

假設您對電子郵件使用IMAP或Exchange,那麼這樣做實際上不會丟失任何電子郵件。 它們仍將存儲在您的電子郵件提供商的服務器上,您可以通過從Web登錄來訪問它們。 但是,如果您使用的是較早的POP3協議,則這些電子郵件只能存儲在您的設備上。 除非您另外知道,否則您可能正在使用IMAP或Exchange。

To do this, open the Settings app, tap 「Mail, Contacts, Calendars,」 and tap the name of your email account. Tap 「Delete Account」 to remove the account from your device. Be sure you have the email account’s username, password, and server details before you do this! If you don’t, you won’t be able to re-add the account afterwards. If you have multiple email accounts, you’ll want to remove them all from here.

爲此,請打開「設置」應用程序,點擊「郵件,聯繫人,日曆」,然後點擊您的電子郵件帳戶的名稱。 點按「刪除帳戶」以從設備中刪除該帳戶。 在執行此操作之前,請確保您具有電子郵件帳戶的用戶名,密碼和服務器詳細信息! 如果您不這樣做,則以後將無法重新添加該帳戶。 如果您有多個電子郵件帳戶,則要從此處將其全部刪除。

Next, power down your iPhone or iPad and start it back up to ensure all offline caches are completely cleared. Open the Mail app and you’ll be asked to provide your email account details again. If you need to add additional email accounts, open the Settings account, tap 「Mail, Contacts, Calendars,」 and tap 「Add Account.」

接下來,關閉iPhone或iPad的電源並重新啓動,以確保完全清除所有脫機緩存。 打開郵件應用程序,系統將要求您再次提供您的電子郵件帳戶詳細信息。 如果您需要添加其他電子郵件帳戶,請打開「設置」帳戶,點擊「郵件,聯繫人,日曆」,然後點擊「添加帳戶」。

Your iPhone will start downloading emails again, but this will clear out that old backlog of cached emails and file attachments.

您的iPhone將再次開始下載電子郵件,但這將清除緩存電子郵件和文件附件的舊積壓。

一個有用的提示:限制您的服務提供給郵件的電子郵件數量 (A Helpful Tip: Limit the Number of Emails Your Service Provides to Mail)

The above tips may not be good enough to reduce the space the Mail app uses in the long run. Luckily, there may be a way you can prevent the Mail app from downloading all the emails in your email account. Unfortunately, there’s no option in the Mail app itself for this.

上述技巧可能不足以減少Mail應用程序長期使用的空間。 幸運的是,也許有一種方法可以阻止Mail應用程序下載電子郵件帳戶中的所有電子郵件。 不幸的是,「郵件」應用程序本身沒有此選項。

Your email service may provide an option that allows you to limit the amount of emails it provides to IMAP clients like the Mail app. For example, if you use Gmail, you can log onto gmail.com, open the Settings page, click 「Forwarding and POP/IMAP,」 and activate the 「Limit IMAP folders to contain no more than this many messages」 option. Set it to 「1000」 and the Mail app won’t be able to download more than 1000 messages from each folder it sees. Other email services may have similar options–poke around their settings pages on the web to see.

您的電子郵件服務可能提供一個選項,允許您限制它提供給IMAP客戶端(如「郵件」應用程序)的電子郵件數量。 例如,如果您使用Gmail,則可以登錄gmail.com ,打開「設置」頁面,單擊「轉發和POP / IMAP」,然後**「限制IMAP文件夾以容納不超過這麼多的郵件」選項。 將其設置爲「 1000」,「郵件」應用將無法從其看到的每個文件夾中下載1000條以上的郵件。 其他電子郵件服務可能具有類似的選項-在網絡上的設置頁面中瀏覽以查看。

To clear your download cache, you’ll want to remove and re-add the email account from your iPhone after changing this setting.

要清除下載緩存,您需要在更改此設置後從iPhone中刪除並重新添加電子郵件帳戶。

唯一的萬無一失的解決方案:使用另一個電子郵件應用程序 (The Only Foolproof Solution: Use Another Email App)

Unfortunately, the Mail app may be difficult to tame. It may eventually take up a lot of storage again after you remove and re-add the accounts. Not all email services let you limit the number of emails your email service shows to the Mail app.

不幸的是,郵件應用程序可能難以馴服。 在刪除並重新添加帳戶後,它最終可能會再次佔用大量存儲空間。 並非所有電子郵件服務都允許您限制您的電子郵件服務顯示給「郵件」應用程序的電子郵件數量。

Apple hasn’t provided any options for controlling how much storage the Mail app uses. However, you can always use another email app. For example, if you use Gmail, install Google’s Gmail app from the App Store. If you use Microsoft’s Outlook.com or Yahoo! Mail, for example, then download the Outlook or Yahoo apps for iOS instead. These apps usually won’t attempt to cache a lot of emails offline, so they’ll use much less storage space. In fact, after using the Gmail app for months on end, it’s only cached 53.4MB of 「Documents & Data」 on my iPhone.

Apple沒有提供任何選項來控制Mail應用程序使用多少存儲空間。 但是,您始終可以使用其他電子郵件應用程序。 例如,如果您使用Gmail,請從App Store安裝Google的Gmail應用 。 如果您使用Microsoft的Outlook.com或Yahoo! 以郵件爲例,然後下載適用於iOS的OutlookYahoo應用程序。 這些應用通常不會嘗試離線緩存大量電子郵件,因此它們將使用更少的存儲空間。 實際上,使用Gmail應用幾個月後,iPhone上僅緩存了53.4MB的「文檔和數據」。

Once you set up your new email app, you can then remove your email accounts from the built-in Mail app using the instructions above, and it won’t download emails or use any space at all. If you want to keep syncing calendars and contacts with an account but not use it in the Mail app, head to Settings > Mail, Contacts, Calendars, tap the name of an account, and disable the 「Mail」 slider for that account. You’ll still have your address book and calendar, but email won’t take up any space.

設置新的電子郵件應用程序後,您可以按照上述說明從內置的郵件應用程序中刪除您的電子郵件帳戶,並且它不會下載電子郵件或完全不佔用任何空間。 如果您想繼續與某個帳戶同步日曆和聯繫人,但不希望在「郵件」應用程序中使用它,請轉到「設置」>「郵件,聯繫人,日曆」,點擊一個帳戶的名稱,然後禁用該帳戶的「郵件」滑塊。 您仍然可以擁有通訊錄和日曆,但是電子郵件不會佔用任何空間。



Unfortunately, Apple’s Mail app–both on mobile devices and Macs–doesn’t offer a lot of control over how much storage it uses. The best solution may be using another email app if this is a problem for you.

不幸的是,無論是在移動設備還是在Mac上,Apple的Mail應用程序都無法對其使用多少存儲量提供很多控制。 最好的解決方案是使用另一個電子郵件應用程序,如果這對您來說是個問題。

Image Credit: Karlis Dambrans on Flickr

圖片來源: Flickr上的Karlis Dambrans

翻譯自: https://www.howtogeek.com/247435/how-to-free-up-space-used-by-your-iphone-or-ipads-mail-app/

ipad iphone開發

相關文章
相關標籤/搜索