Package: maildrop
Version: 2.0.4-3
Followup-For: Bug #305541

I do not know if this is dirty script but until we get maildrop handle
this...  I was annoyed by this Maildir issus and did this...

if (    /^Precedence:.*list/ || /^Precedence:.*bulk/ )
{
    if ( /^List-Id:[ <]*([^<>]*)[ >]*/)
        MAILBOX="$MATCH1"
    else
    {
        if ( /^X-Loop: *(.*)@(.*)/)
            MAILBOX="$MATCH1.$MATCH2"
        else
            MAILBOX="unknown-list"
    }
    `test -d $MAILBOX`
    if ( $RETURNCODE == 1 )
        `maildirmake $MAILBOX`
    to "$MAILBOX/"
}



------------

Real annoyance is missing "case" or "elif" to have multiple option
without awkward indentation.  With strict conditional rule "else { if"
is not acceptable either.

Although there is include, there is no internal function call.

With these feature, script is more readable without breaking backward
compatibilities.

Osamu


-- System Information:
Debian Release: 5.0.2
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages maildrop depends on:
ii  courier-authlib          0.61.0-1+lenny1 Courier authentication library
ii  exim4                    4.69-9          metapackage to ease Exim MTA (v4) 
ii  exim4-daemon-light [mail 4.69-9          lightweight Exim MTA (v4) daemon
ii  libc6                    2.7-18          GNU C Library: Shared libraries
ii  libgcc1                  1:4.3.2-1.1     GCC support library
ii  libgdbm3                 1.8.3-3         GNU dbm database routines (runtime
ii  libpcre3                 7.6-2.1         Perl 5 Compatible Regular Expressi
ii  libstdc++6               4.3.2-1.1       The GNU Standard C++ Library v3

maildrop recommends no packages.

maildrop suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to