Using gmail concepts in mutt with offlineimap (archive, star)

The wiki entries for offlineimap and  mutt are very helpful but do not cover using IMAP to do things the gmail way. Specifically starring, archiving, and priority inbox. This seems like something many people must have already accomplished, but my google-fu says no one has documented it.
Objectives
Locally store/backup messages labeled as important by gmail (my phone can do more offline with email than this laptop)
Be able to "archive" and "star" these messages
Do this with faster loading and responding than possible with the web interface (so not using imap through mutt)
Questions
Can offlineimap be used to "archive" mail (move from inbox to all_mail) without having to all of all_mail stored locally.
Can a hook be set up on flagging in mutt to copy a message to starred?
Can offlineimap sync these changes if it doesn't create a starred folder (but instead somehow marks as flagged).
Confusions
After running offlineimap, the folders all_mail, sent, drafts, and starred are not created/populated but my Mail dir is now 4.6Gb
How mutt/offineimap sets starred message as flagged
OfflineImap Config
nametrans = lambda foldername: re.sub ('^\[gmail\]', '',
#re.sub ('^\[gmail\]', 'bak',
re.sub ('sent_mail', 'sent',
re.sub ('starred', 'flagged',
re.sub (' ', '_', foldername.lower()))))
folderfilter = lambda foldername: foldername not in ['[Gmail]/Spam']
#folderfilter = lambda foldername: foldername in ['[Gmail]/Important' '[Gmail]/Drafts' ]
Archive
My understanding is, using the patched packaged mutt-great-dane, we can set trash  to All Mail so deleting will achieving within gmail. (I also want to set postponed to drafts).
muttrc wrote:set trash     = "+all_mail/"
set postponed = "+drafts/"
For this to work, must offlineimap also sync the whole of All Mail? Is there a way to tell offlineimap only to care about say the last month rather than keeping years of emails on a netbook? I permit access to all my information to google so it can do the long term hosting.
I did try downloading all my mail, but there is not folder called 'all_mail' (until I made one with mutt). And I don't get the desired effect when "deleting".
But if it did work, and I am viewing a message in the important folder, I fear it would remove the important label and not the inbox label in gmail's web interface.
Star
Messages that are starred come into mutt as flagged, but flagged messages in mutt do not get starred in gmail. I imagine a way to solve this is to add a hook to flagging that copies the message to 'starred.' I don't know where to start with that. And there is also no starred directory.
Priority Inbox
With mutt and labels something more powerful than gmails priority inbox seems possible. But to as an initial attempt  I set the spool file to important and only display starred and unread messages. I mention this because I think I might be breaking something by setting spoolfile.
muttrc wrote:set spoolfile=+important/
macro index     .n      "l(~N|~O|~F)~d<1w\n"
folder-hook     .       push '.n'
Thanks!

Patrick Brisbin's git repo really helped me when I was setting up mutt.
https://github.com/pbrisbin/mutt-config
Check out the nametrans.py

