Bug 4993 - Mail::SpamAssassin::Spamd::Config -- parse spamd command line
Summary: Mail::SpamAssassin::Spamd::Config -- parse spamd command line
Status: NEW
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: spamc/spamd (show other bugs)
Version: SVN Trunk (Latest Devel Version)
Hardware: All All
: P5 enhancement
Target Milestone: Undefined
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 4992
  Show dependency tree
 
Reported: 2006-07-14 18:50 UTC by Radoslaw Zielinski
Modified: 2006-07-17 15:57 UTC (History)
0 users



Attachment Type Modified Status Actions Submitter/CLA Status
Config.pm text/plain None Radoslaw Zielinski [HasCLA]

Note You need to log in before you can comment on or make changes to this bug.
Description Radoslaw Zielinski 2006-07-14 18:50:01 UTC
apache-spamd (bug #4992) and spamd will share the code responsible for parsing
command line options and setting defaults.  I've separated it to a module and
reworked a bit to make it more consistent.

Yes, I know, using Getopt::Long in a module seems at least... ugly.
But I hate the idea of maintaining this code in two places even more.

Creating bug as a tracker for the issue; I'll attach current version.
It's not in review-ready state yet; more like something to comment on.
Comment 1 Radoslaw Zielinski 2006-07-14 18:53:25 UTC
Created attachment 3585 [details]
Config.pm
Comment 2 Justin Mason 2006-07-17 22:57:42 UTC
it's entirely fine for the module to modify Getopt::Long global state, etc., as
long as it's documented to do so ;)

+1 looks good