Hi Sam,

during a customer project I had to patch/enhance the webmail server
quite a bit. I would like to contribute the changes that seem to be
generally usefull. Feel free to integrate them to the main courier
source tree, if they fit.

regards,
-- 
Lars Uffmann, <[EMAIL PROTECTED]>, fon: +49 5246 80 1330

Attachment: mways-public-latest-2002-03-22.tar.gz
Description: Binary data


1.) Patch Description

1.1) webmail/sysfolder.patch

  Before a folder is created, renamed, or deleted, a check is made
  wether a folder name is a system folder (INBOX,DRAFTS,SEND or TRASH).
  This works also if you choose different names via template system
  variables (ie in translations):

  [#$INBOX=Posteingang#]
  [#$DRAFTS=Entwürfe#]
  [#$SENT=Gesendet#]
  [#$TRASH=Papierkorb#]

  The [#$SYSFOLDER=... Error Message ...#] template variable is added.

1.2) webmail/from-to-label.patch

  In the folder contents title, "To" is displayed instead of the default
  "From/To" if the current folder is either SENT or DRAFTS, "From" is shown
  otherwise. The actual Title is configurable via the template variables
  [#$FROM=...#] and [#$TO=...#].

1.3) webmail/update-folder-asap.patch

  This patch adds a "Reload Folder" button to the folder contents page.
  If reload is pressed, new messages will show up and messages marked as
  deleted are expunged.

1.4) webmail/inbox-if-newmail.patch

  This patch adds a new user preference:

  When SqWebMail starts up, display
   * your INBOX
   * your INBOX, but only if there are new messages
   * the Folders page

  This patch depends on update-folder-asap (see above).

1.5) webmail/header_i8nl.patch

  You can now translate the following header fields:

    To:         [#$TOLAB=An#]
    From:       [#$FROMLAB=Von#]
    Cc:         [#$CCLAB=Kopie#]
    Bcc:        [#$BCCLAB=Bcc#]
    Subject:    [#$SUBJECTLAB=Betreff#]
    Reply-To:   [#$REPLYTOLAB=Antwort an#]
    Date:       [#$DATELAB=Datum#]

    The format used to show the Date header is configurable via the
    [#$DATEFMT=%d %b %Y, %H:%M:%S#] variable.

1.6) webmail/html_show_imgs.patch

  This patch adds the ability to display images in HTML E-Mail without
  revealing the session ID to remote webservers. It works by proxy-
  passing requests for images through SqWebMail. The HTML filter rewrites
  <IMG SRC="http://.../xxx.gif";> to
  <IMG SRC="http://.../cgi-bin/webmail/...?proxypass=http://.../xxx.gif";>
  Sqwebmail will then download the IMG and pass it back to the browser
  using libcurl (http://curl.haxx.se/libcurl/).

1.7) webmail/patches.h.patch

  Selectively en- or disable the above patches.

2.) Installation

2.1) How to Apply the Patches

Check out a fresh copy of courier from cvs. The patches are made against
courier-latest. HEAD schould also work. Unpack the tar file from the
toplevel courier source directory. Then follow the steps below.

  # cvs co -d courier-latest -r courier-latest courier
  # cd courier-latest
  # tar xf ../mways-latest-2002-03-22.tar
  # sh ./autopatch
  # sh ./autobloat
  # ./configure ...
  # make

Note: If you want to apply the patches seperatly, use patch -p0.

2.2) Build Requirements

You will have to install development libraries and header files for
libcurl. Download libcurl from http://curl.haxx.se/ or install the
libcurl-dev (.deb/.rpm) package.


Attachment: msg03507/pgp00000.pgp
Description: PGP signature

Reply via email to