emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ebdb 9ff8795 30/33: Alter migration process to convert


From: Eric Abrahamsen
Subject: [elpa] externals/ebdb 9ff8795 30/33: Alter migration process to convert various folder fields
Date: Sun, 3 Sep 2017 17:02:25 -0400 (EDT)

branch: externals/ebdb
commit 9ff879561d66fab53d4ec7b4733f31882f0398c3
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>

    Alter migration process to convert various folder fields
    
    * ebdb-migrate.el (bbdb/vm-auto-folder-field): Preserve this custom
      option here.
      (ebdb-migrate-vector-to-class): Catch instances of old
      splitting-related fields, and turn them all into instances of
      `ebdb-field-mail-folder'.
---
 ebdb-migrate.el | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/ebdb-migrate.el b/ebdb-migrate.el
index 25dd374..f811f8c 100644
--- a/ebdb-migrate.el
+++ b/ebdb-migrate.el
@@ -350,6 +350,11 @@ from the list in question."
   :group 'ebdb-mua-gnus-splitting
   :type  'symbol)
 
+(defcustom bbdb/vm-auto-folder-field 'vm-folder
+  "The name of the VM-specific xfield for mail splitting."
+  :group 'ebdb-mua-vm
+  :type 'symbol)
+
 (defcustom bbdb/gnus-score-field 'gnus-score
   "This variable contains the name of the EBDB field which should be
 checked for a score to add to the mail addresses in the same record."
@@ -509,7 +514,7 @@ holding valid contacts in a previous BBDB format."
                                 :mail (cadr bits))
                  mails))))
       (when mails
-       (oset (car (last mails)) priority 'primary)))
+       (oset (car (last mails)) priority 'primary)))
     (when xfields
       (dolist (x xfields)
        (setq lab (car x)
@@ -583,7 +588,8 @@ holding valid contacts in a previous BBDB format."
          (push (make-instance 'ebdb-gnus-score-field
                               :score val)
                fields))
-        ((memq lab (list 'imap bbdb/gnus-split-private-field))
+        ((memq lab (list 'imap bbdb/gnus-split-private-field
+                         bbdb/vm-auto-folder-field))
          (push (make-instance 'ebdb-field-mail-folder
                               :folder val)
                fields))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]