Hello,

Using latest gromox-2.17.88.da6bc72-lp154.28.1.x86_64, I cannot import a vcard file into the webmail.

This is the error message I get in the webmail

This is what I get in gromox-zcore journal:

nov. 21 19:31:49 email zcore[2337]: oxvcard_import:207 returned false

I have created a minimalistic test vcard file which also fails to import:

BEGIN:VCARD
VERSION:2.1
FN:TEST
EMAIL;PREF:me@example.tld
END:VCARD

Trying another card with V3 works well:

BEGIN:VCARD
VERSION:3.0
FN;CHARSET=UTF-8:James T Kirk
N;CHARSET=UTF-8:Kirk;James;T;;
EMAIL;CHARSET=UTF-8;type=HOME,INTERNET:jkirk@starfleet.org
ORG;CHARSET=UTF-8:Starfleet
REV:2023-11-21T18:35:37.888Z
END:VCARD

V4 versions also seem to work well

BEGIN:VCARD
VERSION:4.0
N:Gump;Forrest;;;
TITLE:Shrimp Man
ORG:Bubba Gump Shrimp Co.
TEL;TYPE=WORK,VOICE:+49 170 5 25 25 25
EMAIL;TYPE=WORK:forrestgump@example.com
URL;TYPE=WORK:https://www.linkedin.com/in/forrestgump
ADR;TYPE=WORK:42 Plantation St.;Baytown;30314;United States of America
TEL;TYPE=CELL,VOICE:+19177777777
EMAIL;TYPE=HOME:forrestgump@examplehome.com
ADR;TYPE=HOME:600 Main St.;Brooklynn;13458;USA
BDAY:12/03/1965
NOTE:This works!!!!!!!!
END:VCARD

So I'm not complaining that the old format fails, I'm just suggesting that there should be a proper error message like Please use vCard format V3 or later.

Thanks 😉

@mwilliams sorry for the bad tagging 😉

I've pushed investigation a bit further.
I can import single vCards v3.0 or v4.0.
But multiple vCards in a single vcf file may fail unless the file size is smaller than roughly 80KB.
When trying to import bigger files, I have no error messages in gromox-zcore (gromox-2.17.88.da6bc72-lp154.28.1.x86_64).
I've imported multiple smaller files of course.

I initially thought that maybe nginx maybe limiting upload size, but as I can upload attachments, that makes no sense.

Also, accents and Umlauts aren't represented right in the imports, regardless if I import an UTF-8 or a CP1250 encoded vCard.

Shall I make two git issues at gromox or grommunio-web for each problem perhaps ?

PS: I upgraded an CSV2vCard converter that handles multiple scenarios and mappings. Perhaps that could be useful for Grommunio somewhere in a wiki or so; https://github.com/netinvent/csv2vcard

Best regards.

I've pushed my investigation a bit further.
Actually, it's not about the vCard file size, but about the number of vCards in a vCard file.

And, to use the Grommunio webmail, there has to be no more than..drum roll 496 vCards in one file.

I have no idea why that's the exact number, but it works for me. I can import all files having 496 or less contacts.
If I happen to import a file with 497 contacts, I get:

If I happen to import a file with more than 497 contacts, I get the above error message.

I hope this might help the diagnosis 😉

Test done with grommunio Web 3.6.1.9110feff-lp154.5.2, Gromox 2.17.126.ac09d2f

PS: I've updated my csv2vcard tool with --max-vcards-per-file to make my imports work.


    vcard3 was published 1998.
    But I can smell what's up. Outlook still emits vcard 2.1 in 2023 🤦
    This will take some time.

    @jengelh Tried to import both vCard v3.0 and vCard 4.0 formats, with all the caveats cited above.
    vCard 2.1 isn't supported by Grommunio webmail at all.

    ozy changed the title to Import vcards fail with various reasons .

    ozy If I happen to import a file with more than 497 contacts, I get the above error message.

    Then that's upload size because 497 is a rather awkward number for a limit.

    • ozy replied to this.
      5 days later

      jengelh That's what I initially thought...
      But then you can upload attachments which count in MBs, so that's probably not the reason.

      Limits seem fine from /usr/share/grommunio-common/nginx/locations.d/grommunio-web.conf

        client_max_body_size 50M;
      
        include fastcgi_params;
        fastcgi_param REMOTE_USER "";
        fastcgi_param PHP_VALUE "
          post_max_size=31M
          upload_max_filesize=30M
          max_execution_time=3660
          session.cookie_secure=on
          session.cookie_httponly=on
          session.cookie_samesite=Strict
          allow_url_include=Off
          session.sid_bits_per_character=6
          zlib.output_compression=Off
          session.save_path=/var/lib/grommunio-web/session
          zend.exception_ignore_args=On
          zend.exception_string_param_max_len=0
        ";
      4 months later

      Hi,
      Look here if you face some problem Importing a vCard file then you can use the VCARD IMPORTER EXPORTER TOOL to transfer the VCF file to the phone's storage location. This is an error-free solution for all users who don't have any technical skills. If the contact list details are kept in XLS format, you must first convert Excel to VCF format before repeating the previous step. for further users can easily install this tool on Windows operating systems and get a free trial version of this tool.

      Use the ToolsBaer Address Book Manager Tool if you are facing a problem in importing vcard. This tool will not Import vCards fail for various reasons because it is easy to convert VCF files into PST, MSG, CSV, and NSF formats. This computer program has advanced features and functions that make the conversion process successful. Some users do not need to download any further program to break a single VCF file. The software also provides a free demo version to all users so that they can learn more features and functions of the software without paying a single money.

      © 2020-2024 grommunio GmbH. All rights reserved. | https://grommunio.com | Data Protection | Legal notice