<<< Date Index >>>     <<< Thread Index >>>

hooks from aliases



Hello,

For my personal needs I've written a script to generate hooks from aliases:

Input:
alias a1 a1-email@xxxxxxxxxxx (Name)
alias a2 a2-email@xxxxxxxxxxx (Name)
alias a3 a3-email@xxxxxxxxxxx (Name)
alias a3 a3-email@xxxxxxxxxxx (Name)
alias a1a2 a1,a2
alias a4 a4-very-very-very-very-long-email@xxxxxxxxxxx \
                (Name)
alias -group mygroup a5 a5-email@xxxxxxxxxxx (Name)
alias -group mylists list1 list1@xxxxxxxxxxx (Name)
alias -group mylists list2 list2@xxxxxxxxxxx (Name)

Output:
fcc-hook '~C a1-email@example\.org ~C a2-email@example\.org' +a1a2
save-hook '~L a1-email@example\.org ~L a2-email@example\.org' +a1a2
fcc-save-hook a1-email@example\.org +a1
fcc-save-hook a2-email@example\.org +a2
fcc-save-hook a3-email@example\.org +a3
fcc-save-hook a3-email@example\.org +a3
fcc-save-hook a4-very-very-very-very-long-email@example\.org +a4
fcc-save-hook a5-email@example\.org +a5
set my_list_folders = /list1$|/list2$
mailboxes =list1 =list2
subscribe list1@xxxxxxxxxxx list2@xxxxxxxxxxx

Usage:
source "alias-hooks.php $alias_file|"
folder-hook . 'special settings'
folder-hook $my_list_folders 'other special settings'

Perhaps it can be useful for other users. You can download it here:
http://pmrb.free.fr/tmp/alias-hooks.txt

Cheers, Peter

-- 
http://pmrb.free.fr/contact/