X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=cards%2Fexport_card.sh;fp=cards%2Fexport_card.sh;h=0918032c6019fc8da3d3be9a0711b539fdb01365;hp=bd73eb2978bb030995bd9e7fd07c4f3b75b9deda;hb=c69f5c4cdef7541ebef3938d9f9009b1494bf4f3;hpb=047067c2f45ea5ba54ad972a19d9682b36dfd347 diff --git a/cards/export_card.sh b/cards/export_card.sh index bd73eb2..0918032 100755 --- a/cards/export_card.sh +++ b/cards/export_card.sh @@ -20,5 +20,9 @@ card="$(GET card |PATH)" cardfile="$_DATA/vcard/${card##*/}" +. $_EXEC/pdiread.sh . $_EXEC/cgilite/file.sh + +printf 'Content-Disposition: inline; filename="%s.vcf"\r\n' "$(pdi_value "$(pdi_load "$cardfile")" FN)" + FILE "$cardfile" "text/vcard; charset=utf-8"