Jump to content

Mutt: Difference between revisions

307 bytes removed ,  2 June 2011
no edit summary
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 86: Line 86:
Another [http://www.redbrick.dcu.ie/help/tutorials/spam/procmailrc example] or [http://www.redbrick.dcu.ie/~receive/configfiles/procmailrc two] of procmailrc here
Another [http://www.redbrick.dcu.ie/help/tutorials/spam/procmailrc example] or [http://www.redbrick.dcu.ie/~receive/configfiles/procmailrc two] of procmailrc here


== Fast Storage ==
== Using mutt to read your gmail with IMAP ==


The default storage location for your redbrick files is the large storage array on minerva. This would be great for keeping your porn (if we allowed that) but it's not as fast as the smaller storage array on deathray. Normally the speed difference isn't noticeable, but when you have thousands of emails, it starts to cause problems. To move your mail to faster storage you'll need to email the admins, and ask for space there.
=== Proxy ===
Mutt will need to be launched with <tt>tsocks</tt> to get around the DCU proxy.
alias mutt='tsocks mutt'


Once you've got fast storage set up you'll need to run the following commands to symlink to your Maildir:
=== muttrc ===
set from = "Your Name <your_email@gmail.com>"
set imap_user = "your_email@gmail.com"
set folder = "imaps://imap.gmail.com:993"
set spoolfile = "=INBOX"
set postponed = "=[Gmail]/Drafts"
set header_cache=~/.mutt/cache/headers
set message_cachedir=~/.mutt/cache/bodies
set move = no
set pager_index_lines=10
set sort=threads
set markers=no
set timeout=300
macro index q '<change-folder>?<toggle-mailboxes>'
macro browser q '<exit><quit>'
bind index G imap-fetch-mail
bind browser G check-new
mailboxes =INBOX =Facefuck =rb


This moves your Maildir into your fast-storage account
mv Maildir /fast-storage/users/<first letter of your username>/<username>


This creates a symlink to it
ln -s /fast-storage/users/<first letter of your username/<username>/Maildir ./Maildir
To check it's worked properly run:
ls -al Maildir
And you should get something like:
lrwxrwxrwx 1 haus committe 34 2009-04-22 15:56 Maildir -> /fast-storage/users/h/haus/Maildir
Only with your account name ;)
And that's it. Done \o/


[[Category:Helpdesk]]
[[Category:Helpdesk]]
16

edits