Jump to content

Mutt: Difference between revisions

157 bytes removed ,  2 June 2011
no edit summary
No edit summary
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 63: Line 63:


In the above, what we've done is created four different mailboxes (you can have more if you want) - inbox, spamtrap, gmail and sent. We've also set it so that every mail you send is copied and saved in an inbox called sent.
In the above, what we've done is created four different mailboxes (you can have more if you want) - inbox, spamtrap, gmail and sent. We've also set it so that every mail you send is copied and saved in an inbox called sent.
Once this is done, you will need to cd to ~/Maildir and type "mdmake <mailbox name>" to create it. You will have to do this separately for each one.


You should now start mutt by typing "mutt -y". This will give you a list of all your mailboxes when the program starts. Simply highlight a mailbox and hit return to view it's contents.
You should now start mutt by typing "mutt -y". This will give you a list of all your mailboxes when the program starts. Simply highlight a mailbox and hit return to view it's contents.
Line 84: 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.
 
Once you've got fast storage set up you'll need to run the following commands to symlink to your Maildir:


This moves your Maildir into your fast-storage account
=== Proxy ===
mv Maildir /fast-storage/users/<first letter of your username>/<username>
Mutt will need to be launched with <tt>tsocks</tt> to get around the DCU proxy.
alias mutt='tsocks mutt'


This creates a symlink to it
=== muttrc ===
  ln -s /fast-storage/users/<first letter of your username/<username>/Maildir ./Maildir
  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


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