Mail Extensions

RSS for tag

Use Mail Extensions for composition, message actions, secure email, and content blocking in the Mail app.

Posts under Mail Extensions tag

93 Posts

Post

Replies

Boosts

Views

Activity

Default mail app is not detected when Apple mail app deleted (mailto)
I detected a possible bug during development that the default mail app is not detected by apps when the Apple mail app is deleted. Reproduced on more than 3 iPhones - all with iOS version 14.8 or higher. Setup: I have 3 mail apps on my device: Apple Mail, Outlook, and a third one. I never touched default mail app settings before. Then I deleted Apple Mail and Outlook was automatically set as the new default mail app in the phone settings. Expected: When an app attempts to open the default mail app (mailto link), the Outlook app is opened. Actual: A message pops up saying that Apple Mail app is not installed on the device. Once I go to my phone settings and actively select Outlook or the other mail app as the default mail app, it works. Other apps open the default app and don't show the popup to install Apple Mail. This is an issue since users will not be aware that they need to actively set an email app in their phone settings even if it already appears to be set, and appears to be unwanted behaviour. We would love to leverage the functionality of using the phone's default mail app, but we have reproduced this issue on multiple devices and I couldn't find anything related to this issue online. Is this issue known yet? Where can I place this problem?
0
1
1.3k
Apr ’22
MailKit: access rawData for email
Hi, I am trying to build a Mail 'action' extension, and want to access the email body and parse it for specific content. Not sure how to go about converting the 'rawData' that comes in the MEMessage into something that I can read. Here's how I access the rawData property: func decideAction(for message: MEMessage, completionHandler: @escaping (MEMessageActionDecision?) -> Void) { var action: MEMessageActionDecision? = nil      if let messageData =  message.rawData {          print("messageData = \(messageData)") // what to do here??      } else {          action = MEMessageActionDecision.invokeAgainWithBody      } return action } The documentation just says this is 'unprocessed data': The content is available after MailKit downloads the message. MailKit provides the content as unprocessed data. For details about the format of the data, see RFC 2822. But I'm not sure what I'm supposed to do to go about converting the unprocessed 'data' into something that is accessible and useful to my app. Let me know if you have any thoughts or recommendations
2
0
1.7k
Apr ’22
Use Cryptotokenkit for mail deciphering
Hello, I recently implemented the Cryptotokenkit for IOS in order to sign mails (via Apple Mail app). This part went relatively smooth. I found in the Mail settings the parameter under S/MIME that enable Signing mails. Now that this step is complete I also wanted to implement mail deciphering. I tried to run some tests but I met the following message when opening encrypted mail: This message is encrypted. Install a profile containing your encryption identity to decrypt this message I'm sure I've encrypted the mail for me. and I'm also sure the identity is saved and usable inside the Cryptotokenkit I implemented. My questions are: is it possible to use the Cryptotokenkit for mail deciphering? (I assume that since I can sign mail via Cryptotokenkit I can also do mail deciphering, right ?). If the first question's answer is yes. then how do you enable the Cryptotokenkit to do mail deciphering? (I thought the option was close to the one for enabling signing mails but I only found mail encryption)
1
1
1.6k
Feb ’22
Universal Linking in Apple Mail
Hi Everyone, My boss and I are trying to choose and assimilate into a project management workflow and are currently considering some of the major PM apps available (Daylite, Basecamp, etc.). We are currently using Notion as a knowledge capture tool and project manager modeled after a program (Year Zero) created by productivity content creator August Bradley. But, one major requirement that we have and can't seem to figure out is creating a universal link to emails in Apple Mail. My boss uses Apple Mail to process his emails and would like to simply create a universal link to emails that contain action items or require later review, and send it to whatever PM software we choose, or to store in Notion. We have discovered a somewhat useful but clunky workaround in which you export an email to reminders or notes and it creates a link in the form of an icon back to the email, but the icon is not copy/paste-able into other apps like Notion, etc. Now, we are also aware that certain programs like Daylite, ToDoist, and Basecamp allow you to forward emails to your workspaces via proprietary email addresses that link to their databases, but these have varying degrees of utility as they often are very limited in the degree of control one has over where the email is sent and stored, and what information/formatting is retained. Anyway, does anyone have information about how to effectively universally link to an original email on the Apple Mail servers?
0
0
752
Jan ’22
Mail Extension for Creating Signature
Hi, I have an application which adds custom signature to Signature tab of the Mail Preference window based on the inputs entered (first name , last name , Designation,Phone , address etc etc....). I’m wondering if the new Mail Extension can be used to do signatures more ‘natively’. Can MEComposeSessionHandler be used for this? Please help. Thanks In Advance. Regards, Neetha
2
0
1.4k
Jan ’22
Setting or injecting mail signatures
Hi All Is there a way to assign an email signature through the MECompose class? This process already working for gmail accounts, signatures settings can be set from an api provided by google. For outlook there is an AddIn that supports injecting a signature upon composing a mail. Now that extensions have come up for monterey, I wonder if they provided a way to do it for the mac mail app as well through the Mail Extension service. An example of what I want (to be able to do either of this 2 options) after pressing the extension (better solution to do it automatically just by this extension to be installed): Set a new signature name, for example 'Work' if it doesn't exist and fetch a signature from a REST API and edit it there. Upon composing new mail fetch a signature through REST API and set/replace the current signature with the one returned. Is it possible with the new Mail Extension package? It would also be nice for a short snippet of how to start with this. Regards, Shlomi
0
0
570
Dec ’21
MailKit API Documentation
Does any have anyone have documentation on the usage related to the forMessageContext and messageContext parameters and for the methods below? This is undocumented while public making it an unusable API. func extensionViewController(messageContext: Data) -> MEExtensionViewController? func primaryActionClicked(forMessageContext context: Data) async -> MEExtensionViewController? The APIs are located here but lack any kind of proper documentation and examples https://developer.apple.com/documentation/mailkit/memessagesecurityhandler/3882908-extensionviewcontroller
0
0
981
Nov ’21
Default mail app is not detected when Apple mail app deleted (mailto)
I detected a possible bug during development that the default mail app is not detected by apps when the Apple mail app is deleted. Reproduced on more than 3 iPhones - all with iOS version 14.8 or higher. Setup: I have 3 mail apps on my device: Apple Mail, Outlook, and a third one. I never touched default mail app settings before. Then I deleted Apple Mail and Outlook was automatically set as the new default mail app in the phone settings. Expected: When an app attempts to open the default mail app (mailto link), the Outlook app is opened. Actual: A message pops up saying that Apple Mail app is not installed on the device. Once I go to my phone settings and actively select Outlook or the other mail app as the default mail app, it works. Other apps open the default app and don't show the popup to install Apple Mail. This is an issue since users will not be aware that they need to actively set an email app in their phone settings even if it already appears to be set, and appears to be unwanted behaviour. We would love to leverage the functionality of using the phone's default mail app, but we have reproduced this issue on multiple devices and I couldn't find anything related to this issue online. Is this issue known yet? Where can I place this problem?
Replies
0
Boosts
1
Views
1.3k
Activity
Apr ’22
MailKit: access rawData for email
Hi, I am trying to build a Mail 'action' extension, and want to access the email body and parse it for specific content. Not sure how to go about converting the 'rawData' that comes in the MEMessage into something that I can read. Here's how I access the rawData property: func decideAction(for message: MEMessage, completionHandler: @escaping (MEMessageActionDecision?) -> Void) { var action: MEMessageActionDecision? = nil      if let messageData =  message.rawData {          print("messageData = \(messageData)") // what to do here??      } else {          action = MEMessageActionDecision.invokeAgainWithBody      } return action } The documentation just says this is 'unprocessed data': The content is available after MailKit downloads the message. MailKit provides the content as unprocessed data. For details about the format of the data, see RFC 2822. But I'm not sure what I'm supposed to do to go about converting the unprocessed 'data' into something that is accessible and useful to my app. Let me know if you have any thoughts or recommendations
Replies
2
Boosts
0
Views
1.7k
Activity
Apr ’22
Use Cryptotokenkit for mail deciphering
Hello, I recently implemented the Cryptotokenkit for IOS in order to sign mails (via Apple Mail app). This part went relatively smooth. I found in the Mail settings the parameter under S/MIME that enable Signing mails. Now that this step is complete I also wanted to implement mail deciphering. I tried to run some tests but I met the following message when opening encrypted mail: This message is encrypted. Install a profile containing your encryption identity to decrypt this message I'm sure I've encrypted the mail for me. and I'm also sure the identity is saved and usable inside the Cryptotokenkit I implemented. My questions are: is it possible to use the Cryptotokenkit for mail deciphering? (I assume that since I can sign mail via Cryptotokenkit I can also do mail deciphering, right ?). If the first question's answer is yes. then how do you enable the Cryptotokenkit to do mail deciphering? (I thought the option was close to the one for enabling signing mails but I only found mail encryption)
Replies
1
Boosts
1
Views
1.6k
Activity
Feb ’22
Universal Linking in Apple Mail
Hi Everyone, My boss and I are trying to choose and assimilate into a project management workflow and are currently considering some of the major PM apps available (Daylite, Basecamp, etc.). We are currently using Notion as a knowledge capture tool and project manager modeled after a program (Year Zero) created by productivity content creator August Bradley. But, one major requirement that we have and can't seem to figure out is creating a universal link to emails in Apple Mail. My boss uses Apple Mail to process his emails and would like to simply create a universal link to emails that contain action items or require later review, and send it to whatever PM software we choose, or to store in Notion. We have discovered a somewhat useful but clunky workaround in which you export an email to reminders or notes and it creates a link in the form of an icon back to the email, but the icon is not copy/paste-able into other apps like Notion, etc. Now, we are also aware that certain programs like Daylite, ToDoist, and Basecamp allow you to forward emails to your workspaces via proprietary email addresses that link to their databases, but these have varying degrees of utility as they often are very limited in the degree of control one has over where the email is sent and stored, and what information/formatting is retained. Anyway, does anyone have information about how to effectively universally link to an original email on the Apple Mail servers?
Replies
0
Boosts
0
Views
752
Activity
Jan ’22
Mail Extension for Creating Signature
Hi, I have an application which adds custom signature to Signature tab of the Mail Preference window based on the inputs entered (first name , last name , Designation,Phone , address etc etc....). I’m wondering if the new Mail Extension can be used to do signatures more ‘natively’. Can MEComposeSessionHandler be used for this? Please help. Thanks In Advance. Regards, Neetha
Replies
2
Boosts
0
Views
1.4k
Activity
Jan ’22
Setting or injecting mail signatures
Hi All Is there a way to assign an email signature through the MECompose class? This process already working for gmail accounts, signatures settings can be set from an api provided by google. For outlook there is an AddIn that supports injecting a signature upon composing a mail. Now that extensions have come up for monterey, I wonder if they provided a way to do it for the mac mail app as well through the Mail Extension service. An example of what I want (to be able to do either of this 2 options) after pressing the extension (better solution to do it automatically just by this extension to be installed): Set a new signature name, for example 'Work' if it doesn't exist and fetch a signature from a REST API and edit it there. Upon composing new mail fetch a signature through REST API and set/replace the current signature with the one returned. Is it possible with the new Mail Extension package? It would also be nice for a short snippet of how to start with this. Regards, Shlomi
Replies
0
Boosts
0
Views
570
Activity
Dec ’21
MailKit API Documentation
Does any have anyone have documentation on the usage related to the forMessageContext and messageContext parameters and for the methods below? This is undocumented while public making it an unusable API. func extensionViewController(messageContext: Data) -> MEExtensionViewController? func primaryActionClicked(forMessageContext context: Data) async -> MEExtensionViewController? The APIs are located here but lack any kind of proper documentation and examples https://developer.apple.com/documentation/mailkit/memessagesecurityhandler/3882908-extensionviewcontroller
Replies
0
Boosts
0
Views
981
Activity
Nov ’21