(rmail-set-label): Delete the keyword header if all labels are
removed. (Bug#2302)
This commit is contained in:
parent
56ba440162
commit
a99e0e1be2
1 changed files with 3 additions and 1 deletions
|
@ -127,7 +127,9 @@ LABEL may be a symbol or string."
|
|||
(min (length header)
|
||||
(- (match-end 0) 1)))))
|
||||
(cond ((string= before "")
|
||||
after)
|
||||
;; If before and after both empty, delete the header.
|
||||
(unless (string= after "")
|
||||
after))
|
||||
((string= after "")
|
||||
before)
|
||||
(t (concat before ", " after))))))))))
|
||||
|
|
Loading…
Add table
Reference in a new issue