Advertisement
Guest User

Brief guide to Alpine (linux CLI email client)

a guest
Mar 29th, 2017
744
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.63 KB | None | 0 0
  1. --------------------------------------------------------------------------------
  2.  
  3. This guide assumes you're using a gmail account.
  4.  
  5. First, install Alpine. Ideally, this is done with your distro's package manager
  6. (or with the slackware package included on the backup hdd), but you can also
  7. compile from source, whatever you want.
  8.  
  9. --------------------------------------------------------------------------------
  10.  
  11. RECEIVING:
  12.  
  13. 1) Go to Setup > Config ('s', 'c'). Page down until you see 'Enable Incoming
  14. Folders Collection' (third or fourth page on my install) and enable it. Hit
  15. 'e' to exit, then 'q' to quit alpine.
  16.  
  17. 2) Restart alpine, then go to 'FOLDER LIST' ('l' key) and then choose 'Incoming
  18. Folders'.
  19.  
  20. 3) Press 'a' to add a new folder. Here, Alpine will ask you for a few things:
  21. 3a) Server (imap.gmail.com/ssl/user=ACCOUNT_NAME@gmail.com)
  22. 3b) Folder name (Inbox, spelled with a capital 'I').
  23. 3c) Nickname (whatever you want, I use ACCOUNT_NAME@gmail.com for clarity)
  24.  
  25. 4) At this point, you'll be asked for a password to finish folder creation, as
  26. well as every time henceforth when you access your inbox.
  27.  
  28. That's all!
  29.  
  30. --------------------------------------------------------------------------------
  31.  
  32. SENDING:
  33.  
  34. In order to send messages, you'll have to make use of 'roles'. It sounds more
  35. complicated than it is. A role, in the context of this guide anyway, allows you
  36. to send messages using a specific email address and server. They do other
  37. things too, but for now, we only care about sending email.
  38.  
  39. To set up a new role, go to Settings > Rules > Roles. From the main menu, this
  40. is just hitting 's', 'r', 'r'. When you're at the 'roles' screen, either select
  41. the role you wish to edit or add a new one by pressing 'a'.
  42.  
  43. When editing the role, the first thing you need to change is the role's
  44. nickname. You should probably use something obvious; the role I use for sending
  45. email from foo.bar@gmail.com is named 'sending_foo.bar', for
  46. example.
  47.  
  48. Next, under the 'CURRENT FOLDER CONDITIONS BEGIN HERE' section, select
  49. 'specific' and enter the nickname of the incoming folder into the 'Folder List'
  50. field (in my case, 'foo.bar@gmail.com').
  51.  
  52. The next and possibly most critical part of the role is the 'recip pattern'
  53. condition. Change that to whatever email address you wish to compose with /
  54. reply from.
  55.  
  56. Next is the SMTP field, near the bottom of the role setup. Just keep scrolling
  57. down until you find it. When you do, enter:
  58.  
  59. smtp.gmail.com:587/tls/user=USER@PROVIDER.COM
  60.  
  61. ...or whatever is appropriate for your setup. For me, it's:
  62.  
  63. smtp.gmail.com:587/tls/user=foo.bar@gmail.com
  64.  
  65. Lastly, you'll probably want to allow yourself to compose using this role. Just
  66. find the 'compose use' section (it should be the last one on the page) and
  67. change it to either 'with confirmation' or 'without confirmation' to use it.
  68.  
  69. Everything else can be edited according to preference.
  70.  
  71. --------------------------------------------------------------------------------
  72.  
  73. TIPS:
  74.  
  75. To mark all unread as read:
  76. First, use the select key (;) to open the 'selection menu'. Then select by
  77. status (s), then 'new' (n). This should bring you to a new screen with only
  78. new messages displayed.
  79.  
  80. Now, hit the 'apply' key (a), which will allow you to apply an action to all
  81. of your selected messages. Now hit the toggle flag key (*) to toggle flags
  82. for your messages, then hit the 'not' key (!), then the new key (n).
  83.  
  84. In short, ;sna*!n
  85.  
  86. If you just want to mark an individual message as unread, have the message
  87. selected and do the *!n thing (toggle flag > not > new).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement