Form1 Form1 0 0 399 247 KMail communication unnamed 11 6 AccountListBox @selectedWidgetText Layout2 unnamed 0 6 Spacer3 Horizontal Expanding 30 0 AccountButton Get accounts # Get list of accounts from KMail LIST=`dcop kmail KMailIface accounts` # Add each account to the list and enable 'Check Account' button if [ "$LIST" ]; then for i in $LIST; do dcop @dcopid KommanderIf addListItem AccountListBox "$i" 1000; done dcop @dcopid KommanderIf enableWidget CheckButton true fi true CheckButton false Check account # Get current account # Look at AccountListBox script to see how @AccountListBox is calculated dcop kmail KMailIface checkAccount @AccountListBox true Spacer2 Horizontal Expanding 30 0