Skip to content

Commit

Permalink
fix a bug saving replies to the sent folder
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmunro committed Mar 17, 2017
1 parent 18895ca commit e2dfcdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* RELEASE VERSION 1.0.0-pre1
* RELEASE VERSION 1.0.0-rc1
*
* Some of the following constants are automatically filled in when
* the build process is run. If you change them in site/index.php
Expand Down
2 changes: 1 addition & 1 deletion modules/imap/modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public function process() {
$cache = Hm_IMAP_List::get_cache($this->session, $this->config, $imap_id);
$imap = Hm_IMAP_List::connect($imap_id, $cache);
$sent_folder = false;
if (is_object($imap) && $imap->get_state() == 'authenticated') {
if (is_object($imap) && ($imap->get_state() == 'authenticated' || $imap->get_state() == 'selected')) {
$specials = $this->user_config->get('special_imap_folders', array());
if (array_key_exists($imap_id, $specials)) {
if (array_key_exists('sent', $specials[$imap_id])) {
Expand Down

0 comments on commit e2dfcdf

Please sign in to comment.