Comments (8)
from postal.
The first try was exactly the demo code with fetchLast() with 50 messages. It didn't work. Then I tried fetchLast() with 3 messages. Then I changed it to fetchMessages... Always the same problem...
from postal.
from postal.
Tested it with 0..10 just to make sure. Same problem.
I updated to 0.4.1 today, that didn't solve the problem...
from postal.
My issue was fixed with 0.4.1 but it sounds like you have a different issue.
from postal.
I shifted the initialization of postal to the init() method and now it works.
class KanbanManagerPostal {
var configuration: Configuration!
var messages: [FetchResult] = []
init(hostname: String, userName: String, password: String) {
log.debug("init called...")
configuration = Configuration(hostname: hostname, port: 993, login: userName, password: .plain(password), connectionType: .tls, checkCertificateEnabled: false)
var postal: Postal = Postal(configuration: configuration)
[...]
from postal.
Now there are only the other questions unanswered ;-)
- How can I debug the IMAP requests?
- Where can I find a documentation of the API?
- Can I manipulate a message, especially add custom headers to a message (or take a message, add custom headers, write it as a new message to the server and delete the old one...)?
from postal.
@ikemuc To answer your questions:
- How can I debug the IMAP requests?
You can set a closure on a Postal instance to have IMAP logs:
let postal = Postal(configuration: ...)
postal.logger { log in
print(log)
}
- Where can I find a documentation of the API?
Unfortunately there isn't yet an official documentation of the API but we documented every public functions that you can access through xcode but I agree it's not enough. Everything should be ok to add jazzy or something like that if you want to do it, PR are welcome ! :)
- Can I manipulate a message, especially add custom headers to a message (or take a message, add custom headers, write it as a new message to the server and delete the old one...)?
No, Postal was first designed in first place only for fetching messages, not manipulating them. But I don't think it would be hard to add such features since libetpan propose an API for that.
Your issue seems fixed so I close it. If you want new features, please submit an issue and we'll figure out how to implement them as quickly as possible 👍
from postal.
Related Issues (20)
- Type of expression is ambiguous without more context.
- @import Postal not working
- App crash on iPhone but runs successfully in simulator HOT 1
- Memory leaks while fetching last 10 mails HOT 2
- :-1: linker command failed with exit code 1 (use -v to see invocation) HOT 2
- Clean up from Xcode 10.2 changes HOT 2
- English localization deprecation warning
- Body: nil HOT 3
- ConnectionLogType.dataReceived: 1 NO [AUTHENTICATIONFAILED] Authentication failed login(description: "Authentication failed") HOT 1
- Not seeing any text/html parts in fetched messages HOT 2
- 0.5.0 (release in Cocoapods) won't compile in Swift 5.1 HOT 2
- Carthage build error HOT 1
- How to get All Mails
- Commandline App | Postal library | postal.connect | I get nothing back (no error or else)
- Certificate error
- How to fetch email body HOT 1
- Can not build on MacBook Air M1 HOT 5
- Is support for push (IDLE) planned?
- error. showing error: login(description: "Authentication Failed") HOT 3
- Further development? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postal.