Archive only non spam tagged messages

Julian Field jkf at ecs.soton.ac.uk
Sun Mar 19 21:40:49 GMT 2006


You just need a custom function which does a
sub ArchiveNonSpam {
    my($this) = shift;

    @{$this->{archiveplaces}} = () unless @{$this->{archiveplaces}};
    push @{$this->{archiveplaces}}, "/your/path/to/archive/to"
        unless $this->{isspam};
}


Leah Cunningham wrote:
> I'm using the Archive setting and was wondering if anyone has a way to set it 
> to only archive messages that are not tagged as spam specifically?  It seems 
> to grab everything by default.  Maybe someone has a plugin or hook function 
> that would do it?
>   

-- 
Julian Field                Teaching Systems Manager
jkf at ecs.soton.ac.uk         Electronics & Computer Science
Tel. 023 8059 2817          University of Southampton
                            Southampton SO17 1BJ


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the MailScanner mailing list