You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2008-10-03 10:43:01

stournier
Member
Registered: 2005-03-08
Posts: 229

passerelles mail automatiques, et ajout du contenu dans le descriptif

Bonjour, j'ai regardé la doc sur le cron, j'ai fait un script /usr/bin/php /home/www/glpi/front/mailgate.php &>/dev/null le soucis c'est ce que ca ne marche pas vu il faut cliquer sur le bouton recuperation mail, et je ne vois pas comment faire pour le faire avec un script.

De plus lorsque la passerelles ajoute le mail, le ticket est bien crée, mais le contenu du mail n'est pas ajouté dans le descriptif du ticket, comment faire pour que cela soit ajouté.

Merci

Offline

#2 2008-10-03 11:56:21

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: passerelles mail automatiques, et ajout du contenu dans le descriptif

il ne faut pas appeler mailgate.php mais cron.php

le contenu devrait être ajouté à la création du ticket.
Il faudrait dans un premier temps nous donner votre config exacte


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#3 2008-10-03 11:59:44

stournier
Member
Registered: 2005-03-08
Posts: 229

Re: passerelles mail automatiques, et ajout du contenu dans le descriptif

bonjour serveur linux fedora core 4, GLPI 0.72.20.

la passerelles de mails va chercher les mails en IMAP sur le serveur mail.
je ne sais pas ce qu'il dire de plus.

Merci

Offline

#4 2008-10-03 13:07:36

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: passerelles mail automatiques, et ajout du contenu dans le descriptif

http://glpi-project.org/forum/viewtopic.php?id=128

vous pouvez vous mettre en mode debug + trace des les fichiers pour voir si vous obtenez plus d'informations


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#5 2008-10-03 13:32:27

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: passerelles mail automatiques, et ajout du contenu dans le descriptif

Fedora => Essaies les RPM, tout (y compris le cron régulier) est auto-configuré à l'installation.

++


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#6 2008-10-06 10:57:57

stournier
Member
Registered: 2005-03-08
Posts: 229

Re: passerelles mail automatiques, et ajout du contenu dans le descriptif

il recupère bien les mails, mais il met pas le contenu du mail en descrptif toujours. voici la conf :

Afin d'en faciliter l'exploitation, nous vous demandons de :


GLPI Version 0.72.10 vers 0.72.20

Plateforme : Red Har Fedora Core 4

Installé suivant la procédure normal du fichier install avec un tar zxvf du fichier puis copie des fichiers dans le répertoire /home/www/glpi/

    * Les versions  apache 2, php 5 , mysql (et leurs configurations : memory limit etc...)  ....

    * Navigateur utilisé Firefox 3.0.3

     * Pour les notifications par mail ou les passerelles mails : le détail complet des serveurs et clients utilisés : Serveur mail : zimbra 5.0.6. client IMAP depuis glpoi.

    * La configuration de GLPI : authentification externe pas encore d'authentification externe par AD.
passerelles mails imap, no cert, no tls.     {webmail.prestades.com/imap/novalidate-cert/notls} .

je poserai les logs apres.

Offline

#7 2008-10-16 16:57:33

stournier
Member
Registered: 2005-03-08
Posts: 229

Re: passerelles mail automatiques, et ajout du contenu dans le descriptif

