question: private void sendMmsListOnXmpp ( ArrayList < Mms > mmsList , String preMsg , String postMsg ) { XmppMsg message = new XmppMsg ( ) ; if ( sSettingsMgr . smsReplySeparate ) { if ( preMsg != null ) { message . appendBold ( preMsg ) ; sendAndClear ( message ) ; } for ( Mms mms : mmsList ) { appendMms ( message , mms ) ; sendAndClear ( message ) ; try { Thread . sleep ( 100 ) ; } catch ( InterruptedException e ) { } } if ( postMsg != null ) { message . appendItalicLine ( postMsg ) ; sendAndClear ( message ) ; } } else { if ( preMsg != null ) { message . appendBoldLine ( preMsg ) ; } for ( Mms mms : mmsList ) { appendMms ( message , mms ) ; } if ( postMsg != null ) { message . appendItalicLine ( postMsg ) ; } send ( message ) ; } }
target:  Helper to send messages via xmpp according to the settings 