Code Search for Developers
 
 
  

error.html from AlphaMail at Krugle


Show error.html syntax highlighted

% # vim:set syntax=mason:
<html>
   <head>
      <title>Error</title>
   </head>
   <body>
      <h1>Ooops!</h1>
      <p>
         Looks like our application broke! A message was sent to the
         developers. You might also let someone know by sending a short note
         about what you were doing to 
         <a alt="email the developers" href="<% $base %>/mail/compose.html"><% $config->get('developer_email', '(no local developer)') |h %></a>, or call <% $config->get('support_phone', '(no local support)') |h %>.
      </p>

      <p><a alt="return to alpha mail" href="<% $base %>/mail/index.html">Return to AlphaMail</a></p>
   </body>
</html>

<%init>
eval {
   my $error = $r->pnotes('error');
   my $error_text;

   $error_text = "Page is " . $r->uri . "\n\n";
   $error_text .= UNIVERSAL::can( $error, 'as_text' ) ? $error->as_text : $error;
   $logger->error("APPLICATION ERROR: $error_text");
   my @addr = Email::AddressParser->parse($config->get('developer_email', 'root@localhost'));
   my $entity = MIME::Entity->build(
               From    => $addr[0]->address,
               To      => $addr[0]->address,
               Subject => "Application Error Report",
               Data => $error_text,
               Type => 'text/plain');
   $entity->smtpsend(MailFrom => $addr[0]->address, 
                     Host => $config->get('smtp', 'smtp'));
};
eval {
   my $user = Apache2::SiteControl->getCurrentUser($r);
   my $composition = new AlphaMail::Message($user, $config);
   $composition->setBody('');
   $composition->setAddresses($config->get('developer_email', 'root@localhost'),'','');
   $composition->setSubject("Alphamail bug:");
   $composition->save();
};
</%init>
<%once>
our $logger = Log::Log4perl->get_logger('alphamail');
our $base = $config->get('base_uri');
</%once>

<%flags>
inherit => undef
</%flags>




See more files for this project here

AlphaMail

AlphaMail is an accelerated web mail interface with a C++ middleware layer that is more effective than an IMAP proxy which is a highly scalable (10k+ users). The interface includes modern features, Section 508 compliance, and universal browser support.

Project homepage: http://sourceforge.net/projects/alphamail
Programming language(s): C++,Java,JavaScript,Perl
License: other

  images/
  mail/
    addressbook/
      edit.mhtml
      export_csv.html
      import.mhtml
      import_complete.html
      import_csv.html
      import_csv_save.html
      import_fname.html
      import_imho.html
      import_lname.html
      index.html
      lists.mhtml
      process_edit.html
      process_lists.html
      process_take.html
      take.html
    admin/
      autohandler
      guide.html
      index.html
      quotas.jpg
      show_stats.mhtml
      test.mhtml
    docs/
      faq/
        attach1.gif
        attach2.gif
        attach3.gif
        colors.gif
        dates1.gif
        drafts.gif
        filter.gif
        index.html
        notrash1.gif
        notrash2.gif
        notrash3.gif
        other.html
        sort.gif
        timeout.gif
      index.html
      new_features.html
    settings/
      add_filter.html
      altfolder_update.html
      altprefix_update.html
      edit_folders.html
      export.mhtml
      export_mail.html
      export_verify.html
      filters.mhtml
      folders.mhtml
      general.mhtml
      index.html
      share.mhtml
      sharing_agree.html
      signatures.mhtml
      spam.mhtml
      update_filters.html
      update_folderlist.html
      update_general.html
      update_signatures.html
      update_spam.html
    viewers/
      excel.html
      html.html
      targz.html
      text.html
      word.html
      zip.html
    address_mail.html
    addresslist.html
    autohandler
    check_spelling.html
    compose.html
    feedback.html
    first_login.html
    fix_spelling.html
    folderlist.mhtml
    footer.mhtml
    get_attachment.html
    header.mhtml
    help.html
    index.html
    logout.html
    menu.mhtml
    other_folders.html
    process_compose.html
    process_first_login.html
    process_messages.html
    process_read_message.html
    process_search.html
    quota.html
    quota_graph.html
    raw.html
    read.html
    remove_attachment.html
    renew_session.html
    resume_compose.html
    sanitized.html
    search.html
    search_results.html
    share_options.html
    share_upload.html
    verify_password.html
    view_attachment.html
  static/
    rte/
    a.css
    amail_icon.jpg
    amail_large.jpg
    b.css
    bell.wav
    bell_original.wav
    c.css
    d.css
    default.css
    errorhandling.js
    paperclip.png
    wick.css
    wick.js
    wz_tooltip.js
  download.html
  error.html
  filevault.html
  index.html
  report_js_error.html