Tags:
create new tag
, view all tags

SID-02284: Can't call method "login" on an undefined value at IMAP.pm

Status: Asked Asked TWiki version: 4.1.1 Perl version: perl-5.8.8-43.el5_11
Category: MailInContrib Server OS: Red Hat Enterprise Linux Server 5.8; 2.6.18-308.16.1.el5 Last update: 2 months ago

We followed the MailInConrtib 's Plugin page and added the following to LocalSite.cfg file: $TWiki::cfg{MailInContrib} = [ { folder => 'imap://<-user-name->@amd.com:<-password->@outlook-nameast3.office365.com/INBOX', onError => 'log', onNoTopic => 'error', onSuccess => 'log delete', topicPath => 'to subject', post => { template => 'archive', templateTopic => 'WebTopicEditTemplate', web => '$web/Emails', topic => '$topic', where => 'top', hideQuotes => 0, attachments => 'attach, link', }, post2 => { template => 'summary', where => 'below', }, content => { type => 'html', processors => [ { pkg => 'TWiki::Contrib::MailInContrib::NoScript' }, { pkg => 'TWiki::Contrib::MailInContrib::FilterExternalResources', safedomains => '*.office365.com' }, { pkg => 'TWiki::Contrib::MailInContrib::CharSetFilter' }, ], }, },

But we are getting the following error when we run mailincron script frpm tools directory: Can't call method "login" on an undefined value at /opt/twiki/twiki/lib/CPAN/lib//Email/Folder/IMAP.pm line 36. at /opt/twiki/twiki/lib/TWiki/Contrib/MailInContrib.pm line 37 TWiki::Contrib::MailInContrib::__ANON__('Can\'t call method "login" on an undefined value at /opt/twik...') called at /opt/twiki/twiki/lib/CPAN/lib//Email/Folder/IMAP.pm line 36 Email::Folder::IMAP::_server('Email::Folder::IMAP=HASH(0x1f95e850)') called at /opt/twiki/twiki/lib/CPAN/lib//Email/Folder/IMAP.pm line 47 Email::Folder::IMAP::next_message('Email::Folder::IMAP=HASH(0x1f95e850)') called at /opt/twiki/twiki/lib/CPAN/lib//Email/Folder.pm line 50 Email::Folder::next_message('MIMEFolder=HASH(0x1e1c24a0)') called at /opt/twiki/twiki/lib/TWiki/Contrib/MailInContrib.pm line 174 TWiki::Contrib::MailInContrib::processInbox('TWiki::Contrib::MailInContrib=HASH(0x1e4a3650)', 'HASH(0x1d74cbf0)') called at ../tools/mailincron line 62

Please help !

-- Sukanto Kole - 2016-12-16

Discussion and Answer

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Asked
Title Can't call method "login" on an undefined value at IMAP.pm
SupportCategory MailInContrib
TWiki version 4.1.1
Server OS Red Hat Enterprise Linux Server 5.8; 2.6.18-308.16.1.el5
Web server httpd-2.2.3-91.el5
Perl version perl-5.8.8-43.el5_11
Browser & version Mozilla Firefox 49.0.2
Topic revision: r1 - 2016-12-16 - SukantoKole
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.