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 ErrorDuring 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 ErrorPouvez-vous m’aider svp ?
Merci
CDLT
"
-
Bonjour,
Avez-vous déjà testé la connexion à votre serveur mail en utilisant le script python check_folders.py ? (https://app.gitbook.com/s/-Mi5WgnLF5b40vkqQsRV/francais/installation/capture-de-mail)
Afin de voir si les erreurs sont plus parlantes. Pouvez-vous nous fournir une capture d’écran de votre configuration, en cachant bien mail/password ?
Merci d’avance
-
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
-
Bonjour,
Pouvez-vous tenter de capturer un autre dossier de votre boite mail svp ? Afin de voir si ce n’est pas un email en particulier qui fait bloquer le processus
-
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_alles 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
-
"Bonjour,
Dans le dossier du mail collect vous avez un fichier de log, aucune erreur n’est présente dedans ?
De même, dans le fichier de configuration mail.ini avez-vous bien passé à ““True”” le paramètre ““isSplitter”” ? Si non, les documents partent dans le module Verifier"
-
"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 : LuLe 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
"
-
Bonjour,
L’application ne voit pas de fichier PDF pour les 5 mails présents dans le dossier. Pouvez-vous m’envoyer une capture d’écran des PJ de ce mail svp (Pas les documents mais juste la liste des PJ) ?