Mutt/Offlineimap Sent mail is showing up in Gmail Inbox

Hi,
I am just starting my journey with mutt and quite like the interface thus far but I am having trouble with sent emails showing up in my Gmail inbox.  It is a little annoying to always have my sent emails appear as unread in my inbox.  In my search for a solution I have found that this behavior sometimes occurs if you have Gmail filters that are set to never send to spam, I checked and do not have any such filters.  This could also happen if I had $record set, but I have specifically unset record.  My muttrc and offlineimaprc are as follows (I used several tutorial sites to help create these) (I have hashed out some personal details):
muttrc
# Paths ----------------------------------------------
set folder = ~/.mail # mailbox location
set alias_file = ~/.mutt/alias # where to store aliases
set header_cache = ~/.mutt/cache/headers # where to store headers
set message_cachedir = ~/.mutt/cache/bodies # where to store bodies
set certificate_file = ~/.mutt/certificates # where to store certs
set mailcap_path = ~/.mutt/mailcap # entries for filetypes
set tmpdir = ~/.mutt/temp # where to keep temp files
set signature = ~/.mutt/sig # my signature file
# Basic Options --------------------------------------
set wait_key = no # shut up, mutt
set mbox_type = Maildir # mailbox type
set timeout = 3 # idle time before scanning
set mail_check = 0 # minimum time between scans
unset move # gmail does that
set delete # don't ask, just do
unset confirmappend # don't ask, just do!
set quit # don't ask, just do!!
unset mark_old # read/new is good enough for me
#set beep_new # bell on new mails
set pipe_decode # strip headers and eval mimes when piping
set thorough_search # strip headers and eval mimes before searching
# Status Bar -----------------------------------------
set status_chars = " *%A"
set status_format = "───[ Folder: %f ]───[%r%m messages%?n? (%n new)?%?d? (%d to delete)?%?t? (%t tagged)? ]───%>─%?p?( %p postponed )?───"
# Header Options -------------------------------------
ignore * # ignore all headers
unignore from: to: cc: date: subject: # show only these
unhdr_order * # some distros order things by default
hdr_order from: to: cc: date: subject: # and in this order
# Account Settings -----------------------------------
# Default inbox.
set spoolfile = "+mygmail/INBOX"
# Alternate email addresses.
alternates ####### ########
# Other special folders.
set mbox = "+mygmail/archive"
set postponed = "+mygmail/drafts"
# Index View Options ---------------------------------
set date_format = "%m/%d"
set index_format = "[%Z] %D %-20.20F %s"
set sort = threads # like gmail
set sort_aux = reverse-last-date-received # like gmail
set uncollapse_jump # don't collapse on an unread message
set sort_re # thread based on regex
set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"
# Index Key Bindings ---------------------------------
bind index gg first-entry
bind index G last-entry
bind index R group-reply
bind index <tab> sync-mailbox
bind index <space> collapse-thread
# Ctrl-R to mark all as read
macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
# Sync email
macro index O "<shell-escape>offlineimap<enter>" "run offlineimap to sync all mail"
macro index o "<shell-escape>offlineimap -qf INBOX<enter>" "run offlineimap to sync inbox"
# Saner copy/move dialogs
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"
# Pager View Options ---------------------------------
set pager_index_lines = 10 # number of index lines to show
set pager_context = 3 # number of context lines to show
set pager_stop # don't go to next message automatically
set menu_scroll # scroll in menus
#set tilde # show tildes like in vim
unset markers # no ugly plus signs
set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
alternative_order text/plain text/enriched text/html
# URLview ... calls ~/.urlview
macro pager \Cu <pipe-entry>'urlview'<enter> 'Follow links with urlview'
# Compose View Options -------------------------------
set realname = "My Name" # who am i?
set envelope_from # which from?
set sig_dashes # dashes before sig
set edit_headers # show headers when composing
set fast_reply # skip to compose when replying
set askcc # ask for CC:
set fcc_attach # save attachments with the body
unset mime_forward # forward attachments as part of body
set forward_format = "Fwd: %s" # format of subject when forwarding
set forward_decode # decode when forwarding
set attribution = "On %d, %n wrote:" # format of quoting header
set reply_to # reply to Reply to: field
set reverse_name # reply as whomever it was to
set include # include message in replies
set forward_quote # include message in forwards
set editor = "emacs -nw"
set from = "#################@gmail.com"
set sendmail = "/usr/local/bin/msmtp -a mygmail ###############@gmail.com"
set sendmail_wait = 0
unset record
#color scheme
source muttsolar16
My offlineimaprc
# Sample minimal config file. Copy this to ~/.offlineimaprc and edit to
# get started fast.
[general]
ui = TTY.TTYUI
accounts = MyGmail
pythonfile=~/.mutt/offlineimap.py
fsync = False
[Account MyGmail]
localrepository = CGLocal
remoterepository = CGRemote
status_backend = sqlite
[Repository CGLocal]
type = Maildir
localfolders = ~/.mail/mygmail
nametrans = lambda folder: {'drafts': '[Gmail]/Drafts',
'sent': '[Gmail]/Sent Mail',
'flagged': '[Gmail]/Starred',
'trash': '[Gmail]/Trash',
'archive': '[Gmail]/All Mail',
}.get(folder, folder)
[Repository CGRemote]
maxconnections=1
type = Gmail
remoteuser = ############@gmail.com
remotepasseval = keyring.get_password("Login","############@gmail.com")
realdelete = no
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
nametrans = lambda folder: {'[Gmail]/Drafts': 'drafts',
'[Gmail]/Sent Mail': 'sent',
'[Gmail]/Starred': 'flagged',
'[Gmail]/Trash': 'trash',
'[Gmail]/All Mail': 'archive',
}.get(folder, folder)
folderfilter = lambda folder: folder not in ['[Gmail]/Trash',
'[Gmail]/Important',
'[Gmail]/Spam',
I use msmtp to send the emails (and they do send) but as far as I know that program should have nothing to do with my folder labeling.
What happens exactly:  When in mutt, I press 'm' and compose an email and send with 'y'.  Oddly enough, the email appears in my gmail inbox (the webmail) even before I sync mutt with offlineimap (I don't automatically sync).  Once I sync, I see the email in both my sent mail and inbox.
Any thoughts would be appreciated

You have unset the record variable.

Similar Messages

  • How do I make Mail stop showing notes in my inbox?

    The obvious answer is to turn off the "show notes in Inbox" option in the Mailbox Behaviours tab of Account Info, but that option is not sticking. Mail in Lion keeps re-enabling the "show notes in Inbox" option across Mail restarts. The checkbox is not disabled -- it lets me turn it off, and after a view refresh it will stop displaying notes for the session. But when I restart mail, my notes are back, cluttering up my inbox.
    I checked my com.apple.mail.plist file in ~/Library/Preferences, and the <key>MailShowNotes</key> was <true/> regardless of what I select in the Account Info dialog. I used a text editor to explicitly set the option to <false/> when Mail was not running, and now the option in the plist files stays <false/>, but Mail keeps showing notes in my inbox.
    I thought maybe it was a file permissions problem, because after a clean Lion install and Migration Assistant migration of my user account, all the files in my user directory were marked with the ACL permission "group:everyone deny delete". That setting causes all manner of grief, as Lion was unable to unlock files when I clicked Unlock after being prompted, and so Lion was unable to re-save any of my files. Other settings like desktop wallpaper also refused to stick. I used chmod at the command line to strip that setting off of all my files and then finally Lion started working properly.
    However, the com.apple.mail.plist file in ~/Library/Preferences, and its permissions, seem to get recreated with every Mail session. It does not have the "group:everyone deny delete" ACL permission set.
    Seems to be a bug in Mail, or some other source that is overriding the preference.

    I have been having similar issues with syncing notes, but do not want them to show up in my 'inbox' either.
    I have tried both methods below in Lion Mail:
    1. Try rebuilding the mailbox and see what happens (Mailbox > Rebuild). If that does nothing, consider going to System Preferences > Mail, Contacts, & Calendars and unchecking iCloud. Let it do its thing and confirm that the account isn't shown in Mail any more. Then quit Mail and turn on iCloud again. Now is it gone when you launch Mail?
    2. Mail -> Preferences -> mailbox behaiors tab and uncheck "show notes in inbox"...I cannot do this as it won't let me save the setting, comes up with a message- The “Incoming Mail Server” field cannot be empty.
    The 'Incoming Mail Server' field is not empty, although it is greyed out (p03-imap.mail.me.com) so cannot change it? Anyone else having this issue and know how to resolve it?
    S

  • SMTP sent mail not showing up in sent mail folder

    Hello,
    Setup:
    Exchange 2010 SP1
    Outlook 2010
    C# for sending mail, or Pentaho Kettle
    Not really sure how to explain, but I have the following scenario:
    Automatic programs send email using credentials (an active username / password on the domain. account linked to a mail box).
    Mail gets sent.
    Mail does not show up in the sent mail folder of the account
    I was wondering if there was a parameter on the Exchange server to configure so that the email sent via SMTP would show up in the sent mail box of the account.
    Regards,

    Hi Olivier,
    For your query, I would also suggest you seek the solution in the Development Forum:
    http://social.technet.microsoft.com/Forums/en-US/exchangesvrdevelopment/threads
    Frank Wang
    TechNet Community Support

  • Sent mail not showing in folder

    Greetings,
    Our Mac has three email accounts. For the last two days, one of the accounts does not show sent mail in the sent folder. The other two accounts are working properly. I have reviewed the MobileMe settings and the Preferences on Mac Mail and can't find the issue.
    The accounts are all MobileMe (IMAP) accounts and accessed via iPad, iPhone and Mac, but no device is showing sent mail since Monday.
    Any suggestions?

    Quit Mail. Force quit if necessary.
    Back up all data. That means you know you can restore the Mail database, no matter what happens.
    Triple-click anywhere in the line below on this page to select it:
    ~/Library/Mail/V2/MailData
    Copy the selected text to the Clipboard by pressing the key combination command-C. In the Finder, select
              Go ▹ Go to Folder
    from the menu bar. Paste into the box that opens by pressing command-V, then press return.
    A folder window will open. Inside it there should be files with names as follows:
              Envelope Index
              ExternalUpdates.storedata
    Move those files to the Desktop, leaving the window open. Other files in the folder may have longer names that begin as above. Move those files, if any, to the Trash.
    Relaunch Mail. It should prompt you to re-import your messages. You may get a warning that the index is damaged and that Mail has to quit. Click OK. Typically, the process takes a few minutes, but it may take hours if you have gigantic mailboxes. In that case, you may be able to speed things up by temporarily adding your home folder to the Privacy list in the Spotlight preference pane. Remove it when Mail has finished importing.
    Test. If Mail now works as expected, you can delete the files you moved to the Desktop. Otherwise, post your results.

  • BCC myself but sent mail not showing up in Mail

    I have a BlackBerry. There is a setting where you can BCC an address for mail sent from the BlackBerry so you can have a copy of what you sent on your regular mail client. I've had this configured and it worked flawlessly with other POP3 mail clients I've used. Basically, the sent mail would be retrieved via POP3 as a regular message with the "from" and "to" fields intact. This is fine, and I don't care about being able to see "BCC" recipients. My problem is that Mail seems to be recognizing that the "from" address is the same as the "BCC" address and is getting rid of those messages for me, or ignoring them on the POP server. I thought of a few things, but none seem to be true -- My spam filter (SpamSieve) is not detecting the messages as spam. I also thought that perhaps Mail is doing something nifty like automatically moving the mail into sent folders. However, that's not true either. I also did a few different searches to see if my sent messages had come down somewhere and I was just missing them.
    So now I'm stumped. Is Mail making decisions for me behind the scenes? Any help would be appreciated.
    Intel iMac   Mac OS X (10.4.8)  

    Hi Bmoua,
    What client did she use on the temporary computer? Outlook or outlook app or OWA?
    If she used outlook, it may download the sent messages to the local pst.
    In addition, I also recommend you use message tracking log to check if there are any messages had been sent out when she used temporary computer.
    Best regards,
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Niko Cheng
    TechNet Community Support

  • Apple Mail not showing any emails in Inbox when using Gmail IMAP.

    I am using Mail to check my Gmail which is set up in Google Apps. The problem is that it never seems to synchronize properly with Gmail. Right now, if I click on Inbox in Mail, it is empty. Not one mail. But if I search for something in the search bar, the mails in Inbox appear. This happens on two computers, an iMac and a Macbook Pro, both running Snow Leopard.
    I am using about 1.7GB of space on Gmail, so I do have a lot of mail, but for some reason Apple Mail never seems catch up and just run smoothly. Other people on the same domain hosted by Google Apps, also using Apple Mail are fine. Please let me have any ideas.
    Operating system: Apple OS X 10.6.1
    Program and version you use to access Gmail: Apple Mail 4.1

    Welcome to my confusing and problematic world. We currently have 20-odd users on the Google Apps domain. 3 of them are using Apple Mail to access their mail. 1 is having problems. The only thing different about this user is that we imported messages in from Outlook using the Google mail importer. This is the only thing I can think. The importer seemed to ignore certain folders, even if we retried, and it created folders as inbox/insurance_ etc. I changed all the folders to INBOX in caps, as that is what Mail preferred, and removed the trailing underscore.
    This is the only thing different about this user.
    On a web browser looking at Gmail, I have:
    Inbox
    Starred
    Sent Mail
    Drafts
    [Imap]Drafts
    Apple Mail To Do
    Deleted Items
    Deleted Messages
    Follow Up
    INBOX/folder1
    INBOX/folder2
    INBOX/folder2/folder1
    etc...
    INBOX/Folder113
    Junk E-mail
    Misc
    Priority
    Sent Messages
    4 More (containing Chats, All Mail, Spam, Bin)
    I did another "Account Info" and got this: http://gallery.me.com/rtaxerxes/100023/Screen%20shot%202009-11-04%20at%2010.19.5 9%20PM
    You'll notice, now it does have an Inbox. But the folders it says are 0 messages and 0 KB do actually have stuff in them on the web browser.

  • Mail is showing incorrect email in inbox

    Twice now I have had emails show up in my inbox that show the correct From Adress and Subject Line, but then the email itself is from a random email from over a year ago. I have to log into google.com on Safari to find out what the actual email is.
    Has this happened to anyone else? this is very frustrating. Only started once I upgraded to Mountain Lion.
    Thanks,
    Steve

    Assuming you're using the Mac Mail, I suggest doing a Mailbox ---> Rebuild from the Mac Mail menu.

  • Sent mail keeps showing up in Drafts folder

    Recently, the mail I send out shows up in my Drafts folder even once I've sent it. Any suggestions?
    Thanks.
    Over-drafted in Altadena

    the only thing i can think of is while you have mail open select mail in the upper left near the  select preferences>accounts>mailbox behaviors and uncheck save drafts on server for both accts

  • Sent mail not showing up on server

    If I send something from an IMAP account on my iPhone it doesn't show up on the server and the same in reverse.

    When you have a question about you iPhone you might get an answer sooner if you post it on the iPhone section.  I can give you an OSX answer.  In Mac Mail > Preferences > Mailbox Behavior, for iMAP accounts there is a Sent option to store sent messages on the server.  Should be something similar on the iPhone.

  • Sent mail not showing in sent box

    The last few days emails that I send through my Yahoo account seem to sit in the drafts folder after I hit send and not move over to the sent folder. Lately they are not appearing in either box, yet the recipients are receiving the mail.
    Sometimes the emails just stay in drafts no matter what I do or how many times I resend. And yes, the recipients are receiving multiple copies.
    If anyoe has experienced this or can offer assistance I would appreciate it much.
    Thank you,

    Thank for the tip. the server appears to match and it is in fact online.
    Still having the same issues. I appreciate your help.
    Anyone else have a suggestion?

  • My sent mail is showing a random contact as the "from" field

    For some reason my latest e-mails I send are saying they are "from" a contact of mine, despite "me" sending them. I've yet to find out if the end recipient is seeing it this way (I'm hoping not) and more importantly I'm hoping this contact it is displaying is not actually getting copies of these e-mails. It is showing up this way on my laptop and on the iPhone and only from this one contact. I'm seemingly sending and receiving these e-mails despite it showing someone else's name instead of mine so it is probably just how it is being displayed (I hope). I am going to try and delete the contact and see what happens. Anyone else have a similar experience, solution?

    If JV's suggestion does not help, rebuild the Envelope Index.
    Quit mail.
    Delete the file ~/library/mail/Envelope Index
    Retart mail and it will reindex.
    -fred

  • Only a fraction of the email addresses I have received mail and sent mail to show up i my collected addresses list.

    I have thousands of email addresses I have sent to and received from but maybe 50 show up in my collected address list. I want to export my emails contacts but I can't find the majority of those names and addresses.
    Thanks

    http://kb.mozillazine.org/Sharing_address_books
    read section 'Share the OSX System's Address Book'
    Do you have 'File' > 'Use Mac OS X Address Book' selected?
    This might explain where the other email addresses/contacts are available.
    More possible help:
    https://getsatisfaction.com/mozilla_messaging/topics/thunderbird_cannot_seem_to_find_the_mac_os_x_address_book
    quote
    Richard 1 year ago
    Did you see my answer posted earlier in this string? "Apparently at the latest Thunderbird upgrade, the Mac OS reset a security preference. Found under System Preferences/Security & Privacy is a check box to Allow Thunderbird to access CONTACTS. Now all my Mac Address Book contacts are visible." This worked for me, and I am able to update CONTACTS, and see them in Thunderbird. I think I had to restart for this to take effect.

  • Emails received but no alert - Mails also show as read in inbox

    Hi Guys,
    Just got my first BB from work (9300 Curve on 02 UK) - and I'm having some issues with email.
    I set up my email account (it's a Lotus Notes Server) and am receiving emails perfectly well, but there is currently no notification sounding when emails arrive, even though I've asked it to play a sound and vibrate.
    In fact, even the mail notification icon showing the number of new mails on the home screen doesn't update with an extra mail. When I go into the inbox, I can see the email has been received but it's marked as read which seems to be why I'm not getting any kind of notification.
    My blackberry settings seem to be the same as my colleagues, so could this be a Lotus Notes / Server setting issue?
    Thanks in advance!
    James

    Hi,
    Which protocol do you use on your iPhone? POP3 or IMAP?
    I also suggest you log on Webmail, check if the email read/unread status on Web matches that on iPhone or on Outlook Client.
    In case it's the rule that caused the issue, I suggest you start Outlook with the switch "/cleanrules", this will start Outlook and deletes client-based and server-based rules:
    Press Win + R and type “outlook.exe /cleanrules” in the blank box, then press Enter.
    Then re-create the rule on Outlook, test if this issue persists.
    Regards,
    Melon Chen
    TechNet Community Support

  • Sent FOLDER items showing in the main inbox.

    I need some help with a problem wiht the folder view.  Let me start out by saying this is NOT a "Hide Sent Items" options problem.  That feature works fine.
    The problem is emails are showing up in the main messages box when they are sent from Outlook.  They have the little envleope symbol, not a checkmark, beside each one.  And when I open one and scroll up it shows:
    Received Using: Desktop (secure)
    Folder: Sent Items
    Message Status: Open.
    I have a Blackberry 9800, 6.0 Bundle 1907.  Using BES 4.1
    Steps taken so far:
    Deleted BES account
    Wiped Blackberry
    Updated OS of the Blackberry
    Tried user on different handheld device
    Tried known workin user on original device (no errors for other user)
    Deleted Outlook account
    Deleted OST file
    Rebooted bes server
    Rebooted exchange server
    Tried different SIM card
    Hide sent items on and off
    Hide filed messages on and off
    Still have the same problem
    All i want to see when I click the MESSAGES button is my inbox.

    is sent items being redirected?
    In the BlackBerry Manager, click the server in the left pane.
    Go to User > Service Access > Choose Folders.
    Select the folders to be redirected to the BlackBerry smartphone.
    Select the folders and sub-folders that are to be redirected to the BlackBerry smartphone.
    Select the check box beside the folders to be redirected.
    Click OK.
    or maybe
    Using the BlackBerry smartphone
    From the Home screen of the BlackBerry smartphone, go to Messages > Options > Email Settings.
    Display the menu and click Folder Redirection.
    Expand the Mailbox <Username> > Inbox.
    Cancel the Sent Itemsfolder selection.
    Display the menu, and then click Save.
    Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
    Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
    BESAdmin's, please make a signature with your BES environment info.
    SIM Free BlackBerry Unlocking FAQ
    Follow me on Twitter @knottyrope
    Want to thank me? Buy my KnottyRope App here
    BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V

  • Mac Mail Not Showing New Emails on Inbox

    Hello all,
    So I have recently reindexed my Mail application because all of the emails that have been unflagged were still docking in my Flagged folder. I searched up some similar queries on Apple forum and someone suggested to delete the Envelope files under MailData. I did this and it works perfectly.
    However, after doing this action, new emails (to my Gmail account) wouldn't appear on my inbox. Here is what happens instead:
    - New emails arrived, flash notification appears on the top right handside of my Mac
    - Inbox folder still empty, Important folder count is up
    - Checked Important folder, still couldn't find the new emails
    I have 3 inboxes on my Mail, 2 Gmails and 1 Yahoo. The problem only happens to the Gmail accounts. Yahoo account works perfectly fine. I didn't change any settings from Gmail account in the past ~5-9 months.
    Anyone have a clue what goes wrong here?

    any luck with your problem TSG?
    I have been having similar issues.

Maybe you are looking for

  • How can I get composite processing time through Weblogic System MBean

    Hi All, Can anybody please tell me where to find SCA Composite processing time under 'System MBean Browser' properties? We have a requirement to access composite instance processing time from Oracle Weblogic MBean through java. Please note, component

  • New Content Type with RDL template

    I'm building a new Project Server 2010 site template and one of the libraries that I want to provide will store the Status Reports for each Project. I'm struggling with what seems like a simple concept. Create a new Content Type that uses the status_

  • Web dynpro abap application on Portal does not work via internet access.

    Dear All, I have created a web dynpro abap application and deployed the same on Portal. The issue I am facing is that the webdynpro application works fine when the end user logs into Portal from Local Network, However when the Portal is accessed from

  • Customization, API documentation

    Where does the source code reside for portal components such as forms, reports, charts etc.? Is that possible that I can add my own customized codes in order to fit my needs (such as client side data validation using javaScript, adding a few text lin

  • Why can't I update my iPad to iOS 5?

    Hey.  I have a 1st generation iPad that is currently running iOS 4.3.3.  I have leopard 10.5.8 (yeah, I know.  I'm out of date ) and every time I want to update to iOS 5, iTunes tells me that my iPad is not eligible for the requested build.  Please H