Tag Archives: mail

Archiving Sent Mail with imapfilter

My “sent” folders are a morass. I think that’s true of most folks. I wrote a little script in my imapfilter config.lua to duplicate some handy functionality from the venerable pine. I’m sure it could be cleaned up a bit, but it does the job for me. On the first of the month, it creates a folder called “Sent-Monthname-Year”, and moves everything from sent that’s older than a day to it.


function moveSentMessages()
  --------------------------------
  -- On the first of the month  --
  -- move all older messages to --
  -- a date marked sent folder  --
  --------------------------------

  theDate = os.date("*t")

  months = {
    "January",
    "February",
    "March",
    "April",
    "May",
    "June",
    "July",
    "August",
    "September",
    "October",
    "November",
    "December"
  }

  if (theDate["day"] == 1) then
    dateString = "Sent-" .. months[theDate["month"] - 1] .. "-" .. theDate["year"]
    
    messages = personal["Sent"]:is_older(1) + personal["Sent Messages"]:is_older(1)
    messages:move_messages(personal[dateString])
  end
end

Triage email for iPhone

With Mailbox opening up to everyone, and thus devouring the media attention for email clients, I thought this might bear mentioning. Triage is a simple email client designed to very quickly work through only the new mail in your inbox. With a flick you decide to archive or keep a message. If you keep it, it stays unread in your inbox, but you won’t see it again in Triage. You can also type out a quick reply. Works with anything that uses IMAP. I’ve sent the developers an email to see if it’s possible to have Triage delete rather than archive. If so, it’s a definite buy for me.

UPDATE: Just heard back from the developers, and the app can indeed be set to update rather than just archive.