voila ce que j'ai en debug apres avoir appuiyer sur le bouton recuperer mails :
SQL REQUEST : 3 Queries took 0.003s
N°     Queries    Time    Errors
1    SELECT *
FROM glpi_mailgate
WHERE (ID = 1)    0.001    
2    SELECT count(*) AS cpt
FROM glpi_entities
WHERE ( glpi_entities.ID IN (0) )     0.001    
3    SELECT *
FROM glpi_entities
WHERE 1 AND ( glpi_entities.ID IN (0) )
ORDER BY completename     0.001    
POST VARIABLE
KEY    =>    VALUE
searchText    =>    *
value    =>    0
table    =>    glpi_entities
myname    =>    FK_entities
limit    =>    100
comments    =>    1
rand    =>    1622107008
entity_restrict    =>   
KEY    =>    VALUE
0    =>    0
update_item    =>   
used    =>   
GET VARIABLE
KEY    =>    VALUE
ID    =>    1
SESSION VARIABLE
KEY    =>    VALUE
glpi_currenttime    =>    2008-10-16 16:53:41
glpiID    =>    8
glpiname    =>    Seb
glpirealname    =>    Sebastien Tournier
glpifirstname    =>   
glpilanguage    =>    fr_FR
glpidefault_entity    =>    0
glpitracking_order    =>    0
glpiauthorisation    =>    1
glpiextauth    =>    0
glpiauth_method    =>    1
glpisearchcount    =>   
KEY    =>    VALUE
35    =>    1
glpisearchcount2    =>   
KEY    =>    VALUE
35    =>    0
glpiroot    =>   
glpilist_limit    =>    150
glpicrontimer    =>    1224168627
glpiprofiles    =>   
KEY    =>    VALUE
4    =>   
KEY    =>    VALUE
ID    =>    4
name    =>    super-admin
interface    =>    central
is_default    =>    0
computer    =>    w
monitor    =>    w
software    =>    w
networking    =>    w
printer    =>    w
peripheral    =>    w
cartridge    =>    w
consumable    =>    w
phone    =>    w
notes    =>    w
contact_enterprise    =>    w
document    =>    w
contract_infocom    =>    w
knowbase    =>    w
faq    =>    w
reservation_helpdesk    =>    1
reservation_central    =>    w
reports    =>    r
ocsng    =>    w
view_ocsng    =>    r
sync_ocsng    =>    w
dropdown    =>    w
entity_dropdown    =>    w
device    =>    w
typedoc    =>    w
link    =>    w
config    =>    w
rule_tracking    =>    w
rule_ocs    =>    w
rule_ldap    =>    w
rule_softwarecategories    =>    w
search_config    =>    w
search_config_global    =>    w
check_update    =>    r
profile    =>    w
user    =>    w
user_auth_method    =>    w
group    =>    w
entity    =>    w
transfer    =>    w
logs    =>    r
reminder_public    =>    w
bookmark_public    =>    w
backup    =>    w
create_ticket    =>    1
delete_ticket    =>    1
comment_ticket    =>    1
comment_all_ticket    =>    1
update_ticket    =>    1
own_ticket    =>    1
steal_ticket    =>    1
assign_ticket    =>    1
show_all_ticket    =>    1
show_assign_ticket    =>    1
show_full_ticket    =>    1
observe_ticket    =>    1
update_followups    =>    1
show_planning    =>    1
show_group_planning    =>    1
show_all_planning    =>    1
statistic    =>    1
password_update    =>    1
helpdesk_hardware    =>    3
helpdesk_hardware_type    =>    8388674
show_group_ticket    =>    0
show_group_hardware    =>    0
rule_dictionnary_software    =>    w
rule_dictionnary_dropdown    =>    w
entities    =>   
KEY    =>    VALUE
6    =>   
KEY    =>    VALUE
ID    =>    0
name    =>   
completename    =>   
recursive    =>    1
glpiactiveprofile    =>   
KEY    =>    VALUE
ID    =>    4
name    =>    super-admin
interface    =>    central
is_default    =>    0
computer    =>    w
monitor    =>    w
software    =>    w
networking    =>    w
printer    =>    w
peripheral    =>    w
cartridge    =>    w
consumable    =>    w
phone    =>    w
notes    =>    w
contact_enterprise    =>    w
document    =>    w
contract_infocom    =>    w
knowbase    =>    w
faq    =>    w
reservation_helpdesk    =>    1
reservation_central    =>    w
reports    =>    r
ocsng    =>    w
view_ocsng    =>    r
sync_ocsng    =>    w
dropdown    =>    w
entity_dropdown    =>    w
device    =>    w
typedoc    =>    w
link    =>    w
config    =>    w
rule_tracking    =>    w
rule_ocs    =>    w
rule_ldap    =>    w
rule_softwarecategories    =>    w
search_config    =>    w
search_config_global    =>    w
check_update    =>    r
profile    =>    w
user    =>    w
user_auth_method    =>    w
group    =>    w
entity    =>    w
transfer    =>    w
logs    =>    r
reminder_public    =>    w
bookmark_public    =>    w
backup    =>    w
create_ticket    =>    1
delete_ticket    =>    1
comment_ticket    =>    1
comment_all_ticket    =>    1
update_ticket    =>    1
own_ticket    =>    1
steal_ticket    =>    1
assign_ticket    =>    1
show_all_ticket    =>    1
show_assign_ticket    =>    1
show_full_ticket    =>    1
observe_ticket    =>    1
update_followups    =>    1
show_planning    =>    1
show_group_planning    =>    1
show_all_planning    =>    1
statistic    =>    1
password_update    =>    1
helpdesk_hardware    =>    3
helpdesk_hardware_type    =>    8388674
show_group_ticket    =>    0
show_group_hardware    =>    0
rule_dictionnary_software    =>    w
rule_dictionnary_dropdown    =>    w
entities    =>   
KEY    =>    VALUE
6    =>   
KEY    =>    VALUE
ID    =>    0
name    =>   
completename    =>   
recursive    =>    1
glpi_entities_tree    =>   
KEY    =>    VALUE
0    =>   
KEY    =>    VALUE
0    =>   
KEY    =>    VALUE
name    =>    Entité Racine
tree    =>   
glpiactiveentities    =>   
KEY    =>    VALUE
0    =>    0
glpi_entities_ancestors    =>   
KEY    =>    VALUE
0    =>   
glpiactive_entity    =>    0
glpiactive_entity_name    =>    Entité Racine (arborescence)
glpiactive_entity_shortname    =>    Entité Racine (arborescence)
glpishowallentities    =>    1
glpigroups    =>   
KEY    =>    VALUE
0    =>    3
glpi_plugins    =>   
MESSAGE_AFTER_REDIRECT    =>   
glpi_multientitiesmode    =>    0
glpi_viewcentral    =>    my
glpimassiveactionselected    =>   
tracking    =>   
KEY    =>    VALUE
field    =>   
contains    =>   
date1    =>   
date2    =>   
only_computers    =>   
tosearch    =>    name_contents
search    =>   
assign    =>    0
assign_ent    =>    0
assign_group    =>    0
author    =>    0
group    =>    0
start    =>    0
status    =>    notold
category    =>   
priority    =>    0
type    =>    0
showfollowups    =>    0
enddate1    =>   
enddate2    =>   
datemod1    =>   
datemod2    =>   
item    =>    0
request_type    =>    0
order    =>    ASC
sort    =>    glpi_tracking.date
glpi_entities_sons    =>   
KEY    =>    VALUE
0    =>   
KEY    =>    VALUE
0    =>    0
glpi_configgen    =>    1
glpisearch    =>   
KEY    =>    VALUE
35    =>   
KEY    =>    VALUE
start    =>    0
order    =>    ASC
deleted    =>    0
distinct    =>    N
link    =>   
field    =>   
KEY    =>    VALUE
0    =>    view
contains    =>   
KEY    =>    VALUE
0    =>   
link2    =>   
field2    =>   
KEY    =>    VALUE
0    =>    view
contains2    =>   
KEY    =>    VALUE
0    =>   
type2    =>   
sort    =>    1

