LocalDateHeader.pm 1.7 KB
Newer Older
sunnavy's avatar
sunnavy committed
1
2
3
4
use strict;
use warnings;
package RT::Extension::LocalDateHeader;

Kevin Falcone's avatar
Kevin Falcone committed
5
our $VERSION = '0.02';
sunnavy's avatar
sunnavy committed
6
7
8
9
10

=head1 NAME

RT-Extension-LocalDateHeader - Display local date for attachment Date header

11
12
13
=head1 DESCRIPTION

The Date: header included in emails received by RT will often be in the
14
sender's timezone (or possibly forced to UTC by the remote mail server).
15
This extension will rewrite the Date: header to the user's timezone
16
17
18
19
20
while also displaying the original Date: next to it. This reduces
confusion when RT lists "Correspondence added" in the user's
timezone but the Date header looks totally different. Most non-
technical users don't know how to interpret the -0000 or -0400
syntax of mail Date: headers.
21
22
23
24
25
26

=head1 VERSION

Compatible with RT 4.0 and 4.2.  Versions earlier than 4.0.8 will need to
patch as instructed below.  Untested on 3.8.

sunnavy's avatar
sunnavy committed
27
28
29
30
31
32
33
34
35
36
37
38
39
40
=head1 INSTALLATION 

=over

=item perl Makefile.PL

=item make

=item make install

May need root permissions

=item Edit your /opt/rt4/etc/RT_SiteConfig.pm

41
42
43
44
45
If you are using RT 4.2 or later, add this line:

    Plugin('RT::Extension::LocalDateHeader');

For earlier releases of RT 4, add this line:
sunnavy's avatar
sunnavy committed
46
47
48
49
50
51
52

    Set(@Plugins, qw(RT::Extension::LocalDateHeader));

or add C<RT::Extension::LocalDateHeader> to your existing C<@Plugins> line.

=item patch RT

53
54
If you are running RT 4.0.7 or earlier:

55
    patch -d /opt/rt4 -p1 < etc/callback_before_localization.diff
sunnavy's avatar
sunnavy committed
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70

=item Clear your mason cache

    rm -rf /opt/rt4/var/mason_data/obj

=item Restart your webserver

=back

=head1 AUTHOR

sunnavy <sunnavy@bestpractical.com>

=head1 LICENSE AND COPYRIGHT

71
Copyright 2012-2014 Best Practical Solutions, LLC.
sunnavy's avatar
sunnavy committed
72
73
74
75
76
77
78
79

This is free software, licensed under:

  The GNU General Public License, Version 2, June 1991

=cut

1;