View previous topic :: View next topic |
Author |
Message |
bingobob Apprentice
Joined: 05 Apr 2004 Posts: 296 Location: Hertfordshire, UK
|
Posted: Wed Nov 24, 2004 12:17 pm Post subject: mutt and imap folders |
|
|
I use IMAP with mutt.
I am slowly progressing with mutt, but now I have a wierd problem. My top level "inbox" works fine and i can see messages...I can also press "c" and then "?" and get a nice list of my mail folders, when i go to the bottom of the list I get to see my messages (ie the folder at the bottom of the tree). BUT I dont see messages in folders in between the root and the bottom! most wierd and annoying.
I also need to be able to easily move mesages from the root inbox to my subfolders. Something like these commands (from http://wiki.mutt.org/index.cgi?MuttFaq/Maildir) look useful for my muttrc - although i want to see my missing messages 1st.
Code: |
macro index c "<change-folder>?<toggle-mailboxes>" "open a different folder"
macro pager c "<change-folder>?<toggle-mailboxes>" "open a different folder"
macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
|
------
Please help, driving me nuts and I really want to like mutt. As a further point I have no reference to Maildir in my .muttrc, I think this is for local mail only, I just want to manipultate stuff server side....heres what i currently have in muttrc (extract)....
Code: |
set spoolfile=imaps://mail.messagingengine.com/INBOX
set mbox=imaps://mail.messagingengine.com/INBOX
set folder=imaps://mail.messagingengine.com/INBOX.
set postponed=imaps://mail.messagingengine.com/INBOX.Drafts
set record="=Sent Items"
|
cheers for reading...
bb
[/code] |
|
Back to top |
|
|
Raffi l33t
Joined: 17 Mar 2003 Posts: 731 Location: Moscow, Id.
|
Posted: Wed Nov 24, 2004 8:08 pm Post subject: |
|
|
Not sure why you are setting your folder to your INBOX. The folder should be a directory. I'm doing something like
Code: |
set folder = "{mail}Mail"
set spoolfile = "{mail}inbox"
|
I can access other mailboxes in my Mail folder using
=mailboxname (ie =sent). |
|
Back to top |
|
|
bingobob Apprentice
Joined: 05 Apr 2004 Posts: 296 Location: Hertfordshire, UK
|
Posted: Wed Nov 24, 2004 9:39 pm Post subject: |
|
|
Its because its IMAP, ie all the folders are server side...I`m not actually storing any mail locally at all...or am I missing something. |
|
Back to top |
|
|
Raffi l33t
Joined: 17 Mar 2003 Posts: 731 Location: Moscow, Id.
|
Posted: Wed Nov 24, 2004 10:25 pm Post subject: |
|
|
In my case, I'm doing the same thing. The folder {mail}Mail is my Mail directory on the remote machine. =sent is an IMAP folder in that directory on that machine. |
|
Back to top |
|
|
bingobob Apprentice
Joined: 05 Apr 2004 Posts: 296 Location: Hertfordshire, UK
|
Posted: Thu Nov 25, 2004 8:36 am Post subject: |
|
|
Hi Raffi,
OK thanks, but I am still confused. Any chance you could post your .muttrc so I can take a look. So folder and spoolfile should be set diefferently ? and does "Mail" have a special meaning to mutt.
yours (still confused)
bb |
|
Back to top |
|
|
Raffi l33t
Joined: 17 Mar 2003 Posts: 731 Location: Moscow, Id.
|
Posted: Thu Nov 25, 2004 3:08 pm Post subject: |
|
|
Yes Folder and spoolfile are different. Folder is the directory where is a directory where you keep your mailboxes. spoolfile should point to the mailbox that imap uses for new mail (in most cases the special name INBOX). The Mail directory on your local machine is the default folder and since I have been using mutt for many years (long before it supported imap) that is where I keep my files. Now those files are on the remote machine instead of my local machine.
Here is my muttrc, it probably needs some cleaning up.
Code: |
# MUTT variables
set folder = "{mail.aha.com}Mail"
set spoolfile = "{mail.aha.com}inbox"
set imap_user = "yourusername"
set imap_pass = "yourpassword"
mailboxes ! =auto =root =system =www =report
unset imap_servernoise
auto_view text/html application/msword
alternative_order text/plain text/enriched
set include = yes
set signature = ~/.sig
set record = =sent.`date +%m-%Y`
set sort = reverse-date-sent
unset save_empty
set editor="vi"
set mime_forward
# Key bindings.
# My even more like elm bindings, I don't want to have to relearn a mailer.
bind attach i exit
bind index i refresh
bind compose F edit-fcc
bind compose s send-message
bind compose f exit
bind compose h edit-headers
macro generic <f1> "!less /usr/share/doc/mutt-1.5.6-r4/manual.txt\n" "Show Mutt documentation"
macro index <f1> "!less /usr/share/doc/mutt-1.5.6-r4/manual.txt\n" "Show Mutt documentation"
macro pager <f1> "!less /usr/share/doc/mutt-1.5.6-r4/manual.txt\n" "Show Mutt documentation"
###############################
# Folder color options
###############################
color quoted brightyellow default
color attachment magenta default
color body brightmagenta default "(ftp|http)://[^ ]+" # point out URLs
color body brightmagenta default [-a-z_0-9.]+@[-a-z_0-9.]+ # e-mail addresses
color header brightred default ^From:
color header brightyellow default ^Subject:
color header brightgreen default ^(To|Cc):
color header brightcyan default ^Date:
color tree magenta default
source ~/.mail_aliases
set alias_file=~/.mail_aliases
my_hdr Reply-To: Your Name <your@email.address>
set postpone = ask-no
ignore *
unignore from date subject to cc
unignore organization organisation x-mailer: x-newsreader: x-mailing-list:
unignore posted-to:
set mail_check=90
set timeout=15
# gpg stuff
set pgp_decode_command="gpg %?p?--passphrase-fd 0? --no-verbose --batch --output - %f"
set pgp_verify_command="gpg --no-verbose --batch --output - --verify %s %f"
set pgp_decrypt_command="gpg --passphrase-fd 0 --no-verbose --batch --output - %f"
set pgp_sign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f"
set pgp_clearsign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f"
set pgp_encrypt_only_command="pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
set pgp_encrypt_sign_command="gpg --passphrase-fd 0 --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f"
set pgp_import_command="gpg --no-verbose --import -v %f"
set pgp_export_command="gpg --no-verbose --export --armor %r"
set pgp_verify_key_command="gpg --no-verbose --batch --fingerprint --check-sigs %r"
set pgp_list_pubring_command="gpg --no-verbose --batch --with-colons --list-keys %r"
set pgp_list_secring_command="gpg --no-verbose --batch --with-colons --list-secret-keys %r"
#set pgp_autosign=yes
set pgp_sign_as=hakimian@aha.com
set pgp_replyencrypt=yes
set pgp_timeout=1800
set pgp_good_sign="^gpg: Good signature from"
|
|
|
Back to top |
|
|
|