mirror of https://github.com/M66B/FairEmail.git
Added PayPal recognition
This commit is contained in:
parent
94a0f428cf
commit
429946977b
|
@ -2010,6 +2010,10 @@ public class MessageHelper {
|
|||
if (!TextUtils.isEmpty(icontact))
|
||||
return "icontact";
|
||||
|
||||
String paypal = imessage.getHeader("X-Email-Type-Id", null);
|
||||
if (!TextUtils.isEmpty(paypal))
|
||||
return "paypal";
|
||||
|
||||
String xmailer = imessage.getHeader("X-Mailer", null);
|
||||
if (!TextUtils.isEmpty(xmailer)) {
|
||||
if (xmailer.contains("iPhone Mail"))
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="32dp"
|
||||
android:height="32dp"
|
||||
android:viewportWidth="32"
|
||||
android:viewportHeight="32">
|
||||
<group
|
||||
android:translateX="3"
|
||||
android:translateY="1">
|
||||
<path
|
||||
android:fillColor="#179BD7"
|
||||
android:pathData="M23.048,7.667L23.048,7.667L23.048,7.667c-0.028,0.179 -0.06,0.362 -0.096,0.55c-1.237,6.351 -5.469,8.545 -10.874,8.545H9.326c-0.661,0 -1.218,0.48 -1.321,1.132l0,0l0,0L6.596,26.83l-0.399,2.533c-0.067,0.428 0.263,0.814 0.695,0.814h4.881c0.578,0 1.069,-0.42 1.16,-0.99l0.048,-0.248l0.919,-5.832l0.059,-0.32c0.09,-0.572 0.582,-0.992 1.16,-0.992h0.73c4.729,0 8.431,-1.92 9.513,-7.476c0.452,-2.321 0.218,-4.259 -0.978,-5.622C24.022,8.286 23.573,7.945 23.048,7.667z" />
|
||||
<path
|
||||
android:fillColor="#222D65"
|
||||
android:pathData="M21.754,7.151c-0.189,-0.055 -0.384,-0.105 -0.584,-0.15c-0.201,-0.044 -0.407,-0.083 -0.619,-0.117c-0.742,-0.12 -1.555,-0.177 -2.426,-0.177h-7.352c-0.181,0 -0.353,0.041 -0.507,0.115C9.927,6.985 9.675,7.306 9.614,7.699L8.05,17.605l-0.045,0.289c0.103,-0.652 0.66,-1.132 1.321,-1.132h2.752c5.405,0 9.637,-2.195 10.874,-8.545c0.037,-0.188 0.068,-0.371 0.096,-0.55c-0.313,-0.166 -0.652,-0.308 -1.017,-0.429C21.941,7.208 21.848,7.179 21.754,7.151z" />
|
||||
<path
|
||||
android:fillColor="#253B80"
|
||||
android:pathData="M9.614,7.699c0.061,-0.393 0.313,-0.714 0.652,-0.876c0.155,-0.074 0.326,-0.115 0.507,-0.115h7.352c0.871,0 1.684,0.057 2.426,0.177c0.212,0.034 0.418,0.073 0.619,0.117c0.2,0.045 0.395,0.095 0.584,0.15c0.094,0.028 0.187,0.057 0.278,0.086c0.365,0.121 0.704,0.264 1.017,0.429c0.368,-2.347 -0.003,-3.945 -1.272,-5.392C20.378,0.682 17.853,0 14.622,0h-9.38c-0.66,0 -1.223,0.48 -1.325,1.133L0.01,25.898c-0.077,0.49 0.301,0.932 0.795,0.932h5.791l1.454,-9.225L9.614,7.699z" />
|
||||
</group>
|
||||
</vector>
|
|
@ -931,7 +931,7 @@
|
|||
app:constraint_referenced_ids="
|
||||
infra_awsses,infra_elastic,infra_gmail,infra_icloud,infra_icontact,
|
||||
infra_mailchimp,infra_mailgun,infra_mailjet,infra_mandrill,
|
||||
infra_netcore,infra_outlook,infra_phpmailer,infra_postmark,
|
||||
infra_netcore,infra_outlook,infra_phpmailer,infra_paypal,infra_postmark,
|
||||
infra_salesforce,infra_sendgrid,infra_sendinblue,infra_sparkpost,
|
||||
infra_yahoo,infra_zeptomail,infra_zoho"
|
||||
app:flow_horizontalBias="0"
|
||||
|
@ -1042,6 +1042,15 @@
|
|||
app:srcCompat="@drawable/infra_outlook"
|
||||
tools:ignore="MissingConstraints" />
|
||||
|
||||
<eu.faircode.email.FixedImageView
|
||||
android:id="@+id/infra_paypal"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:contentDescription="@string/infra_paypal"
|
||||
android:tooltipText="@string/infra_paypal"
|
||||
app:srcCompat="@drawable/infra_paypal"
|
||||
tools:ignore="MissingConstraints" />
|
||||
|
||||
<eu.faircode.email.FixedImageView
|
||||
android:id="@+id/infra_phpmailer"
|
||||
android:layout_width="24dp"
|
||||
|
|
|
@ -1848,6 +1848,7 @@
|
|||
<string name="infra_mandrill" translatable="false">Mandrill</string>
|
||||
<string name="infra_netcore" translatable="false">Pepipost/netcore</string>
|
||||
<string name="infra_outlook" translatable="false">Outlook/Office 365</string>
|
||||
<string name="infra_paypal" translatable="false">PayPal</string>
|
||||
<string name="infra_phpmailer" translatable="false">PHPMailer</string>
|
||||
<string name="infra_postmark" translatable="false">Postmark</string>
|
||||
<string name="infra_salesforce" translatable="false">Salesforce</string>
|
||||
|
|
Loading…
Reference in New Issue