Ignore:
Timestamp:
01/22/12 15:23:10 (4 months ago)
Author:
GeorgeClark
Message:

Item9551: More updates to ImmediateNotify

Pulled the Twitter and IRC code from TweetOnSavePlugin and IrcPlugin.
Not functional here yet, need converting. Changed the templates to real
templates, so they can be more easily overridden using Topic templates.

Added a beforeSaveHandler and a NewTopic context - so the messages can
more easily show created vs updated topics.

Eliminated the MIME multipart headers from the email template, since a
single part message using multipart headers causes issues in Outlook.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ImmediateNotifyPlugin/lib/Foswiki/Plugins/ImmediateNotifyPlugin/XMPP.pm

    r13772 r13777  
    105105    my ($template) = Foswiki::Func::readTemplate( 'xmpp', 'immediatenotify' ); 
    106106 
    107     # &$debug("- SMTP:  template read $template"); 
     107    &$debug("- XMPP:  template read $template"); 
     108 
     109    # Expand Legacy variables - not used in latest templates 
    108110    my ($from) = Foswiki::Func::getPreferencesValue("WIKIWEBMASTER"); 
    109  
    110111    $template =~ s/%EMAILFROM%/$from/go; 
    111     $template =~ s/%WEB%/$info->{web}/go; 
     112    $template =~ s/%USER%/$info->{user}/go; 
    112113    $template =~ s/%TOPICNAME%/$info->{topic}/go; 
    113     $template =~ s/%USER%/$info->{user}/go; 
    114114    $template =~ s/%REV%/$info->{version}/go; 
    115115 
     
    125125        &$debug(" processing $user"); 
    126126 
    127         #&$debug(" userref = ".ref($userHash->{$user})); 
    128127        my %uHash = %{ $userHash->{$user} }; 
    129128 
Note: See TracChangeset for help on using the changeset viewer.