FAQ Database Discussion Community


Configuring gnus with gmail imap

emacs,openssl,imap,gnus
I am trying to configure gnus to work with my gmail account. My .gnus file looks like this: (setq gnus-select-method '(nntp "news.gwene.org")) (setq user-full-name "George P. Burdell") (setq user-mail-address "[email protected]") (setq smtpmail-auth-credentials "~/.authinfo.epg") (add-to-list 'gnus-secondary-select-methods '(nnimap "gmail" (nnimap-address "imap.gmail.com") (nnimap-server-port 993) (nnimap-stream ssl) (nnimap-authinfo-file "~/.authinfo.epg") ) ) (setq smtpmail-stream-type 'ssl...

How to convert ascii / 7bit email to utf8?

php,email,utf-8,ascii,imap
I read e-mails via php imap, and I can convert the header data to utf8. But some email body is in ascii / 7bit, and I can't convert it. No change by iconv($row['encode'],'utf-8' ,$row['text']); or mb_convert_encoding($row['text'], $row['encode'], "UTF-8"); and imap_utf8($row['text']); fails. Do you have any idea to get off the...

javamail-1.4.5 error at parsing gmail message received via imap

java,gmail,javamail,imap
I'm using javamail-1.4.5 for getting messages from gmail (imap). If Content-Disposition has an unquoted parameters, method getDisposition fails. message part: Content-Transfer-Encoding: 7bit Content-Type: message/rfc822 Content-Disposition: attachment; creation-date=Wed, 11 Feb 2015 10:23:48 GMT; modification-date=Wed, 11 Feb 2015 10:23:48 GMT exception: javax.mail.internet.ParseException: Expected ';', got "," at javax.mail.internet.ParameterList.<init>(ParameterList.java:289) at...

Imap php attachement file name encoding

php,imap
I'm using imap php library to extract emails and save attachements. When I wat to get attachements, I use function $partStruct = imap_bodystruct($imap, $mailNum, $partNum); It supposed to have name of the file in parameters attribute, but here is what I have in this attribute: ( [type] => 3 [encoding]...

How to change the subject info of gmail into chinese character?

php,gmail,imap
I got a string =?GB2312?B?zbO8xtGnu/m0ocq10bXP7sS/?= with $overview[0]->subject; in imap_fetch_overview function . How to change the subject info of gmail into chinese character?...

How to limit result on php-imap

php,email,imap
I'm getting my mails from php-imap using php-imap-client, the script work without problems but i want to limit the number of mails to get from the server. This is the script: <?PHP require_once "Imap.php"; $mailbox = 'imap-mail.outlook.com'; $username = '[email protected]'; $password = 'MYPASSWORD'; $encryption = 'ssl'; // or ssl or...

How to copy email from Gmail to my server using PHP IMAP?

php,gmail,imap
How can I copy email from Gmail to my server's /home/email directory after connecting to a Gmail mailbox using PHP's IMAP functionality? I want to retrieve every email as a file in MIME format and I want to download the complete MIME file with PHP, not just the body or...

How does JavaMail API expunge messages when IMAP folder is closed

java,javamail,imap,javax.mail
I wonder, how JavaMail API expunges IMAP messages when Folder.close(true) is being called? According to the docs, the only parameter "expunge" of method "close" determines whether to expunge all messages that have been previously marked with a \Deleted flag. In the source code (V. 1.4.7), however, I cannot see any...

IP*Works! SearchMailbox for IMAPS returns all available emails, even unmatching

delphi,imap,delphi-xe2
I am using IP*Works! V9. I try to restrict the returned emails to only the one matching a restriction using SearchMailbox. My code looks like this: lIMap.Mailbox := 'INBOX'; lIMap.SelectMailbox; lIMap.CheckMailbox; lIMap.Config('FETCHAFTERSEARCH=True'); lIMap.SearchMailbox('SUBJECT Diessenhofen UNSEEN'); if (lIMap.MessageCount > 0) then begin ... end; MessageCount always reflects the total number of...

libcurl IMAP not working

c++,c,email,imap,libcurl
Using the below code, I'm trying to get any of the libcurl IMAP commands to work. Currently, regardless of the command set via CURLOPT_CUSTOMREQUEST, in my callback function the only data that is given is the oldest email (1st) in my inbox. I can even put something like "dfsafdasfasfaf" in...

Setting up catchall email for testing purposes

email,imap,local,catch-all
Is there a way to set up test email server that would have catchall mail, without actual owned domain (e.g some fake domain)? If so, can someone write it how I would like to have such server for testing purposes, because I don't want to use real email server with...

IMAP BAD [CLIENTBUG] Invalid tag

imap
I want send IMAP command so that I can receive IMAP response. So a short code that easy for undertanding but save space to prevent type all code and faster for the Overflow reader: SSL_write("a0001 login user pass") SSL_read = "* CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN...

Creating an email thread from IMAP?

email,imap
I would like to create a "thread view" from emails that are on an IMAP server. To achieve that, I fetch the list of emails in the INBOX and other folders but I need to know which email is answering which. Is there such a link between emails in IMAP?...

Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

java,email,ssl,javamail,imap
A spring mvc app uses JavaMail to connect to dovecot/postfix. Both the spring mvc app and the dovecot/postfix installation are running on the same CentOS 7 physical server box. The app was able to use JavaMail to successfully make an imap connection until just recently, when some scripts for setting...

Who is responsible for storing emails to the filesystem IMAP or SMTP?

smtp,imap,pop3,mail-server,mta
I was studying about MTA and came through SMTP & IMAP, and read that SMTP is responsible for delivering email across the servers, and client uses IMAP/POP3 to read the emails from server. So IMAP/SMTP these are just protocot, Postfix is known as SMTP Server, and DoveCot is known as...

barbushin imap-php get attachments how to store attachments on server

php,imap,email-attachments,gmail-imap
I am working with a class for parsing and viewing emails and it works great: https://github.com/barbushin/php-imap Now i am trying to save the attachments to the server but ive never worked with email attachments before so not sure how it works. This is my code for echoing out the emails:...

PHP imap - get the maximum capacity of mailbox

php,imap
In my gmail account, for example, I cannot have more than 15Gb of messages. Is there a way to retrieve this number somehow with php's imap functions? I know there is imap_mailboxmsginfo(), which will tell me how much of memory I am using right now (350MB, for example), but it...

Access Office356 shared mailbox with PHP

php,imap
I'm working on a PHP script to read and parse error logs sent to a shared mailbox. I'm using imap_open() to connect. If I connect with the following credentials to my own mailbox, it works fine server: {outlook.office365.com:993/imap/ssl} username: [email protected] password: mypas$word However, if I want to connect to the...

Transfer IMAP email accounts?

imap
I want to transfer a website including a domain and 6 mail accounts to another hosting provider. Well, the transfer off a website isn't a challenge. But how i can transfer 6 mail accounts? Transfer the domain to the new provider, export all mails from the mail accounts, create the...

php - imap_fetchstructure - get exact object position in array

php,html,arrays,imap
I am printing out a structure $structure = imap_fetchstructure($imap, $email_number); print_r($structure); I need to look inside the array and get [disposition] tag of my inline attachment. I am trying out using: $inline_attachment = $structure[1]->disposition; if($inline_attachment == inline){ echo "inline attachment found!!"; } stdClass Object ( [type] => 1 [encoding] =>...

Converting hex value to utf-8 character

c#,encoding,utf-8,hex,imap
I'm using IMAP class to read emails. When my mail body contains Ö IMAP returns the hex value: =C3=96. How do I convert it to an utf-8 Ö? I'm thinking something like : Encoding enc = Encoding.GetEncoding("UTF-8); System.Byte[] ch = new System.Byte[1]; ch[0] = System.Convert.ToByte([hex value of Ö], 16); var...

How can I get PLAIN authentication working with Google's IMAP server?

authentication,imap
So for a while I've been relying on the PLAIN support for logging into Google's IMAP server in my email client. Recently they started blocking that and return an error (despite listing it as a supported authentication method). For instance take this example: Connected to 'imap.gmail.com:993' using SSL A0001 CAPABILITY...

create an web entry via email

php,email,symfony2,imap
Many web applications (asana, basecamp, highrisehq, etc) have this feature. For example: If any user create a task for other user then The task notified to related user. If task owner reply this email. Replay adress similar to the following: [email protected] this is a virtual email address. When Web application...

Connection refused when using imap.rb to connect to imap.google.com

ruby,imap,gmail-imap
I'm trying to connect to a Gmail account (via ruby-gmail gem, gmail gem, gmail_xoauth gem over OAuth 2.0, but each method uses imap.rb) and getting: C:/Ruby21-x64/lib/ruby/2.1.0/net/imap.rb:1045:in `initialize': No connection could be made because the target machine actively refused it. - connect(2) for "imap.gmail.com" port 993 (Errno::ECONNREFUSED) On the Gmail account...

Is there a way to find the IMAP mailbox that contains all mail, regardless of provider?

email,imap,email-client
I was wondering if there exists a way or maybe a convention to figure out what the IMAP mailbox is for each e-mail provider that contains all (non-spam) e-mail. For GMail it's [Gmail]/All Mail, but it's obviously different for other services. Does one have to inspect the mailboxes of each...

How to set up an incoming email server for an user in Odoo?

openerp,imap,odoo,odoo-8,fetchmail
I'm trying to configure an incoming mail server for the user admin. This user has the next account: [email protected] I did the next steps: Configuration > Configuration > General Settings, section domain alias, I turned it to mydomain.com. Configuration > Users > Users, I selected admin user and went to...

How to synchronize downloaded emails from clients back to the IMAP server

synchronization,imap,postfix-mta,data-recovery,dovecot
I have an iRedMail server running (postfix + dovecot as an IMAP server) on a Debian Xen guest machine. By a mistake the iscsi disk, where users emails are stored, was deleted. There is another copy of this disk from December 30th 2014. There is a full backup of users...

IMAP migration and changes to folder structure

email,imap,dovecot
I am using imapcopy on a ubuntu 14.04 server and telnet to migrate and respectively edit heavy imap inboxes accounts. I would like to flatten the folder structure, meaning that I want to select and copy all emails from all children folders into one "Import" folder. I cant seem to...

Need to check the inbox of an Exchange server with C++

c++,powershell,exchange-server,imap
I'm working on a project in C++ to backup and restore email on Microsoft Exchange servers, I'm trying to write automated tests for the restore function. Right now I can create test users, databases, and mailboxes, and can send email between users through the Exchange Admin Powershell. However, Exchange doesn't...

dovecot Invalid password in passdb: Not a valid MD5-CRYPT or PLAIN-MD5 password

mysql,unix,imap,mail-server,dovecot
I am migrating imap-courier to dovecot, I use openbsd+postfix+imap-courier, and now I'm trying to run openbsd+opensmtpd+dovecot. In the beginning it was a little traumante but it works OpenSMTPD correctly. Now I have configured dovecot, and I hope that your backend authorization is the same database that was used imap-courier. In...

java mail api, imap folder UIDNEXT is always -1

java,email,imap,uid
hi i fetch mails using java api from imap folder, i can get headers etc but the UIDNEXT is always -1, but the next coming mail has a value like 100. Is UIDNEXT not supported by ail mail servers? UIDFolder ufolder = (UIDFolder) folder; folder.open(Folder.READ_WRITE); IMAPFolder iFolder = (IMAPFolder) folder;...

How to limit imap search/uid fetches

python,imap
In order to avoid imaplib.error: command: UID => got more than 10000 bytes I would like to fetch only a specific number of mails or requesting the number of search matches, without throwing an exception. Is the only way how i can handle this problem, reducing the SINCE BEFORE interval...

Install imap extension for php 5.3.3-7+squeeze17

php,debian,imap,php-extension,apt-get
Server has debian wheezy os installed. Php version is php5.3: [email protected]:~# php -v PHP 5.3.3-7+squeeze17 with Suhosin-Patch (cli) (built: Aug 23 2013 15:06:16) I try to install imap extension via apt-get and the result is: [email protected]:~# apt-get install php5-imap=5.3.3-7+squeeze17 Reading package lists... Done Building dependency tree Reading state information... Done...

PHP IMAP - Can't identify boxes

php,gmail,imap,imap-open
I'm creating a PHP application to save in my database all the email messages from an email account. When I connect to a gmail account and use the imap_list() function, I get these boxes: array { [0]=> "{imap.gmail.com:993/ssl}INBOX" [1]=> "{imap.gmail.com:993/ssl}[Gmail]/Caixote do Lixo" [2]=> "{imap.gmail.com:993/ssl}[Gmail]/Com estrela" [3]=> "{imap.gmail.com:993/ssl}[Gmail]/Correio enviado" [4]=> "{imap.gmail.com:993/ssl}[Gmail]/Importante"...

CURL IMAP APPEND command

curl,imap
I would like to use CURL in order to APPEND emails at the given date. $ curl -kv -u [email protected]:user 'imap://IP:143' -X 'APPEND INBOX (Mon, 7 Feb > 1994 21:52:25 +0000) {310}' ' Date: Mon, 7 Feb 1994 21:52:25 -0800 (PST) From: Fred Foobar <[email protected]> Subject: afternoon meeting To: [email protected]

Apache Commons Net IMAPsClient List Command

java,apache,imap
I'm trying to connect to www.gmx.net via the apache commons net ImapsClient I'm able to log in and to fetch messages from folders i know. but my problem is on listing folders. JavaDoc tells me boolean list(String refName, String mailboxName) Send a LIST command to the server. whereat the RFC...

How can I combine multiple IMAP fetch commands?

java,javamail,imap,fetch,javax.mail
I'm using JavaMail to fetch data of messages from an IMAP account. For example, I use the following command to retrieve the bodies of the messages with uid 1 to 4: UID FETCH 1:4 BODY[] Is there a way to fetch specific body parts for specific messages? For example, I...

PHP - imap_delete deletes the email just after visiting the webmail

php,email,imap
I am getting my inbox emails using $hostname = '{imap.one.com:993/imap/ssl}INBOX'; Everything works fine however, when I try to delete an email from my script, it deletes the email chosen just after I login into the server webmail in this case one.com webmail. I am using $msgid = '1'; //For example...

JavaMail reading recent unread mails using IMAP

java,javamail,imap
I have a requirement to retrieve unread mails from Gmail. I am using Java Mail API. By default, this API retrieves mails from the oldest to newest. But I need to retrieve recent mails first. Is it possible? Thanks in advance.

Php - imap_delete - Delete just selected email

php,html,email,imap
I have a script that prints out all inbox emails fetched from an imap server. I have added a delete submit button that when pressed needs to delete just the email that belongs to the button. However, the script right now, deletes all the email when any delete button is...

Trying to use cURL to access local Exchange server

curl,command-line,exchange-server,imap
I'm working on a project that involves a Microsoft Exchange 2013 mail server on my Windows Server 2012 machine. For the project, I need to send, read, and delete emails using cURL, preferably from the command line. The problem is, I'm having trouble connecting to the Exchange server with the...

Fetching external mail through the internet via IMAP in linux

linux,port,imap,firewall,iptables
I am working on a project that requires me to enable fetching of external mail through the IMAP protocol. I was wondering if there was any way to test this from for example imap.gmail.com without using telnet (as I have to enable the IMAP port and not telnet) ? I...

No login methods supported! JavaMail, Dovecot, CentOS 7

java,linux,email,javamail,imap
A spring mvc app running on a CentOS 7 server has been successfully making IMAP connections to the Maildir inbox managed by dovecot on the same CentOS 7 physical server box. However, the app is no longer able to make an IMAP connection after some scripts from this OpenVPN tutorial...