Similar Messages

  • HT4519 How do I use gmail two step authentication with Mail on the IPad?

    I just added Google's two step authentication and can't get Mail on my new IPad to recognize my gmail account.  Password is entered, but I don't see a way to insert code from Google

    http://support.google.com/accounts/bin/answer.py?hl=en&answer=1066447

  • Using gmail with my iphone 4S (7.0.4) I accidentally selected "archive message".  I see no archive folder.  Where can I see/retrieve those emails?

    Using gmail with my iphone 4S (7.0.4) I accidentally selected "archive message" for several emails.  I see no archive folder.  Where can I see/retrieve those archived emails?

    Thank you!  However, those emails, along with all other mail is sent to the All Mail Folder and difficult to track or isolate.  Looking through hundreds of emails at a later time in All Mail to find what I mistakenly designated as archive is very cumbersome.  Why would the system designate an email as archived if it has no dedicated location?

  • Gmail with offlineimap

    I have been trying to get this working for a few days now, and I think maybe some detail is just escaping me. I'm backing up my Gmail accounts with offlineimap, and accessing them using mutt. The backup works fine, i.e. no connection problems, messages downloaded, everything where it's 'supposed' to be. The thing is, I can't get mutt to play nicely with these backups. I have no idea how the Maildir hierarchy works with Gmail -- I have INBOX, [google mail], Important, and a couple of other directories, then inside [google mail] is a slew of other directories, and checking the files within seems to indicate a lot of redundancy. I understand there is a feature of offlineimap to rename or alias folders, and to not backup certain folders. Would someone be willing to explain how this works? Preferably, if someone could explain how they currently have offlineimap working with Gmail to get folders in a hierarchy usable by mutt that would be ideal. I have been tearing through man pages and help files, and have read every article I could find on the issue. I don't think my problem is so much the 'what', but the 'why' and 'how'. I'd appreciate any help.

    Patrick Brisbin's git repo really helped me when I was setting up mutt.
    https://github.com/pbrisbin/mutt-config
    Check out the nametrans.py

  • Using Gmail Aliases with iOS 8 Mail App

    I'm wondering if there is any way to use gmail aliases with the default mail app. I've already tried the methods listed on these two sites:
    http://www.nathanpjones.com/wp/2014/01/using-gmail-aliases-in-ios-7/
    http://tbb.co/sending-from-a-gmail-alias-on-ios-8/
    I can already send from a few different aliases with the default mail app on Mac. I have two step authentication setup on on my gmail account so I've these methods with both my normal password and app specific passwords generated by Google. Is there something that I'm missing?

    Seems to work properly for me. Are we looking at the same place? to instruct it to Delete instead of Archive:
    In Settings > Mail, Contacts, Calendars > (select account) > Account (select your e-mail address) > Advanced.
    Mailbox Behavior for Deleted Mailbox: Trash.
        then
    Move Discarded Messages Into: Deleted Mailbox.
    It wasn't this way by default.  Move Discarded was Archive, and it gave the results you described.  Changing that to Deleted works for me.
    I set the Swipe left-to-right to Archive.  So now one swipe will Archive, the other will Delete.
    oooh... p.s.... this seems to work as well:
    http://www.imore.com/how-use-archive-and-trash-simultaneously-ios-8-mail-app

  • Gmail / Replace Trash Button with Archive Button on Mail.app toolbar

    I'm using GMAIL IMAP for 4 separat email accounts.
    I'm used to the old way Mail.app handled email when I deleted it.  The message would disappear and be sorted into ALL MAIL.
    Noticed with Mavericks that when I deleted a message, it went into TRASH.  I could not use the USE THIS MAILBOX FOR feature to redirect deleted email to ALL MAIL as the command was greyed out.
    I replaced the DELETE command on the toolbar with the ARCHIVE command and now the messages I wish to remove are sorted to ALL MAIL.  Now I just have to remember NOT to push delete on my keyboard (habit).
    Wondering if I've found a solution and anyone else can verify?

    I'm experiencing the same thing. I strongly prefer the older behavior which is also consistent with iOS mail. People who don't notice this change may well lose mail, thinking pressing delete archives to all mail rather than moving messages to the trash.

  • How to Use Gmail With Apple's Mail?

    Answer:
    Now Itis not a Problem, Please go to this link and know how to solve this problem, Ihave configuir this in my mac pro. Have enjoy.
    http://picturemuseum.blogspot.com/2011/08/how-to-use-gmail-with-apple-mail.html
    http://mobilesuggestion.blogspot.com/2011/08/how-to-use-gmail-with-apples-mail.h tml

    I notice that it's possible to have sticky posts in these forums. See
    http://forum.java.sun.com/forum.jspa?forumID=534
    the Concurrency forum for an example. Posting a link to the FAQ in a sticky post might reduce the number of FAQs asked here by maybe 1%? Or posts like this one might do well as a sticky?

  • Can you share an icloud calendar with someone using gmail?

    I manage all my calendars on icloud and want to share one of them with my partner, who uses gmail and android phone. The events do not show up on his phone. This is because its not possible to do this or because we are doing something wrong?

    You can only share a read/write calendar with another iCloud member. You can share a read-only calendar with a non-member: the recipient can subscribe to it in iCal. Just get them to open an iCloud account if they have Lion on their Mac.
    http://help.apple.com/icloud/#mm6b1a9479
    You forgot Windows.   Windows users get preferred privileges over Snow Leopard. 

  • After installing the new Yosemite OS on my iMac I can no longer send email. I can receive email, but not send. I use gmail and can send email on the gmail (google) site, but not on "mail" on my iMac. Any others with this problem? What should we do?

    After installing the new Yosemite OS on my iMac I can no longer send email. I can receive email, but not send. I use gmail and can send email on the gmail (google) site, but not on "mail" on my iMac. Any others with this problem? What should we do?

    My gmail, which is correctly configured for Mail with gmail SMTP and Google IMAP, works for awhile on Mail, which I leave open while working on other applications. But several times a day I get msg from Google: "We recently blocked a sign-in attempt to your Google Account" . . . and requiring me to verify my account details, re-enter passwords, confirm security settings (or change them from "disable" to "enable less secure methods" and so on). In Mail I also have tried "taking all accounts online", and re-entering my gmail password inside Mail account settings. These steps successfully re-set comms between gmail and Mail ... for awhile, then it happens again. Enough occurrences over a work day that I just quit Mail and revert to accessing gmail directly. Apple Care advisor and an Apple knowledge base article say that Apple can't deal with this, as gmail is third-party app, and they refer me to gmail, and so far I've found nothing helpful there.
    From today I also have several instances of a window saying "Mail has unexpectedly closed" and asking me to Re-open it.
    I also use Yahoo mail, which stops working with Mac Mail at the same time as gmail, but I do not receive notices to re-verify from Yahoo.
    I recently upgraded from Mavericks to Yosemite. The Mail problem happened occasionally with Mavericks but is far more frequent with Yosemite.

  • I can no longer use gmail with Firefox since it updated today.

    This morning, Firefox had updates for version 3.6.6 and I did this and now gmail is not working. The page loads and I can see my mail, but I cannot open any of the messages or compose a message and I cannot even see the people on the chat feature (I think this feature didn't even load). Since I can use gmail fine on internet explorer and have checked with other people who say there is nothing wrong with gmail, I am assuming it is a problem with the updates to firefox. My yahoo account works in firefox, so I will give you that email to reply to me.
    == URL of affected sites ==
    http://mail.google.com
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)

    Firefox 3.6.4 and 3.6.6 use a process called, "plugin-container.exe" which was using up most of my CPU when I opened up multiple tabs that contained Adobe Flash files, and caused Firefox to lock up.
    My solution was to use Firefox 3.5.10 which you can get from the Mozilla website at [http://www.mozilla.com/en-US/firefox/all-older.html]
    I am using Adobe Flash 10.1.53.64 without any problem in this version of Firefox. Check the release notes, I believe it contains all the latest security fixes in "Firefox 3.6.4".
    Hopefully, they will fix Firefox 3.6 in the next version (e.g. Firefox 3.6.7), until then you should probably use "Firefox 3.5.10".

  • TS3899 With Yahoo Mail, and anotare account (Inacap Mail), I can only receive mails but I can't send emails. I don't know if this is a problem of the iPad or it is a problem with yahoo mail, because using Gmail and the email of my job I don' have this pro

    With Yahoo Mail, and anotare account (Inacap Mail), I can only receive mails but I can't send emails. I don't know if this is a problem of the iPad or it is a problem with yahoo mail, because using Gmail and the email of my job I don' have this problem.

    Google them to confirm the settings that you need for the outgoing server, then check the setting you entered on the pad.  Pay real close attention to the outgoing server name, and port.  You may need to change in on the pad. 

  • We're sorry. It seems there is a problem. Please try using Gmail with a supported browser. If you're encountering this error while using a supported browser, we

    after the last udpate I can no longer access gmail or youtube. the error message from gmail is: We're sorry. It seems there is a problem. Please try using Gmail with a supported browser. If you're encountering this error while using a supported browser, we suggest alerting your Internet Service Provider (ISP) that a proxy is failing to accept cookies on HTTP redirects.
    youtube just lists some generic issue regarding cookies, and my cookie settings are wide open. I can open both with safari so it is a firefox issue.

    Did you install any new add-ons lately? I see listed:
    AddThis 3.5.9 ({3e0e7d2a-070f-4a47-b019-91fe5385ba79})<br />
    Advertising Cookie Opt-out 1.5 ([email protected])<br />
    Flash Video Downloader 5.3.2 ([email protected])<br />
    Garmin Communicator 4.1.0 ({195A3098-0BD5-4e90-AE22-BA1C540AFD1E})<br />
    socialvest 0.5.5 ([email protected])<br />
    Troubleshooter 1.1a ([email protected])<br />
    eMusic Community Toolbar 3.21.0.1 ({9ee802e8-c931-47ab-b570-aa8f791598ca}) (Inactive)
    Are any of these new?

  • HT5361 Been using mail forever and only with my gmail account. All of a sudden, all my inbox mails are missing except for anything after yest night. I log into gmail on safari and everything is there but not on my mac or iphone in mail

    Been using mail forever and only with my gmail account. All of a sudden, all my inbox mails are missing except for anything after yest night. I log into gmail on safari and everything is there but not on my mac or iphone in mail

    Same problem in 8.1.3
    Apple help!

  • How to use gmail with JavaMail

    JavaMail 1.4 is capable of sending and reading messages using gmail.
    All that's required is to properly configure JavaMail. I'll
    illustrate the proper configuration using the demo programs that
    come with JavaMail - msgshow.java and smtpsend.java.
    Let's assume your gmail username is "[email protected]" and your
    password is "passwd".
    To read mail from your gmail Inbox, invoke msgshow as follows:
    java msgshow -D -T pop3s -H pop.gmail.com -U user -P passwdBy reading the msgshow.java source code, you can see how these
    command line arguments are used in the JavaMail API. You should
    first try using msgshow as shown above, and once that's working
    move on to writing and configuring your own program to use gmail.
    To send a message through gmail, invoke smtpsend as follows:
    java -Dmail.smtp.port=587 -Dmail.smtp.starttls.enable=true smtpsend
            -d -M smtp.gmail.com -U user -P passwd -A [email protected](Note that I split the command over two lines for display, but you
    should type it on one line.)
    The smtpsend command will prompt for a subject and message body text.
    End the message body with ^D on UNIX or ^Z on Windows.
    Gmail requires the use of the STARTTLS command, and requires a
    non-standard port, which the smtpsend program doesn't have command
    line options to select so we set them as System properties on the
    java command. The smtpsend.java program uses the System properties
    when creating the JavaMail Session, so the properties set on the
    command line will be available to the JavaMail Session.
    Again, you can read the smtpsend.java source code to see how the
    command line arguments are used in the JavaMail API. There is,
    of course, more than one way to use the JavaMail API to accomplish
    the same goal. This should help you understand the essential
    configuration parameters necessary to use gmail.
    And no, I won't send you an invitation to gmail. Sorry.

    I notice that it's possible to have sticky posts in these forums. See
    http://forum.java.sun.com/forum.jspa?forumID=534
    the Concurrency forum for an example. Posting a link to the FAQ in a sticky post might reduce the number of FAQs asked here by maybe 1%? Or posts like this one might do well as a sticky?

  • Hi, I use a PC @ work and a MAC @ home to ger my mail, but on the road I use Gmail on an android device which use to work before the move to Icloud, I used the same settings that I used with the PC BROWSER  IN THE SETUP  for Gmail and keepgetting errors ?

    Hi, I'm trying to use Gmail to retrive my mail form Icloud, I use a mac at home and a pc at work and an android device on the road,  I have tried setting gmail the way I sign on with Chrome but I keep getting errors... what do I have to do differently....Fred

    This can be a problem with the file [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    Delete [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    If you see files sessionstore-##.js with a number in the left part of the name like sessionstore-1.js then delete those as well.
    See:
    * http://kb.mozillazine.org/Session_Restore
    See also:
    * http://kb.mozillazine.org/Firefox_crashes
    * [[Firefox crashes]]

Maybe you are looking for

  • Simple Dimension Query in Planning

    Hi Planning Experts, I would like to delete some of the dimension from classic planning application (9.3.1). which planning creates automatically when i created Application (unchecked sample application). though i see icon (mark for deletion but unkn

  • Embedding YouTube file in flash project

    Hi guys, Could someone please advise me how to embed a YouTube video file in particular place of my Flash project, should I do this in action panel or in final html file. Here is exactly what I'd like to do: On this website www.aye-aye-media.com unde

  • Variant Configuration: Selection Conditions in BOM

    Hi Experts, I am trying to insert more than one selection condition in the BOM. But the system only takes one of this conditions. For example I want to have two objects dependencies: Selection Condition 1: Engine = 2 Selection Condition 2: Colour = '

  • How to use external jar

    i have downloaded a jar file from apache web site how to use it. i mean where it placed to use class of jar in java file.

  • Can I use Oracle app server with mysql

    Can I use Oracle app server with mysql. I seem to have the following error when trying to create a datastore. I have mysql.jar in my classpath. Can any one tell me what's wrong. Error initializing data-source 'jdbc/topup': DriverManagerDataSource dri