Changeset 54 for trunk/UContact.pas


Ignore:
Timestamp:
Dec 8, 2021, 2:29:29 PM (3 years ago)
Author:
chronos
Message:
  • Added: Support for PNG encoded contact photos.
  • Added: Clone button on contact fields toolbar.
  • Added: Show open file dialog on photo click.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UContact.pas

    r53 r54  
    333333  if Attributes.IndexOfName('ENCODING') <> -1 then begin
    334334    Encoding := Attributes.Values['ENCODING'];
     335    if (Encoding = 'B') or (Encoding = 'b') then Encoding := 'BASE64';
     336    if (Encoding = 'Q') or (Encoding = 'q') then Encoding := 'QUOTED-PRINTABLE';
    335337    if (Encoding = 'QUOTED-PRINTABLE') or (Encoding = 'BASE64') then begin
    336338      Value := GetDecodedValue;
    337339      Attributes.Delete(Attributes.IndexOfName('ENCODING'));
    338     end;
     340    end else
    339341  end else Encoding := '';
    340342
     
    347349    if Attributes.Names[I] = 'TYPE' then
    348350      Attributes.Strings[I] := Attributes.Values['TYPE'];
     351    if Attributes.Names[I] = 'type' then
     352      Attributes.Strings[I] := Attributes.Values['type'];
    349353  end;
    350354end;
Note: See TracChangeset for help on using the changeset viewer.