Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 117233 - qmailadmin support for spam
Summary: qmailadmin support for spam
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Qmail Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-30 14:30 UTC by Jeff Thompson
Modified: 2006-04-11 17:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
add maildrop use flag and set spam related config options (qmailadmin.patch,1011 bytes, patch)
2005-12-30 14:32 UTC, Jeff Thompson
Details | Diff
add maildrop support for spam (qmailadmin.patch,941 bytes, patch)
2005-12-30 14:34 UTC, Jeff Thompson
Details | Diff
add qmailadmin spam support (qmailadmin.patch,3.11 KB, patch)
2005-12-30 20:32 UTC, Jeff Thompson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Thompson 2005-12-30 14:30:25 UTC
Hi, qmailadmin has two spam related configure options, examples are shown below:

--enable-spam=command="|preline maildrop /etc/maildroprc"
--enable-modify-spam

Neither of these configure options are specified in the existing qmailadmin ebuilds. The attached patch adds both options when qmailadmin is emerged with the "maildrop" use flag.

Another variation could use an use flag for procmail, which would specify a procmail command for --enable-spam-command.

Please consider for inclusion into future qmailadmin ebuilds.

Thanks,

jthomps
Comment 1 Jeff Thompson 2005-12-30 14:32:10 UTC
Created attachment 75826 [details, diff]
add maildrop use flag and set spam related config options
Comment 2 Jeff Thompson 2005-12-30 14:34:59 UTC
Created attachment 75827 [details, diff]
add maildrop support for spam

sorry, my first attempt attached the wrong patch... :)
Comment 3 Jeff Thompson 2005-12-30 14:44:38 UTC
Comment on attachment 75827 [details, diff]
add maildrop support for spam

geez, having a bad day... :) I just realized that this patch doesn't completely work... i'll re-attach a working copy of the patch when i've verified that it works!
Comment 4 Jeff Thompson 2005-12-30 20:32:09 UTC
Created attachment 75842 [details, diff]
add qmailadmin spam support

This is a bit of a hack. I couldn't make econf accept any form of a variable if it contains either single or double quotes. Here's what I attempted to do:

local spam_opts=""

if use maildrop; then
    spam_opts="--enable-modify-spam"
    spam_opts="${spam_opts} --enable-spam-command='|preline maildrop /etc/maildroprc'"
fi

then add ${spam_opts} to econf, but the result is that econf doesn't pass the parameters correctly to ./configure... If there's a way to pass a quoted string to econf that would obviously be the best way to go.
Comment 5 SpanKY gentoo-dev 2006-04-11 17:43:21 UTC
thanks, 1.2.9 has support for USE=maildrop now !