VM

Problem in vm-su-spam-score-aux

Bug #394456 reported by Michael Ernst on 2009-07-01
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
VM
Low
Uday Reddy

Bug Description

vm-su-spam-score-aux errs if the message has no spam-status field.
This patch makes it return 0 in that case.

--- /homes/gws/mernst/emacs/vm-8.0.12/lisp/vm-summary.el 2008-11-05 12:04:35.000000000 -0800
+++ - 2009-07-01 12:49:03.385630020 -0700
@@ -737,7 +737,8 @@
 (defun vm-su-spam-score-aux (m)
   "Return the numeric spam level for M."
   (let ((spam-status (vm-get-header-contents m "X-Spam-Status:")))
- (if (string-match "\\(hits\\|score\\)=\\([+-]?[0-9.]+\\)" spam-status)
+ (if (and spam-status
+ (string-match "\\(hits\\|score\\)=\\([+-]?[0-9.]+\\)" spam-status))
         (string-to-number (match-string 2 spam-status))
       0)))

Related branches

Uday Reddy (reddyuday) on 2009-11-25
Changed in viewmail:
status: New → Fix Committed
Uday Reddy (reddyuday) on 2009-11-29
Changed in vm:
status: New → Won't Fix
status: Won't Fix → Fix Committed
Uday Reddy (reddyuday) on 2009-11-29
Changed in vm:
milestone: none → 8.1.0-beta
assignee: nobody → Uday Reddy (reddyuday)
importance: Undecided → Low
Uday Reddy (reddyuday) on 2009-12-07
Changed in vm:
status: Fix Committed → Fix Released
Changed in viewmail:
status: Fix Committed → Fix Released
Uday Reddy (reddyuday) on 2010-04-07
Changed in vm:
milestone: 8.1.0b → 8.1.0
Uday Reddy (reddyuday) wrote :

It doesn't look like this patch was every applied!

Changed in vm:
status: Fix Released → In Progress
Uday Reddy (reddyuday) on 2012-03-05
Changed in vm:
milestone: 8.1.0 → 8.1.2
Uday Reddy (reddyuday) on 2012-03-05
Changed in vm:
milestone: 8.1.2 → 8.2.0
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers