Archive for September 27, 2013

VIM graphical Cheat Sheet

Click picture to enlarge /
vim-cheat

VIM editor – delete lines longer than 50 charenters

BabyTux

 

You want to remove long lines, but not touch shorter lines.

Example: For each line longer than 50 chars,


:g/.\{50,\}/d

 

 

also

:g/^.\{,39\}$/d

and

:g/\(^.\{,39\}$\)\|\(^.\{61,\}$\)/d

should work.

delete frozen mails in exim queue

exim(1)

 

before deteling any mails try exim -qff starts an exim queue runner process and causes that process to force delivery attempts for all messages, whether frozen or not.

 

to remove frozen mails run this

 

exim -bp | grep frozen | awk {'print $3'} | xargs exim -Mrm

merge directories in Linux

newrsynclogo

To merge one folder to another :

you can use rsync to do a incremental copy of source folder to destination

Try something like this as root:

# rsync -av  /source/folder   /destination/folder

Fixed- iPad IMAP error “unable to move message to mailbox Trash”

 

 

iphone_unable_to_move_message

 

Unable to Move Message: The message could not be moved to the mailbox. This only happens if you are using IMAP servers for your email.

 

 

To fix

 

go to Settings.

Scroll down and tap “Mail, Contacts, Calendars” from the list.

Click your email account – it should have an arrow to the right of the email address displayed.

Scroll to the end on the settings and click Advanced.

under Mailbox behavior – select Deleted Mailbox

scroll down and select Trash folder in Server

photo

 

tap advanced on top and tap done

 

exit settings and go to mail program and test

whala! – done