VM

Problem in vm-su-spam-score-aux

Bug #394456 reported by Michael Ernst
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
VM
In Progress
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)
Changed in viewmail:
status: New → Fix Committed
Uday Reddy (reddyuday)
Changed in vm:
status: New → Won't Fix
status: Won't Fix → Fix Committed
Uday Reddy (reddyuday)
Changed in vm:
milestone: none → 8.1.0-beta
assignee: nobody → Uday Reddy (reddyuday)
importance: Undecided → Low
Uday Reddy (reddyuday)
Changed in vm:
status: Fix Committed → Fix Released
Changed in viewmail:
status: Fix Committed → Fix Released
Uday Reddy (reddyuday)
Changed in vm:
milestone: 8.1.0b → 8.1.0
Revision history for this message
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)
Changed in vm:
milestone: 8.1.0 → 8.1.2
Uday Reddy (reddyuday)
Changed in vm:
milestone: 8.1.2 → 8.2.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.