Code Search for Developers
 
 
  

filevault.html from AlphaMail at Krugle


Show filevault.html syntax highlighted

% # vim: set syntax=mason: 
<%args>
$to => ''
$cc => ''
$bcc => ''
$subject => ''
$message => ''
$forward => ''
$ref => ''
@attachments => ()
@sizes => ()
$error => 0
$reply => 0
</%args>
<& /mail/header.mhtml, message => $message, title => 'File Vault', compose => 1 &>
   <form method="post" action="/mail/process_filevault.html"
         enctype="multipart/form-data">
      <p>FileVault allows you to temporarily store large files that are too big
      for mail attachments so that a remote recipient can download them. When
      you send a file with FileVault, a URL will be embedded in the outgoing
      message so that the recipient can click on it to download the file.</p>
      <p>In order to help insure your privacy, the file will be encrypted on
      the server using a key that will be sent in the email message. Only a
      user that possesses this key will be able to download the file.</p>
      <p>If you are sending a particularly sensitive file, you can choose to
      write down the key locally, and delete it from the outgoing message. This
      would mean that you would use some other mechanism to transfer the key to
      the recipient so they could download the file (i.e. you call the person
      and read them the key over the phone.)</p>

      <input name="message" value="<% $message |h %>" type="hidden">
      <input name="to" value="<% $to |h %>" type="hidden">
      <input name="cc" value="<% $cc |h %>" type="hidden">
      <input name="bcc" value="<% $bcc |h %>" type="hidden">
      Embed the key in the message? Yes: <input name="embedkey" type="radio" value="1"> No: <input name="embedkey" type="radio" value="0">
      <input name="upload" type="file">
      <input type="submit" name="upload" value="Upload File"> 
% if(@attachments) {
%    for(my $i =0; $i < $#attachments+1; $i++) {
               <% $attachments[$i] %> (<% $sizes[$i] %> bytes)<br>
               <input type="hidden" name="attachments" value="<% $attachments[$i] |h %>">
               <input type="hidden" name="sizes" value="<% $sizes[$i] |h %>">
%    }
% }
   </form>
   <script language="javascript">
      <!--
      document.forms[0].message.selectionStart = 0;
      document.forms[0].message.selectionEnd = 0;
      // -->
   </script>
<& /mail/footer.mhtml &>
<%init>
my $user = Apache::SiteControl->getCurrentUser($r);
my $folder = $user->getAttribute('lastfolder') || 'inbox';
my $book = new AlphaMail::AddressBook($user->getUsername(), $user->getAttribute('imap'), $config);
my $sigs = new AlphaMail::Signature($user->getUsername(), $user->getAttribute('imap'), $config);
my $ab = $book->get;
my $jsinit;

if(!$message) {
   $message = "\n" . $sigs->getSignature;
}

local $" = ", ";

for my $k (keys %$ab) {
   $jsinit .= qq("@{$ab->{$k}} ($k)",);
}
$jsinit =~ s/,\s*$//;

</%init>




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

  addressbook/
    edit.mhtml
    import.mhtml
    import_alias.html
    import_complete.html
    import_csv.html
    import_csv_save.html
    import_fname.html
    import_imho.html
    import_lname.html
    index.html
    process_edit.html
    take.html
  settings/
    altfolder_update.html
    edit_folders.html
    folders.mhtml
    general.mhtml
    index.html
    share.mhtml
    sharing_agree.html
    signatures.mhtml
    update_folderlist.html
    update_general.html
    update_signatures.html
  viewers/
    excel.html
    html.html
    targz.html
    word.html
    zip.html
  address_mail.html
  addresslist.mhtml
  autohandler
  check_spelling.html
  compose.html
  filevault.html
  first_login.html
  fix_spelling.html
  folderlist.mhtml
  footer.mhtml
  get_attachment.html
  header.mhtml
  index.html
  logout.html
  menu.mhtml
  other_folders.html
  print.html
  process_compose.html
  process_first_login.html
  process_messages.html
  read.html
  remove_attachment.html
  renew_session.html
  share_options.html
  share_upload.html
  verify_password.html
  view_attachment.html