]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Create RFC2822_DATE for use in emails. Some clients fail to sort emails properly...
authorAndrew Thompson <andrewkt@aktzero.com>
Tue, 3 Aug 2010 04:51:54 +0000 (00:51 -0400)
committerBrian West <brian@freeswitch.org>
Tue, 17 Aug 2010 14:44:36 +0000 (09:44 -0500)
conf/dialplan/default.xml
conf/dialplan/public.xml
conf/notify-voicemail.tpl
conf/voicemail.tpl

index 9146e0a58970884556cd0028dbbb40792eb4db5f..2db8637500278e49fcf9d5251c8763df01ed350f 100644 (file)
        <action application="hash" data="insert/${domain_name}-spymap/${caller_id_number}/${uuid}"/>
        <action application="hash" data="insert/${domain_name}-last_dial/${caller_id_number}/${destination_number}"/>
        <action application="hash" data="insert/${domain_name}-last_dial/global/${uuid}"/>
+       <action application="set" data="RFC2822_DATE=${strftime(%a, %d %b %Y %T %z)}"/>
       </condition>
     </extension>
 
index 14e2e1a3d87156b014dd56843729b187956e73a8..b54aff9b4fade6d787a4a71148c4256e67acf74a 100644 (file)
@@ -27,6 +27,7 @@
     <extension name="outside_call" continue="true">
       <condition>
        <action application="set" data="outside_call=true"/>
+       <action application="set" data="RFC2822_DATE=${strftime(%a, %d %b %Y %T %z)}"/>
       </condition>
     </extension>
 
index 0b08dbe9662bcd6e8478ac29ad025e510c6b16ef..5defd74b3a691d8f8656f7c8bc2f4e6461811205 100644 (file)
@@ -1,4 +1,5 @@
 From: "${voicemail_caller_id_name}" <${voicemail_caller_id_number}@${voicemail_domain}>
+Date: ${RFC2822_DATE}
 To: <${voicemail_notify_email}>
 Subject: Voicemail from "${voicemail_caller_id_name}" <${voicemail_caller_id_number}> ${voicemail_message_len}
 X-Priority: ${voicemail_priority}
index aede2b8f08a909a9dba808a8cfb012f4a61be236..a98f9d703e7caadf911f10948ef711b9e626d512 100644 (file)
@@ -1,4 +1,5 @@
 From: "${voicemail_caller_id_name}" <${voicemail_caller_id_number}@${voicemail_domain}>
+Date: ${RFC2822_DATE}
 To: <${voicemail_email}>
 Subject: Voicemail from "${voicemail_caller_id_name}" <${voicemail_caller_id_number}> ${voicemail_message_len}
 X-Priority: ${voicemail_priority}