Showing 1 changed files with 3 additions and 3 deletions
+3 -3
action/action
... ...
@@ -30,14 +30,14 @@ if (-r $cfg::config{notification}->{flag}) {
30 30
             $cfg::config{test}->{address} = $1;
31 31
         }
32 32
         elsif (/^intro:([[:alnum:]]+)/) {
33
-            $cfg::config{test}->{intro} = $cfg::config{notification}->{intro_default_path} . $1 . $cfg::config{notification}->{intro_suffix};
33
+            $cfg::config{test}->{intro} = $1;
34 34
         }
35 35
     }
36 36
     close FLAG;
37
-    if (exists $cfg::config{test}->{address} and exists $cfg::config{test}->{intro} and -r $cfg::config{test}->{intro}) {
37
+    if (exists $cfg::config{test}->{address} and exists $cfg::config{test}->{intro}) {
38 38
         delete $cfg::config{notification}->{to};
39 39
         $cfg::config{notification}->{to}->{test}->{address} = $cfg::config{test}->{address};
40
-        $cfg::config{notification}->{to}->{test}->{intro} = $cfg::config{test}->{intro};
40
+        $cfg::config{notification}->{to}->{test}->{intro} = '@' . $cfg::config{test}->{intro};
41 41
         $cfg::config{notification}->{to}->{test}->{outro} = "pour test";
42 42
         $cfg::config{notification}->{to}->{test}->{subject} = "test de l'envoi des actions de la section";
43 43
     }