Offline

#8 2008-10-16 17:03:45

stournier
Member
Registered: 2005-03-08
Posts: 229

Re: passerelles mail automatiques, et ajout du contenu dans le descriptif

Re bonjour, j'ai aussi ces erreurs en mode debug lorsque je vais sur glpi.
Je ne sais pas si c'est en rapport avec l'ajout des mails dans les tickets.

Merci

PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/inc/auth.class.php at line 47
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/inc/auth.class.php at line 51
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/inc/auth.class.php at line 53
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/inc/auth.class.php at line 55
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/inc/auth.class.php at line 58
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/inc/auth.class.php at line 61
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/inc/auth.class.php at line 63
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/inc/auth.class.php at line 65
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/inc/connection.class.php at line 46
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/inc/connection.class.php at line 48
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/inc/connection.class.php at line 50
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/inc/connection.class.php at line 52
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/inc/connection.class.php at line 54
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/inc/connection.class.php at line 56
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/inc/connection.class.php at line 58
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/inc/connection.class.php at line 60
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/inc/mailing.class.php at line 48
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/inc/mailing.class.php at line 50
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/inc/mailing.class.php at line 92
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/inc/mailing.class.php at line 96
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/inc/mailing.class.php at line 100
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/inc/mailing.class.php at line 102
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/inc/mailing.class.php at line 668
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/inc/mailing.class.php at line 670
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/inc/mailing.class.php at line 997
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/inc/mailing.class.php at line 999
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/inc/mailing.class.php at line 1001
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 30
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 36
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 42
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 49
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 55
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 61
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 67
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 74
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 80
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 87
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 96
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 103
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 109
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 115
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 122
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 128
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 134
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 142
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 156
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 162
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 168
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 174
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 180
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 186
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 193
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 199
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 207
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 212
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 213
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 214
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 215
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 216
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 217
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 218
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 219
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 220
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 221
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 222
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/lib/phpmailer/class.phpmailer.php at line 223
PHP ERROR: var: Deprecated. Please use the public/private/protected modifiers in /home/www/glpi/inc/ocsng.class.php at line 41
PHP ERROR: Cannot modify header information - headers already sent by (output started at /home/www/glpi/inc/mailing.class.php:92) in /home/www/glpi/inc/display.function.php at line 57
PHP ERROR: Cannot modify header information - headers already sent by (output started at /home/www/glpi/inc/mailing.class.php:92) in /home/www/glpi/inc/display.function.php at line 1938
PHP ERROR: Cannot modify header information - headers already sent by (output started at /home/www/glpi/inc/mailing.class.php:92) in /home/www/glpi/inc/display.function.php at line 1939

Offline

#9 2008-10-16 17:13:13

stournier
Member
Registered: 2005-03-08
Posts: 229

Re: passerelles mail automatiques, et ajout du contenu dans le descriptif

Par contre je ne trouve pas les logs, il ne sont pas /var/log/message ou dans le répertoire de GLPI.
Si vous pouvez me dire ou il se trouve.
Merci

Offline

#10 2008-10-16 17:49:35

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: passerelles mail automatiques, et ajout du contenu dans le descriptif

L'erreur PHP est classique en 5.1.1 ou 5.1.2 => versions moisies.

++


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

Board footer

Powered by FluxBB