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开发