Carnet d'adresse WAB sous linux

tortillard -  
 Laurent -
Bonjour,

J'ai longtemps cherche (non... pas vraiment) sur internet comment récupérer le carnet d'adresse WAB de windows sous linux.
Or, j'ai remarquer que BEAUCOUP de personne cherchent comment faire, et BEAUCOUP conseil de régénérer un carnet d'adresse au format CVS sous windows. Car d'après plusieurs personnes WAB est crypter, et personne pourrais le décrypter... :(

Mais, j'ai trouver ce forum : http://forum.ubuntu-fr.org/viewtopic.php?id=1628
Et cette personne cherche a récupérer son carnet d'adresse (comme moi), et une autre personne a donner ce lien : https://www.hugedomains.com/domain_profile.cfm?d=tec-man&e=com

J'ai téléchargé le fichier source http://lilith.tec-man.com/libwab/files/libwab-060901.tar.gz et je l'ai décompresser dans la dossier utilisateur. /home/utilisateur/libwab/...

En console, j'ai d'abords taper en utilisateur "make" mais il n'y avais pas de réponse.
J'ai logué le SU, et j'ai retaper make, pour le même message :(.
Puis je me suis souvenu de ce que j'ai quelque fois taper pour les fichiers sources... ./configure et le dossier a complètement changer de fichiers etc... Puis pour finir, j'ai taper "make", et là, le fichier executable s'est crée :)
wabread n'était pas compris comme commande... :( alors je ne sais pas comment l'installer... Mais il marche !
J'ai pu lire mon WAB et mes adresse dans la console :) mais je ne sais pas comment faire une redirection vers un fichier (pas encore). >>c:\...\adresse.txt ne marche pas sous linux XD

Bon, bref, je récris la manip de console pour vous :

$ su
Mot de passe :

# make
make: *** Pas de cibles spécifiées et aucun makefile n'a été trouvé. Arrêt.

# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... missing
checking for working autoconf... missing
checking for working automake-1.4... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... /bin/sh: ./config.rpath: No such file or directory
done
checking for iconv... yes
checking for iconv declaration...
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for unistd.h... (cached) yes
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for vprintf... yes
checking for _doprnt... no
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for strchr... yes
checking for strerror... yes
checking for strstr... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing default-1 commands

# make
gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -c cencode.c
gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -c libwab.c
gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -c pstwabids.c
gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -c tools.c
gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -c uerr.c
gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2 -c wabread.c
gcc  -g -O2  -o wabread  cencode.o libwab.o pstwabids.o tools.o uerr.o wabread.o


Ensuite, copier votre carnet d'adresse.WAB dans le dossier de LIBWAB, (ou l'on a travailler depuis tout à l'heure)
Il suffit maintenant de taper dans la console et dans le dossier de libwab,
./wabread carnetdadresse.wab


Et l'on obtient le résultat dans la console sous ce format :
# adresse@fai.fr
dn: cn=adresse@fai.fr
cn: adresse@fai.fr
mail: adresse@fai.fr

# adresse.2@fai.fr
dn: cn=adresse@fai.fr
cn: adresse@fai.fr
mail: adresse@fai.fr


Tout ce qui est en italique, c'est ce que j'ai modifier (pour ne pas montrer les adresse mail de mes contacts, ainsi que pour le nom de mon carnet d'adresse)

Maintenant, que je vous en ai fait profiter, j'aimerai que vous m'appreniez comment on l'installe dans le système (pour je ne n'ai plus qu'a taper la commande sans son emplacement)
Ainsi que comment rediriger le résultat. :) Merci

J'espère que ça sera utile pour certain, Je vous donne ça, vous pouvez éclairer mon texte, modifier et copier, tant qu'il reste bon.
@+
A voir également:

6 réponses

Laurent
 
Oui, enfin, quand on a pas windows sous la main, ça peut être bien pratique d'avoir un soft sous linux :)
1
tortillard
 
Bon, ba j'ai réussi a rediriger le résultat en fichier texte !
# ./wabread carnetdadresses.wab 1>adresse.txt
# ./wabread carnetdadresse.wab >adresse.txt


Mais je ne connais pas la différence entre > et 1> en tout cas, avec 2> ça marche pas, même si il était écris là entcamarche.net/forum/affich-1554309-rediriger-le-resultats-de-compil-1-fichier
0
tortillard
 
:D je viens de l'installer !!

Il suffisait de taper dans son dossier:
# make install
make[1]: entrant dans le répertoire « /home/utilisateur/libwab/libwab-060901 »
/bin/sh ./mkinstalldirs /usr/local/bin
  /usr/bin/install -c  wabread /usr/local/bin/wabread
make[1]: Rien à faire pour « install-data-am ».
make[1]: quittant le répertoire « /home/utilisateur/libwab/libwab-060901 »

# wabread
Use:  wabread [options] <filename.wab>

  Options:
   -d #        set debugging (logical or 1,2,3,4...)
   -h          heuristic record dump: attempt to recover data
                 from a broken .wab file and/or deleted records.
   -u          deprecated enable unicode flag (is always on now).


:) VOILA VOILA !! Tout est installé, et prêt !
La syntaxe après tout ça :
$ wabread ./Bureau/Administrateur.wab


Bonne journée !
0
tortillard
 
Je trouve ça bête que personne n'écris un mot, ni un merci, ni même bien joué...
0
Laurent
 
Tout ça correspond au b-a-ba de la l'installation à partir de sources sous linux, mais bien joué quand même :)
Comme quoi :
google est toujours ton ami (même s'il est un peu envahissant ces derniers temps)
et RTFM, ça reste quelque chose d'instructif :)

et au passage, merci pour le lien, je m'en suis servi :)
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
doud
 
Une autre solution aussi manuelement
importer le .wab dans outlook sous windows
puis dans Outils > carnet d'adresse
selectionner tout les contacts a exporter
et dans Fichier > Exporter > Autre carnet d'adresse
selectionner Fichier separer par des points virgules

il me semble aussi que si l'on install thunderbird
il peut importer les adresses depuis outlook, ce
qui permet ensuite d'exporter le carnet d'adresse
dans un bon format, mais j'ai pas tester
0
jeanbi Messages postés 15119 Date d'inscription   Statut Contributeur Dernière intervention   2 184
 
bonjour, , il suffit d'exporter sous windows et ootlock en txt ou cvs et le recupere sous thunderbird importer ....., pas besoin de bricoler.
a+
-1