Communauté Edissyum
    • Catégories
    • Non lus
    • Récent
    • Mots-clés
    • Populaire
    • Utilisateurs
    • Admin
    • S'inscrire
    • Se connecter
    1. Accueil
    2. thomas_aube
    T
    Hors-ligne
    • Profil
    • Abonnements 0
    • Abonnés 0
    • Sujets 1
    • Messages 4
    • Groupes 0

    thomas_aube

    @thomas_aube

    0
    Réputation
    1
    Vues
    4
    Messages
    0
    Abonnés
    0
    Abonnements
    Inscrit
    Dernière connexion

    thomas_aube Se désabonner S'abonner

    Derniers messages publiés par thomas_aube

    • RE: Récupération PDF Mail

      "Bonjour,

      voici les logs suite à un test  :

      root@debian11:/var/www/html/opencaptureforinvoices/bin/data/MailCollect# cat MAIL_1/20220814/BATCH_20220814_131240776077_6bcofh6p/20220814_131240776077.log
      [Open-Capture ] [launch_worker_mail.py line 133] 14-08-2022 13:12:40 INFO Start following batch : BATCH_20220814_131240776077_6bcofh6p
      [Open-Capture ] [launch_worker_mail.py line 134] 14-08-2022 13:12:40 INFO Action after processing e-mail is : move
      [Open-Capture ] [launch_worker_mail.py line 135] 14-08-2022 13:12:40 INFO Number of e-mail to process : 5
      [Open-Capture ] [launch_worker_mail.py line 142] 14-08-2022 13:12:40 INFO Start to process only attachments
      [Open-Capture ] [launch_worker_mail.py line 143] 14-08-2022 13:12:40 INFO Process e-mail n°1/5
      [Open-Capture ] [launch_worker_mail.py line 145] 14-08-2022 13:12:40 INFO Found 5 attachments
      [Open-Capture ] [launch_worker_mail.py line 190] 14-08-2022 13:12:40 INFO Attachment n°1 is not a PDF file
      [Open-Capture ] [launch_worker_mail.py line 190] 14-08-2022 13:12:40 INFO Attachment n°2 is not a PDF file
      [Open-Capture ] [launch_worker_mail.py line 190] 14-08-2022 13:12:40 INFO Attachment n°3 is not a PDF file
      [Open-Capture ] [launch_worker_mail.py line 190] 14-08-2022 13:12:40 INFO Attachment n°4 is not a PDF file
      [Open-Capture ] [launch_worker_mail.py line 190] 14-08-2022 13:12:40 INFO Attachment n°5 is not a PDF file
      [Open-Capture ] [launch_worker_mail.py line 199] 14-08-2022 13:12:40 INFO Move mail into archive folder : Lu
      [Open-Capture ] [launch_worker_mail.py line 142] 14-08-2022 13:12:41 INFO Start to process only attachments
      [Open-Capture ] [launch_worker_mail.py line 143] 14-08-2022 13:12:41 INFO Process e-mail n°2/5
      [Open-Capture ] [launch_worker_mail.py line 145] 14-08-2022 13:12:41 INFO Found 5 attachments
      [Open-Capture ] [launch_worker_mail.py line 190] 14-08-2022 13:12:41 INFO Attachment n°1 is not a PDF file
      [Open-Capture ] [launch_worker_mail.py line 190] 14-08-2022 13:12:41 INFO Attachment n°2 is not a PDF file
      [Open-Capture ] [launch_worker_mail.py line 190] 14-08-2022 13:12:41 INFO Attachment n°3 is not a PDF file
      [Open-Capture ] [launch_worker_mail.py line 190] 14-08-2022 13:12:41 INFO Attachment n°4 is not a PDF file
      [Open-Capture ] [launch_worker_mail.py line 190] 14-08-2022 13:12:41 INFO Attachment n°5 is not a PDF file
      [Open-Capture ] [launch_worker_mail.py line 199] 14-08-2022 13:12:41 INFO Move mail into archive folder : Lu
      [Open-Capture ] [launch_worker_mail.py line 142] 14-08-2022 13:12:42 INFO Start to process only attachments
      [Open-Capture ] [launch_worker_mail.py line 143] 14-08-2022 13:12:42 INFO Process e-mail n°3/5
      [Open-Capture ] [launch_worker_mail.py line 145] 14-08-2022 13:12:42 INFO Found 5 attachments
      [Open-Capture ] [launch_worker_mail.py line 190] 14-08-2022 13:12:42 INFO Attachment n°1 is not a PDF file
      [Open-Capture ] [launch_worker_mail.py line 190] 14-08-2022 13:12:42 INFO Attachment n°2 is not a PDF file
      [Open-Capture ] [launch_worker_mail.py line 190] 14-08-2022 13:12:42 INFO Attachment n°3 is not a PDF file
      [Open-Capture ] [launch_worker_mail.py line 190] 14-08-2022 13:12:42 INFO Attachment n°4 is not a PDF file
      [Open-Capture ] [launch_worker_mail.py line 190] 14-08-2022 13:12:42 INFO Attachment n°5 is not a PDF file
      [Open-Capture ] [launch_worker_mail.py line 199] 14-08-2022 13:12:42 INFO Move mail into archive folder : Lu
      [Open-Capture ] [launch_worker_mail.py line 142] 14-08-2022 13:12:42 INFO Start to process only attachments
      [Open-Capture ] [launch_worker_mail.py line 143] 14-08-2022 13:12:42 INFO Process e-mail n°4/5
      [Open-Capture ] [launch_worker_mail.py line 145] 14-08-2022 13:12:42 INFO Found 6 attachments
      [Open-Capture ] [launch_worker_mail.py line 190] 14-08-2022 13:12:42 INFO Attachment n°1 is not a PDF file
      [Open-Capture ] [launch_worker_mail.py line 190] 14-08-2022 13:12:42 INFO Attachment n°2 is not a PDF file
      [Open-Capture ] [launch_worker_mail.py line 190] 14-08-2022 13:12:42 INFO Attachment n°3 is not a PDF file
      [Open-Capture ] [launch_worker_mail.py line 190] 14-08-2022 13:12:42 INFO Attachment n°4 is not a PDF file
      [Open-Capture ] [launch_worker_mail.py line 190] 14-08-2022 13:12:42 INFO Attachment n°5 is not a PDF file
      [Open-Capture ] [launch_worker_mail.py line 199] 14-08-2022 13:12:42 INFO Move mail into archive folder : Lu
      [Open-Capture ] [launch_worker_mail.py line 142] 14-08-2022 13:12:43 INFO Start to process only attachments
      [Open-Capture ] [launch_worker_mail.py line 143] 14-08-2022 13:12:43 INFO Process e-mail n°5/5
      [Open-Capture ] [launch_worker_mail.py line 193] 14-08-2022 13:12:43 INFO No attachments found
      [Open-Capture ] [launch_worker_mail.py line 199] 14-08-2022 13:12:43 INFO Move mail into archive folder : Lu

      Le mail possède bien un PDF et est bien retransféré vers le bon dossier, hors je ne vois aucun document apparaitre en HTTP

      Cordialement

      "

      posté dans Paramétrage *(Open-Capture)*
      T
      thomas_aube
    • RE: Récupération PDF Mail

      Bonjour,

      Je viens de modifier les dossiers en question et le processus c’est bien terminé (j’ai mis en place 3 mail dans ce dossier et les 3 mails ont été traité et rangé dans le bon dossier).

      Maintenant, j’ai un souci de récupération des PDF, le processus se termine bien mais j’ai ce genre de message qui m’est retourné :

      root@debian11:/var/www/html/opencaptureforinvoices/bin/scripts# ./launch_MAIL.sh

      Start process : MAIL_1
      Batch name : bin/data/MailCollect/MAIL_1/20220730/BATCH_20220730_131907655978_mafda_al
      Batch error name : bin/data/MailCollect/_ERROR//MAIL_1/20220730/BATCH_20220730_131907655978_mafda_al

      les PDF sont bien sur var/www/html/opencaptureforinvoices/bin/data/MailCollect/MAIL_1/20220730/BATCH_20220730_131907655978_mafda_al/attachments mais je ne vois rien sur le l’accueil de open capture splitter.

      Est ce normal ?

      Merci d’avance

      CDLT

      posté dans Paramétrage *(Open-Capture)*
      T
      thomas_aube
    • RE: Récupération PDF Mail

      Bonjour,

      Merci pour votre retour 🙂

      Oui, j’ai bien checker avec le script python check_folders.py et j’ai des résultat, je vous les joint a ce mail

      Je vous joint aussi le screen de ma config mail

      Merci d’avance pour votre réponse

      Cordialement

      posté dans Paramétrage *(Open-Capture)*
      T
      thomas_aube
    • Récupération PDF Mail

      "Bonjour,

      Suite à l’installation de Open Capture, je n’arrive pas à collecter les pdf dans les mail non lu (je vois bien lors du lancement du script ./launch_MAIL.sh que le mail redevient en lu mais j’ai des erreurs et je ne voit rien sur l’interface) voici le retour du script :

      Traceback (most recent call last):
      File “”/usr/lib/python3.9/imaplib.py"“, line 1047, in _command_complete
      typ, data = self._get_tagged_response(tag, expect_bye=logout)
      File “”/usr/lib/python3.9/imaplib.py”“, line 1165, in _get_tagged_response
      self._check_bye()
      File “”/usr/lib/python3.9/imaplib.py”", line 961, in _check_bye
      raise self.abort(bye[-1].decode(self._encoding, ‘replace’))
      imaplib.abort: System Error

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
      File “”/var/www/html/opencaptureforinvoices//launch_worker_mail.py"“, line 117, in
      emails = Mail.retrieve_message()
      File “”/var/www/html/opencaptureforinvoices/src/backend/classes/Mail.py”“, line 86, in retrieve_message
      for mail in self.conn.fetch():
      File “”/usr/local/lib/python3.9/dist-packages/imap_tools/mailbox.py”“, line 159, in fetch
      for fetch_item in (self._fetch_in_bulk if bulk else self._fetch_by_one)(nums, message_parts, reverse): # noqa
      File “”/usr/local/lib/python3.9/dist-packages/imap_tools/mailbox.py”“, line 125, in _fetch_by_one
      fetch_result = self.client.fetch(message_num, message_parts)
      File “”/usr/lib/python3.9/imaplib.py”“, line 548, in fetch
      typ, dat = self._simple_command(name, message_set, message_parts)
      File “”/usr/lib/python3.9/imaplib.py”“, line 1230, in _simple_command
      return self._command_complete(name, self._command(name, *args))
      File “”/usr/lib/python3.9/imaplib.py”", line 1049, in _command_complete
      raise self.abort(‘command: %s => %s’ % (name, val))
      imaplib.abort: command: FETCH => System Error

      Pouvez-vous m’aider svp ?

      Merci

      CDLT

      "

      posté dans Paramétrage *(Open-Capture)*
      T
      thomas_aube