You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long. 7.3 KiB

4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
3 years ago
  1. This page details how to use mutt to read and send email on Redbrick. If
  2. you\'re new to Redbrick, make sure to take a look at the
  3. [Forwarding](/Automatic_Forwarding "wikilink") first.
  4. ## Reading your mail
  5. Mutt is the default mail program on RedBrick. To start it, simply type
  6. \"mutt\" into your terminal and hit return.
  7. [Image:mutt1.jpg](/Image:mutt1.jpg "wikilink")
  8. When you start mutt with its default settings you will taken to your
  9. default mailbox. Here you will see a list of all your email split into
  10. columns. The first column shows the status of the mail, \"N\" for new
  11. mail, \"O\" for unread and blank for previously read mail. The next
  12. columns contains the number of the mail in the list, the date the mail
  13. was received followed by the sender\'s name. The final column displays
  14. the subject of the mail. A highlight bar will show which mail is
  15. currently selected.
  16. To read the currently selected mail, press the return key and the
  17. contents of the mail will appear in the lower half of the screen. If the
  18. mail is too big to fit in the one screen you can continue down through
  19. the text by using either the return key or the spacebar. When you are
  20. finished reading a message, type \"q\" This will return you to the main
  21. list of emails. To save time you can type the number of the mail in the
  22. list followed by the return key to jump to that mail.
  23. ## Sending an email
  24. To send a mail from mutt, first hit the \"m\" key.
  25. At the bottom of your screen you will see \"To:\". If you\'re sending a
  26. mail to another Redbrick user, simply type in their username and hit the
  27. return key. The program will take care of the rest. For anyone else, you
  28. enter the full email address of of the person you wish to mail:
  29. and hit return.
  30. Next you will see \"Subject:\". Just enter the mail\'s subject and hit
  31. return again. Your default text editor will now launch, on Redbrick this
  32. is set to nano, so type in your message here and when you\'re done, hit
  33. ctrl and x to save, then y and return to accept. You will be brought to
  34. a menu that confirms the details of your mail at the top. If you are
  35. happy with all the details, simply press \"y\" to send and you\'re done.
  36. There are more options you have access to before you press \"y\"
  37. outlined below
  38. * e: Re-edit the message
  39. * t: Change the primary recipients address
  40. * c: Add the email address of others you wish to recieve the mail
  41. seperated by commas
  42. * b: Add the email address of others you wish to recieve the mail
  43. without the primary recipient knowing
  44. * s: Change the subject
  45. * r: Change the default reply-to address
  46. * f: Define the folder you want a copy of the mail to be saved in
  47. * q: Cancel the email
  48. * a: Attach a file to the email. You will be prompted for its location
  49. ## Deleting email
  50. While viewing the email list, highlight the desired mail, and press
  51. \"d\". The mail is now marked to be deleted. If you wish to delete it
  52. immediately, press the \$ key (shift and 4). You will be prompted to
  53. confirm deletion, hit \"y\" to delete or \"n\" to cancel. Otherwise, you
  54. will be prompted to confirm deletion when you exit the program.
  55. If you wish to undelete a mail, highlight it and press \"u\".
  56. ## Forwarding an email
  57. To send a mail you have received on to another person, highlight the
  58. mail and press \"f\".
  59. You\'ll have the same options as when you are sending a normal mail.
  60. When your editor opens, it will contain the mail you are forwarding and
  61. you may add extra text and change it if you wish, or simply leave it as
  62. it is. Save and send the message as before.
  63. ## Setting a signature
  64. A signature is generally a piece of text, a quote, details or whatever
  65. that people add onto the end of their mail at the bottom. You can set
  66. this permanently by creating a .signature file that gets added on to
  67. every mail you send.
  68. To create one, type:
  69. `nano ~/.signature`
  70. Add in whatever you\'d like to be in your signature and save it. Mutt
  71. will now add this to all outgoing mails from you.
  72. ## Exiting mutt
  73. To quit mutt, just press the \"q\" key while in the mail list. If
  74. you\'re asked to confirm, then hit \"y\" or \"n\".
  75. ## Mailboxes
  76. You can also sort all your incoming mail into categories, making things
  77. easier to find and read. There are a few steps involved in setting this
  78. up, but once they\'re done you don\'t have to worry about it anymore.
  79. The first step is to create new mailboxes, to do so all you have to do
  80. is type \"nano \~/.muttrc\" (or replace nano with your favourite text
  81. editor)
  82. [Image:mutt2.jpg](/Image:mutt2.jpg "wikilink")
  83. There won\'t be much here (well anything actually) but we can soon
  84. change that.
  85. [Image:mutt4.jpg](/Image:mutt4.jpg "wikilink")
  86. In the above, what we\'ve done is created four different mailboxes (you
  87. can have more if you want) - inbox, spamtrap, gmail and sent. We\'ve
  88. also set it so that every mail you send is copied and saved in an inbox
  89. called sent.
  90. Once this is done, you will need to cd to \~/Maildir and type \"mdmake
  91. <mailbox name>\" to create it. You will have to do this separately for
  92. each one.
  93. You should now start mutt by typing \"mutt -y\". This will give you a
  94. list of all your mailboxes when the program starts. Simply highlight a
  95. mailbox and hit return to view it\'s contents.
  96. [Image:mutt5.jpg](/Image:mutt5.jpg "wikilink")
  97. To switch to another mailbox hit \"c\" and enter = followed by the name
  98. of the name of the mailbox: =helpdesk. Alternatively, hit \"c\" and then
  99. hit \"?\" to see a list of all mailboxes. To return to the original
  100. mailboxes list hit the tab key.
  101. However none of your mails are currently being filtered, you\'ve just
  102. created the mailboxes. To start the filter process you\'re going to have
  103. to use procmail. To do this you\'re going to have to type \"nano
  104. \~/.procmailrc\" at the termainl (as in the picture above).
  105. [Image:procmailrc.jpg](/Image:procmailrc.jpg "wikilink")
  106. It may look like a lot at first, but most of it is the same type of
  107. thing again and again. It\'s basically checking for spam and putting it
  108. in the spam folder (Instead of deleting the \"spam\" mail, we are going
  109. to redirect it to a mail folder of its own so that you can occasionally
  110. check if it really is spam.) or checking the To/From/Subject fields and
  111. matching them to other inboxes. The bit at the very end sets inbox as
  112. the mailbox that all the mail that doesn\'t match any of the other
  113. criteria will go to. You may also want to set a more suitable USER=
  114. (perhaps your own account name)
  115. You can also type \"man procmail\" at the terminal for more information.
  116. Another
  117. [example]( or
  118. [two]( of
  119. procmailrc here
  120. ## Using mutt to read your gmail with IMAP
  121. ### Proxy
  122. Mutt will need to be launched with `tsocks` to get around the DCU proxy.
  123. `alias mutt='tsocks mutt'`
  124. ### muttrc
  125. `set from = "Your Name <>"`\
  126. `set imap_user = ""`\
  127. \
  128. `set folder = "imaps://"`\
  129. `set spoolfile = "=INBOX"`\
  130. `set postponed = "=[Gmail]/Drafts"`\
  131. \
  132. `set header_cache=~/.mutt/cache/headers`\
  133. `set message_cachedir=~/.mutt/cache/bodies`\
  134. \
  135. `set move = no`\
  136. `set pager_index_lines=10`\
  137. `set sort=threads`\
  138. `set markers=no`\
  139. `set timeout=300`\
  140. \
  141. `macro index q '`<change-folder>`?`<toggle-mailboxes>`'`\
  142. `macro browser q '`<exit><quit>`'`\
  143. `bind index G imap-fetch-mail`\
  144. `bind browser G check-new`\
  145. \
  146. `mailboxes =INBOX =Facefuck =rb`
  147. [Category:Helpdesk](/Category:Helpdesk "wikilink")