Dmitry Bulatkin | 2 Jun 2003 13:33
Picon

message flags

Hi all!
Are there any ways to set flags (like read/unread) for incoming messages
using qmail+vpopmail+maildrop?

-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
Robin Whittle | 2 Jun 2003 15:24
Picon

Re: message flags

Dmitry Bulatkin wrote:

> Are there any ways to set flags (like read/unread) for incoming messages
> using qmail+vpopmail+maildrop?

I have patched Maildrop so it can deliver the message "tagged for
deletion", by setting a variable "DELTAG" to 1.

  http://www.firstpr.com.au/web-mail/Maildrop-mods-filtering/

I have just reworked these patches for the current version of Maildrop.

This is achieved by adding ":2,T" to the end of the filename.  I could
add a second variable to read, such as "READTAG" in order to make this
":2,S", or ":2,ST" if both were set.

I think a facility such as this would be a fine addition to Maildrop and
I hope Sam would be interested in adding it, no-doubt more elegantly
than my patch.  But failing that I am willing to extend my patch to do
the "read" flag.

  - Robin

-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
Igor Stroh | 4 Jun 2003 01:29
Picon

Filtering MIME content & encoded headers

Hi there,

is it possible to make filter rules find patterns in encoded
headers/body parts? e.g. in base64 or quoted-printable strings?

TIA,
Igor

-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
Sam Varshavchik | 4 Jun 2003 01:45
Gravatar

Re: Filtering MIME content & encoded headers

Igor Stroh writes:

> Hi there,
> 
> is it possible to make filter rules find patterns in encoded
> headers/body parts? e.g. in base64 or quoted-printable strings?

Nope, not at this time.

-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
Eric S | 4 Jun 2003 02:06

Re: Filtering MIME content & encoded headers

On 4 Jun 2003, Igor Stroh wrote:

> is it possible to make filter rules find patterns in encoded
> headers/body parts? e.g. in base64 or quoted-printable strings?

I started off rejecting any email that was text/plain or
text/html and base64-encoded, and found it so effective that I wrote a
perl program to feed through to parse out the sub-entities of the
document and check each of them the same way (to avoid false positives
where I have one text/plain entity and a base-64 encoded graphic entity as
part of the same email).

Not perfect, I've had one false positive that came from a mailing list
hosted in Germany.

Now, this doesn't exactly answer your question.  Yes, but not easily, at
least not that I know of.  The only way's I'm aware of to do it is to use
an external program like I am (besides, as much of a step forward maildrop
is over procmail, I'm much more comfortable with Perl), or to search for
the encoded text, ie (/(s|=73|=53)(e|=65|=45)(x|=75|=58)/i).  Searching
within base64 encoded text is much more complicated this way, as each
possible string has at least 4 different ways to encode it, possibly more
if the surrounding characters are variable or if you want
case-insensitivity.  For example, "sex" could be encoded 8*(1+256*3) ways,
and your regexp would get pretty complicated avoiding false-positives from
decoding starting at the wrong position.

-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
(Continue reading)

Kirk Moore | 5 Jun 2003 19:56

has anyone?

Ok.. help...

Has anyone gotten Maildrop to work with MySQL and Spamassassin. If so,
can you "r" me and help out. We are working on it, but could use some
help.

--
Kirk Moore
Network/Software Engineer
www.cleanposts.com

Black holes are created when God divides by zero!

-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
Andreas Stollar | 6 Jun 2003 00:57
Favicon

Re: has anyone?

I got maildrop working with spamd/spamc. We use LDAP, so I'm not sure 
about that part, here's a sample .mailfilter

LOGFILE=$HOME/maildrop.log
logfile $LOGFILE
DEFAULT="$HOME/Maildir/"
xfilter "/usr/local/bin/spamc -u andreas <at> speakeasy.net"
if (/^X-Spam-Status: Yes/)
    to $HOME/Maildir/.spam/

Andreas

On Thu, 5 Jun 2003, Kirk Moore wrote:

> Date: Thu, 5 Jun 2003 10:56:34 -0700
> From: Kirk Moore <kmoore <at> moorewebs.com>
> To: "courier-maildrop <at> lists.sourceforge.net"
>     <courier-maildrop <at> lists.sourceforge.net>
> Subject: [maildropl] has anyone?
> 
> Ok.. help...
> 
> Has anyone gotten Maildrop to work with MySQL and Spamassassin. If so,
> can you "r" me and help out. We are working on it, but could use some
> help.
> 
> --
> Kirk Moore
> Network/Software Engineer
> www.cleanposts.com
(Continue reading)

Masakazu Fujiwara | 6 Jun 2003 04:17

Command died with status 1: "/usr/local/bin/maildrop"


Hi there,

I am testing my filter scripts.
When I used the following simple filter, a message I sent was bounced and I 
coudn't receive e-mail as account <at> my.domain.
There was an error message from "local" of Postfix in /var/log/maillog:

Command died with status 1: "/usr/local/bin/maildrop"

When I changed "!account <at> my.domain" to "Maildir", I could normally receive 
the message in mailbox holding this filter.

Does anybody have idea what cause this?

--------- .mailfilter ---------
logfile "filter.log"

if ( /^Subject: *spam */:h )
{
     to "!account <at> my.domain"
}

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

Masa

-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
(Continue reading)

Oliver Eales (intern | 6 Jun 2003 10:22

temporary disabling mailquota

Hello!

Is it possible to disable the mailquota on a box for mail coming from a
special address (e.g. postmaster <at> host.com)
The problem is, i can regex search for this from address and then set a
special quota in my mailfilter,

if (/^From: postmaster <at> host.com) {
    MAILDIRQUOTA=10000000S,10000C
}

This works for the current delivery, but if the maildirsize file needs
recalculation/rewriting, the above high quota is stored in the maildirsize
file, which i dont want at all. I just dont want the quota limit to be
active on some special addresses. (of course the change still needs to be
stored in the maildirsize file)

Thanks in advance!

Bye, Oliver Eales
arcor-online.net Systementwicklung

-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
Andreas Stollar | 6 Jun 2003 17:59
Favicon

maildrop quota maildirsize problem

Hi,

I am having a problem with how maildrop creates the maildirsize file. It 
seems to add extra spaces before the size and between the size and count 
fields. This is causing a problem with a proprietary webmail product by 
Mintersoft, that regards this file as corrupted and removes it, which 
results in it reporting that users have 0 usage and 0 quota.

Using qmail+ldap, maildirsize would look like this:
[root <at> craniac Maildir]# cat maildirsize
15728640S,4000C
175298 22
2241 1
1715 1

which webmail would deal with nicely, and report that I have 6% of 15MB 
used. However when I started using maildrop for my MDA, it makes the 
maildirsize file look like this:

[root <at> craniac Maildir]# cat maildirsize
15728640S,4000C
  175298   22
    2241    1
    1715    1

which causes webmail to freak out. I tried looking at the C code to find 
out where the extra spaces were being inserted, but I am not familiar 
enough with C to find it. The maildir++ spec, from the courier page 
states:

(Continue reading)


Gmane